Projects tigase _server server-core Issues #926
domain-filter-policy doesn't support domain lists (#926)
wojciech.kapcia@tigase.net opened 7 years ago

Following configuration

'domain-filter-policy' = 'LIST=domain.com;domain2.com'

prevents VHostManager from loading:

2018-03-15 19:36:18.070 [main]             AbstractBeanConfigurator.configure()    WARNING:  Can't prepare value of property 'domainFilter' of bean 'defaults': 'LIST=domain.com;domain2.com'
java.lang.IllegalArgumentException: No enum constant tigase.vhosts.filter.DomainFilterPolicy.LIST=domain.com;domain2.com
	at java.lang.Enum.valueOf(Enum.java:238)
	at tigase.kernel.DefaultTypesConverter.convert(DefaultTypesConverter.java:132)
	at tigase.kernel.beans.config.AbstractBeanConfigurator.configure(AbstractBeanConfigurator.java:301)
	at tigase.component.DSLBeanConfiguratorWithBackwardCompatibility.configure(DSLBeanConfiguratorWithBackwardCompatibility.java:49)
	at tigase.kernel.beans.config.AbstractBeanConfigurator.configure(AbstractBeanConfigurator.java:360)
	at tigase.kernel.core.Kernel.initBean(Kernel.java:126)
	at tigase.kernel.core.Kernel.injectDependencies(Kernel.java:1212)
	at tigase.kernel.core.Kernel.initBean(Kernel.java:134)
	at tigase.kernel.core.Kernel.injectDependencies(Kernel.java:1212)
	at tigase.kernel.core.Kernel.injectDependency(Kernel.java:820)
	at tigase.kernel.core.Kernel.injectDependencies(Kernel.java:834)
	at tigase.kernel.core.Kernel.registerBean(Kernel.java:1055)
	at tigase.kernel.core.BeanConfigBuilder.execWithoutInject(BeanConfigBuilder.java:115)
	at tigase.kernel.core.BeanConfigBuilder.exec(BeanConfigBuilder.java:102)
	at tigase.db.beans.SDRepositoryBean.beanConfigurationChanged(SDRepositoryBean.java:94)
	at tigase.db.beans.SDRepositoryBean.initialize(SDRepositoryBean.java:118)
	at tigase.kernel.core.Kernel.initBean(Kernel.java:139)
	at tigase.kernel.core.Kernel.injectDependencies(Kernel.java:1212)
	at tigase.kernel.core.Kernel.injectDependency(Kernel.java:820)
	at tigase.kernel.core.Kernel$DelayedDependenciesInjection.inject(Kernel.java:1485)
	at tigase.kernel.core.Kernel.finishDependecyDelayedInjection(Kernel.java:536)
	at tigase.kernel.core.Kernel.initBean(Kernel.java:131)
	at tigase.kernel.core.Kernel.injectDependencies(Kernel.java:1212)
	at tigase.kernel.core.Kernel.initBean(Kernel.java:134)
	at tigase.kernel.core.Kernel.getInstance(Kernel.java:305)
	at tigase.server.Bootstrap.start(Bootstrap.java:168)
	at tigase.server.XMPPServer.start(XMPPServer.java:184)
	at tigase.server.XMPPServer.main(XMPPServer.java:138)
2018-03-15 19:36:18.072 [main]             Kernel.injectDependencies()             WARNING:  Could not initialize bean defaults (class: class tigase.vhosts.VHostItemDefaults), skipping injection of this bean
RootCause:
   -> tigase.kernel.KernelException: Cannot inject configuration to bean defaults
      [tigase.kernel.beans.config.AbstractBeanConfigurator.configure(AbstractBeanConfigurator.java:362)]
      -> java.lang.RuntimeException: Can't prepare value of property 'domainFilter' of bean 'defaults': 'LIST=domain.com;domain2.com'
         
wojciech.kapcia@tigase.net commented 7 years ago

I've fixed the issue caused by parsing and how Kernel handles beans, however, it should be reworked thoroughly (#6834)

issue 1 of 1
Type
Bug
Priority
Normal
Assignee
RedmineID
6830
Version
tigase-server-8.0.0
Spent time
35h
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/server-core#926
Please wait...
Page is in error, reload to recover