Type |
Bug
|
Priority |
Normal
|
Assignee | |
RedmineID |
6331
|
Version |
tigase-server-7.1.2
|
Spent time |
2h 30m
|
Issue Votes (0)
Watchers (0)
Type |
Bug
|
Priority |
Normal
|
Assignee | |
RedmineID |
6331
|
Version |
tigase-server-7.1.2
|
Spent time |
2h 30m
|
I found a very strange bug, that is possible just no bug, but a misunderstood configuration option, but still this is very confusing and error prone. So my proposal would be to change the behavior of tigase at this part.
You can understand this faster when I tell you a little story of what I did and what happened, because with a little change I can turn this error on and off:
A colleague in our office building proposed a little configuration for the pubsub component in the init.properties file:
Because our PubSub Component should be a kind of event queue.
Now I connect two test users to my local test domain "user1@test.domain" and "user2@test.domain". To quickly test the connection and the presence protocol, I authorize both users to see each other with pidgin. Once both have added each other to some buddy list, the user1 gets status "406 not acceptable", while user2 is "online". Remember "user1" is buddy of "user2" and vice versa, Both are visible in the same client. But you can get the same results with two clients.
Restarting the server, reconnecting both users leave both users in 406 state. At least this is a symmetric behavior.
Now I change the component name from "events" to "pubsub".
I reconnect my users that could not see each other and "magic", both are online.
For fun I replaced the name "pubsub" with "funsub" actually I did named it slightly different, but that is to rude for the public ;)
and restarted the server again.
Again I get the 406er status codes.
So changing the name of a component results in the failure of the component.
This error was very hard to find as you can guess.
Either remove the processing of --comp-name at least for the PubSub component, because changing it from its default value to another value breaks the server, or fix this error that the PubSub component can get any name, but still works.