wojciech.kapcia@tigase.net opened 8 years ago
|
|
It's a result of following code in @tigase.xmpp.impl.MessageAmp@:
It works (and doesn't prevent remaining components from starting). As not all functionality of AMP depends on repository we could/should differentiate making availability of conditions/actions based on availability of the repository? Nevertheless - failing injection of a bean in other bean (injecting repo in AMP) should not prevent other beans from loading (HTTP API component in this case) |
|
Really? But then offline messages will not work, so server will not be properly storing messages as it should. I think we need to at least warn about this situation or even fully unload
Yes, simple unload of bean which fails to initialize is in place, but for some reason it failed in this case. I need to check it. |
|
Andrzej Wójcik wrote:
For example dropping message if resource doesn't match (but figuring out which combinations depends on repository could be headache prone). Also https://xmpp.org/extensions/xep-0079.html#process-s2s-disco defines (s2s means sender-to-sender, sic!) feature discovery so unsupported elements simply wouldn't be included.
unload and load default message plugin, but in case when offline messages are disable AMP plugin simply fallbacks to
OK. |
|
Wojciech Kapcia wrote:
OK, but we should not allow to use server with invalid configuration as it will lead to bad impression.
I disagree, if server is misconfigured it is better to turn it off than have server which partially works or even works with different configuration.
|
|
Andrzej Wójcik wrote:
Well, originally this was about implementing AMP Message repository in XMLRepository (default in the distribution package) so with that there shouldn't be a problem with invalid configuration.
OK, but having a clear message why it was shut down would be a nice addition. |
|
I was able to find a bug in Tigase Kernel which caused issue with proper Tigase XMPP Server startup. It was related to improper removal of instance of bean implementing After fixing this issue %wojtek I have few questions about this issue at this point:
|
|
Andrzej Wójcik wrote:
I would say but %kobit should make a final decission after our above discussion. Tigase requires repository in one form or another (authentication for example) so this could be considered a border case. (I would say we can disallow it and I'm 75% towards that)
It seems enough, however I see some usefullness in having relatively wide support of repositories in Just one comment about the fix - it looks like there are still multiple attempts to initialise those beans (?!):
Also - is there anywere a description of bean naming, especially with the following change being made:
|
|
Wojciech Kapcia wrote:
Ok, let's wait for %kobit
I think that most of our repositories (PubSub,MUC,MA,UA) are not compatible with
Yes, you are correct and it works as designed. We need to retry to create bean if any new bean of same type was added to the same kernel in case if one bean was required by the other one.
Beans with |
|
Andrzej Wójcik wrote:
as per above… |
|
Andrzej Wójcik wrote:
I am kind of hesitant about this. It might be useful in some cases. In generally, I see a use-case for the Tigase running diskless, DB-less with repositories in memory only. So it would run without any persistence. But this would be a special feature, on which we would have to work, test it extensively. As for the AMP I am not in favor of letting MessageAmp work without a repository just like this. To allow for such use-case we would have to test it, know and document exactly which functionality is available and which is now and document when this might be useful. In other words such a use case should be result of an intentional configuration in the Tigase server. To sum it up. I would prefer to disable it for now and come back to this when we/customers really need it. |
|
Artur Hefczyc wrote:
Given the above we can Reject further There remain a problem of default configuration, for example for the purpose of running a web-installer (related: #4880) but for that purpose (and that particular config-type) we could change default plugin beans from |
Type |
Bug
|
Priority |
Normal
|
Assignee | |
RedmineID |
4897
|
Version |
tigase-server-8.0.0
|
Spent time |
11h 15m
|
Starting server with enabled AMP plugin (component seems unrelated) and unsupported repository results in (seemingly?) circular dependency:
What's more, it influences startup of other beans/components.