[
https://issues.apache.org/jira/browse/QPID-6899?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Lorenz Quack updated QPID-6899:
-------------------------------
Status: Reviewable (was: In Progress)
> [Java Broker] Adding AuthenticationProvider with FileSystemPreferences with
> relative path partially fails
> ---------------------------------------------------------------------------------------------------------
>
> Key: QPID-6899
> URL: https://issues.apache.org/jira/browse/QPID-6899
> Project: Qpid
> Issue Type: Bug
> Components: Java Broker
> Environment: Internet Explorer 11
> Reporter: Lorenz Quack
> Assignee: Lorenz Quack
>
> steps to reproduce:
> # start broker
> # add AuthenticationProvider
> # arbitrary name
> # select type "Base64MD5PasswordFile"
> # path "b"
> # PreferenceProvider Type: "FileSystemPreferences"
> # PreferenceProvider Path: "c"
> results:
> * "500 - Invalid character"
> * The AuthenticationProvider will be created but the add dialogue stays open
> * the created AuthenticationProvider will have a PreferenceProvider Type
> "None"
> Broker Log:
> {noformat}
> 2015-11-24 12:08:40,154 DEBUG [Broker-Config] (o.a.q.s.c.u.TaskExecutorImpl)
> - Performing Task['create child' on 'BrokerAdapter
> [id=feb06030-5495-4e98-a389-1d326e01ff90, name=Broker]' with arguments
> 'childClass=AuthenticationProvider, name=a, type=Base64MD5PasswordFile']
> 2015-11-24 12:08:40,166 INFO [Broker-Config] (q.m.a.create) -
> [mng:admin(/127.0.0.1:51882)] ATH-1001 : Create "a"
> 2015-11-24 12:08:40,168 DEBUG [Broker-Config] (o.a.q.s.c.u.TaskExecutorImpl)
> - Performing Task['create' on 'Base64MD5PasswordDatabaseAuthenticationManager
> [id=95a8177f-48ed-4fd7-8307-f1fa61863f8b, name=a]']
> 2015-11-24 12:08:40,181 DEBUG [Broker-Config]
> (o.a.q.s.s.a.d.Base64MD5PasswordFilePrincipalDatabase) - PasswordFile using
> file : i:\src\qpid-java\systests\target\qpid-broker\6.0.0-SNAPSHOT\bin\b
> 2015-11-24 12:08:40,182 DEBUG [Broker-Config]
> (o.a.q.s.s.a.d.Base64MD5PasswordFilePrincipalDatabase) - Loaded 0 user(s)
> from b
> 2015-11-24 12:08:40,182 DEBUG [Broker-Config] (o.a.q.s.c.u.TaskExecutorImpl)
> - Task['create' on 'Base64MD5PasswordDatabaseAuthenticationManager
> [id=95a8177f-48ed-4fd7-8307-f1fa61863f8b, name=a]'] performed successfully
> with result: null
> 2015-11-24 12:08:40,197 DEBUG [Broker-Config]
> (o.a.q.s.j.JMXManagementPluginImpl) - Consulting mbean provider :
> org.apache.qpid.server.store.berkeleydb.jmx.BDBHAMessageStoreManagerMBeanProvider@30fcd103
> for child : Base64MD5PasswordDatabaseAuthenticationManager
> [id=95a8177f-48ed-4fd7-8307-f1fa61863f8b, name=a]
> 2015-11-24 12:08:40,198 DEBUG [Broker-Config]
> (o.a.q.s.j.JMXManagementPluginImpl) - Provider
> org.apache.qpid.server.store.berkeleydb.jmx.BDBHAMessageStoreManagerMBeanProvider@30fcd103
> did not create mBean for child
> Base64MD5PasswordDatabaseAuthenticationManager
> [id=95a8177f-48ed-4fd7-8307-f1fa61863f8b, name=a]
> 2015-11-24 12:08:40,199 DEBUG [Broker-Config] (o.a.q.s.c.u.TaskExecutorImpl)
> - Task['create child' on 'BrokerAdapter
> [id=feb06030-5495-4e98-a389-1d326e01ff90, name=Broker]' with arguments
> 'childClass=AuthenticationProvider, name=a, type=Base64MD5PasswordFile']
> performed successfully with result: null
> 2015-11-24 12:08:40,199 DEBUG [HttpManagement-HTTP-125]
> (o.a.q.s.m.p.f.LoggingFilter) - RESPONSE user='[/127.0.0.1:51882, admin]'
> method='POST' url='http://localhost:8080/api/latest/authenticationprovider'
> status='201'
> 2015-11-24 12:08:40,244 DEBUG [HttpManagement-HTTP-129]
> (o.a.q.s.m.p.f.LoggingFilter) - REQUEST user='[/127.0.0.1:51882, admin]'
> method='POST' url='http://localhost:8080/api/latest/preferencesprovider/a'
> 2015-11-24 12:08:40,246 DEBUG [Broker-Config] (o.a.q.s.c.u.TaskExecutorImpl)
> - Performing Task['create child' on
> 'Base64MD5PasswordDatabaseAuthenticationManager
> [id=95a8177f-48ed-4fd7-8307-f1fa61863f8b, name=a]' with arguments
> 'childClass=PreferencesProvider, name=a, type=FileSystemPreferences']
> 2015-11-24 12:08:40,253 DEBUG [Broker-Config] (o.a.q.s.c.u.TaskExecutorImpl)
> - Performing Task['create' on 'FileSystemPreferencesProviderImpl
> [id=580f3759-bd87-4536-a571-7527ccb0d9b6, name=a]']
> 2015-11-24 12:08:40,255 DEBUG [Broker-Config] (o.a.q.s.c.u.TaskExecutorImpl)
> - Performing Task['set desired state' on 'FileSystemPreferencesProviderImpl
> [id=580f3759-bd87-4536-a571-7527ccb0d9b6, name=a]' with arguments 'DELETED']
> 2015-11-24 12:08:40,262 DEBUG [Broker-Config] (o.a.q.s.c.u.TaskExecutorImpl)
> - Task['set desired state' on 'FileSystemPreferencesProviderImpl
> [id=580f3759-bd87-4536-a571-7527ccb0d9b6, name=a]' with arguments 'DELETED']
> performed successfully with result: null
> 2015-11-24 12:08:40,263 DEBUG [Broker-Config] (o.a.q.s.c.u.TaskExecutorImpl)
> - Task['create' on 'FileSystemPreferencesProviderImpl
> [id=580f3759-bd87-4536-a571-7527ccb0d9b6, name=a]'] performed successfully
> with result: null
> 2015-11-24 12:08:40,263 DEBUG [Broker-Config] (o.a.q.s.c.u.TaskExecutorImpl)
> - Task['create child' on 'Base64MD5PasswordDatabaseAuthenticationManager
> [id=95a8177f-48ed-4fd7-8307-f1fa61863f8b, name=a]' with arguments
> 'childClass=PreferencesProvider, name=a, type=FileSystemPreferences']
> performed successfully with result: null
> 2015-11-24 12:08:40,264 DEBUG [HttpManagement-HTTP-129]
> (o.a.q.s.m.p.f.LoggingFilter) - RESPONSE user='[/127.0.0.1:51882, admin]'
> method='POST' url='http://localhost:8080/api/latest/preferencesprovider/a'
> status='200'
> 2015-11-24 12:08:40,270 ERROR [HttpManagement-HTTP-129]
> (o.a.q.s.m.p.f.ExceptionHandlingFilter) - Unexpected exception in servlet
> '/api/latest/preferencesprovider/a':
> java.lang.NullPointerException: null
> at
> org.apache.qpid.server.model.adapter.FileSystemPreferencesProviderImpl$FileSystemPreferencesStore.createIfNotExist(FileSystemPreferencesProviderImpl.java:380)
> ~[qpid-broker-core-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
> at
> org.apache.qpid.server.model.adapter.FileSystemPreferencesProviderImpl.onOpen(FileSystemPreferencesProviderImpl.java:130)
> ~[qpid-broker-core-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
> at
> org.apache.qpid.server.model.AbstractConfiguredObject.doOpening(AbstractConfiguredObject.java:927)
> ~[qpid-broker-core-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
> at
> org.apache.qpid.server.model.AbstractConfiguredObject$6.execute(AbstractConfiguredObject.java:758)
> ~[qpid-broker-core-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
> at
> org.apache.qpid.server.model.AbstractConfiguredObject$6.execute(AbstractConfiguredObject.java:718)
> ~[qpid-broker-core-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
> at
> org.apache.qpid.server.model.AbstractConfiguredObject$2.execute(AbstractConfiguredObject.java:520)
> ~[qpid-broker-core-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
> at
> org.apache.qpid.server.model.AbstractConfiguredObject$2.execute(AbstractConfiguredObject.java:513)
> ~[qpid-broker-core-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
> at
> org.apache.qpid.server.configuration.updater.TaskExecutorImpl$TaskLoggingWrapper.execute(TaskExecutorImpl.java:270)
> ~[qpid-broker-core-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
> at
> org.apache.qpid.server.configuration.updater.TaskExecutorImpl.submitWrappedTask(TaskExecutorImpl.java:154)
> ~[qpid-broker-core-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
> at
> org.apache.qpid.server.configuration.updater.TaskExecutorImpl.submit(TaskExecutorImpl.java:142)
> ~[qpid-broker-core-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
> at
> org.apache.qpid.server.model.AbstractConfiguredObject.doOnConfigThread(AbstractConfiguredObject.java:512)
> ~[qpid-broker-core-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
> at
> org.apache.qpid.server.model.AbstractConfiguredObject.createAsync(AbstractConfiguredObject.java:717)
> ~[qpid-broker-core-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
> at
> org.apache.qpid.server.model.AbstractConfiguredObjectTypeFactory.createAsync(AbstractConfiguredObjectTypeFactory.java:76)
> ~[qpid-broker-core-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
> at
> org.apache.qpid.server.model.ConfiguredObjectFactoryImpl.createAsync(ConfiguredObjectFactoryImpl.java:125)
> ~[qpid-broker-core-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
> at
> org.apache.qpid.server.security.auth.manager.AbstractAuthenticationManager.addChildAsync(AbstractAuthenticationManager.java:159)
> ~[qpid-broker-core-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
> at
> org.apache.qpid.server.security.auth.manager.PrincipalDatabaseAuthenticationManager.addChildAsync(PrincipalDatabaseAuthenticationManager.java:399)
> ~[qpid-broker-core-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
> at
> org.apache.qpid.server.model.AbstractConfiguredObject$18.execute(AbstractConfiguredObject.java:1851)
> ~[qpid-broker-core-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
> at
> org.apache.qpid.server.model.AbstractConfiguredObject$18.execute(AbstractConfiguredObject.java:1846)
> ~[qpid-broker-core-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
> at
> org.apache.qpid.server.model.AbstractConfiguredObject$2.execute(AbstractConfiguredObject.java:520)
> ~[qpid-broker-core-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
> at
> org.apache.qpid.server.model.AbstractConfiguredObject$2.execute(AbstractConfiguredObject.java:513)
> ~[qpid-broker-core-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
> at
> org.apache.qpid.server.configuration.updater.TaskExecutorImpl$TaskLoggingWrapper.execute(TaskExecutorImpl.java:270)
> ~[qpid-broker-core-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
> at
> org.apache.qpid.server.configuration.updater.TaskExecutorImpl$CallableWrapper$1.run(TaskExecutorImpl.java:342)
> ~[qpid-broker-core-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
> at java.security.AccessController.doPrivileged(Native Method)
> ~[na:1.7.0_79]
> at javax.security.auth.Subject.doAs(Subject.java:356) ~[na:1.7.0_79]
> at
> org.apache.qpid.server.configuration.updater.TaskExecutorImpl$CallableWrapper.call(TaskExecutorImpl.java:335)
> ~[qpid-broker-core-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
> ~[na:1.7.0_79]
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> ~[na:1.7.0_79]
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> ~[na:1.7.0_79]
> at java.lang.Thread.run(Thread.java:745) [na:1.7.0_79]
> 2015-11-24 12:08:40,271 WARN [HttpManagement-HTTP-129]
> (o.e.j.s.ServletHandler) - /api/latest/preferencesprovider/a
> java.lang.NullPointerException: null
> at
> org.apache.qpid.server.model.adapter.FileSystemPreferencesProviderImpl$FileSystemPreferencesStore.createIfNotExist(FileSystemPreferencesProviderImpl.java:380)
> ~[qpid-broker-core-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
> at
> org.apache.qpid.server.model.adapter.FileSystemPreferencesProviderImpl.onOpen(FileSystemPreferencesProviderImpl.java:130)
> ~[qpid-broker-core-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
> at
> org.apache.qpid.server.model.AbstractConfiguredObject.doOpening(AbstractConfiguredObject.java:927)
> ~[qpid-broker-core-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
> at
> org.apache.qpid.server.model.AbstractConfiguredObject$6.execute(AbstractConfiguredObject.java:758)
> ~[qpid-broker-core-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
> at
> org.apache.qpid.server.model.AbstractConfiguredObject$6.execute(AbstractConfiguredObject.java:718)
> ~[qpid-broker-core-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
> at
> org.apache.qpid.server.model.AbstractConfiguredObject$2.execute(AbstractConfiguredObject.java:520)
> ~[qpid-broker-core-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
> at
> org.apache.qpid.server.model.AbstractConfiguredObject$2.execute(AbstractConfiguredObject.java:513)
> ~[qpid-broker-core-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
> at
> org.apache.qpid.server.configuration.updater.TaskExecutorImpl$TaskLoggingWrapper.execute(TaskExecutorImpl.java:270)
> ~[qpid-broker-core-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
> at
> org.apache.qpid.server.configuration.updater.TaskExecutorImpl.submitWrappedTask(TaskExecutorImpl.java:154)
> ~[qpid-broker-core-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
> at
> org.apache.qpid.server.configuration.updater.TaskExecutorImpl.submit(TaskExecutorImpl.java:142)
> ~[qpid-broker-core-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
> at
> org.apache.qpid.server.model.AbstractConfiguredObject.doOnConfigThread(AbstractConfiguredObject.java:512)
> ~[qpid-broker-core-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
> at
> org.apache.qpid.server.model.AbstractConfiguredObject.createAsync(AbstractConfiguredObject.java:717)
> ~[qpid-broker-core-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
> at
> org.apache.qpid.server.model.AbstractConfiguredObjectTypeFactory.createAsync(AbstractConfiguredObjectTypeFactory.java:76)
> ~[qpid-broker-core-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
> at
> org.apache.qpid.server.model.ConfiguredObjectFactoryImpl.createAsync(ConfiguredObjectFactoryImpl.java:125)
> ~[qpid-broker-core-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
> at
> org.apache.qpid.server.security.auth.manager.AbstractAuthenticationManager.addChildAsync(AbstractAuthenticationManager.java:159)
> ~[qpid-broker-core-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
> at
> org.apache.qpid.server.security.auth.manager.PrincipalDatabaseAuthenticationManager.addChildAsync(PrincipalDatabaseAuthenticationManager.java:399)
> ~[qpid-broker-core-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
> at
> org.apache.qpid.server.model.AbstractConfiguredObject$18.execute(AbstractConfiguredObject.java:1851)
> ~[qpid-broker-core-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
> at
> org.apache.qpid.server.model.AbstractConfiguredObject$18.execute(AbstractConfiguredObject.java:1846)
> ~[qpid-broker-core-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
> at
> org.apache.qpid.server.model.AbstractConfiguredObject$2.execute(AbstractConfiguredObject.java:520)
> ~[qpid-broker-core-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
> at
> org.apache.qpid.server.model.AbstractConfiguredObject$2.execute(AbstractConfiguredObject.java:513)
> ~[qpid-broker-core-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
> at
> org.apache.qpid.server.configuration.updater.TaskExecutorImpl$TaskLoggingWrapper.execute(TaskExecutorImpl.java:270)
> ~[qpid-broker-core-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
> at
> org.apache.qpid.server.configuration.updater.TaskExecutorImpl$CallableWrapper$1.run(TaskExecutorImpl.java:342)
> ~[qpid-broker-core-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
> at java.security.AccessController.doPrivileged(Native Method)
> ~[na:1.7.0_79]
> at javax.security.auth.Subject.doAs(Subject.java:356) ~[na:1.7.0_79]
> at
> org.apache.qpid.server.configuration.updater.TaskExecutorImpl$CallableWrapper.call(TaskExecutorImpl.java:335)
> ~[qpid-broker-core-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
> ~[na:1.7.0_79]
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> ~[na:1.7.0_79]
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> ~[na:1.7.0_79]
> at java.lang.Thread.run(Thread.java:745) [na:1.7.0_79]
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]