Projects tigase _server server-core Issues #279
API for extending VHosts items with new configuration (#279)
Closed
wojciech.kapcia@tigase.net opened 1 decade ago
Due Date
2015-09-01

Add an API which would allow addition of new configuration elements to VHost items

Artur Hefczyc commented 1 decade ago

It would be good to have it for version 5.2.1 but I am not sure if it is possible. It does not seem to be a lot of work. Hopefuly more thinking than working.

What I would like to have is:

  1. Instead of extending VHostItem every time we add a new element, the VHostItem should kind of field definitions. Switching some feature on/off would be as simple as disabling/enabling the field definition.

  2. The field definition could contain information such as field type, field value, field default value, field property key, config element name, etc...

  3. The VHostItem API should contain all the code necessary to handle all field types we use

Andrzej Wójcik (Tigase) commented 1 decade ago

I needed this feature for task #2451 and created some basic API and storage for additional VHost parameters, see commit:5e2cef9fd698ea98d96cfa9f92f714710e573666

Artur Hefczyc commented 9 years ago

Andrzej, as you have already done some work for this, I am assigning this task to you. Please provide work estimates for the task completion so we can decide if it can be done for 7.1

Andrzej Wójcik (Tigase) commented 9 years ago

As I mentioned in previous comment, I added basic API which allows to extend VHost items with new configuration parameters.

I think it works fine and can be used in all cases, but I would like %wojtek to check if this API is ok for his use case

wojciech.kapcia@tigase.net commented 9 years ago

We've encountered some problems with separations of items/values when configured in init.properties (vide #3135#note-7). I'll verify it. Otherwise implemented API is enough.

wojciech.kapcia@tigase.net commented 9 years ago

It was already fixed and it's possible to provide such configuration using ; as a values splitter.

issue 1 of 1
Type
New Feature
Priority
Normal
Assignee
RedmineID
1707
Version
tigase-server-7.1.0
Spent time
3h
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/server-core#279
Please wait...
Page is in error, reload to recover