Page MenuHomeDevCentral

Can't upgrade Openfire to 4.9.0
Closed, ResolvedPublic

Description

docker-002
$ docker logs openfire
Initializing /var/lib/openfire...
Initializing /var/log/openfire...
java.lang.IllegalArgumentException: Illegal base64 character 20
        at java.base/java.util.Base64$Decoder.decode0(Base64.java:847)
        at java.base/java.util.Base64$Decoder.decode(Base64.java:566)
        at java.base/java.util.Base64$Decoder.decode(Base64.java:589)
        at org.jivesoftware.util.AesEncryptor.decrypt(AesEncryptor.java:100)
        at org.jivesoftware.util.AesEncryptor.decrypt(AesEncryptor.java:94)
        at org.jivesoftware.util.JiveGlobals.getCurrentKey(JiveGlobals.java:1128)
        at org.jivesoftware.util.JiveGlobals.setupPropertyEncryption(JiveGlobals.java:1329)
        at org.jivesoftware.util.JiveGlobals.loadSecurityProperties(JiveGlobals.java:1296)
        at org.jivesoftware.util.JiveGlobals.isXMLPropertyEncrypted(JiveGlobals.java:1010)
        at org.jivesoftware.util.XMLProperties.getProperty(XMLProperties.java:212)
        at org.jivesoftware.util.XMLProperties.getProperty(XMLProperties.java:171)
        at org.jivesoftware.util.JiveGlobals.getXMLProperty(JiveGlobals.java:310)
        at org.jivesoftware.openfire.XMPPServer.initialize(XMPPServer.java:366)
        at org.jivesoftware.openfire.XMPPServer.start(XMPPServer.java:660)
        at org.jivesoftware.openfire.XMPPServer.<init>(XMPPServer.java:220)
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
        at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
        at java.base/java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128)
        at java.base/jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:347)
        at java.base/java.lang.Class.newInstance(Class.java:645)
        at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:92)
        at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:56)
Error starting the server. Please check the log files for more information.

Can't repro on 4.8.3, appears in 4.9.0


Upstream references

Related Objects

Event Timeline

dereckson triaged this task as High priority.Sep 24 2024, 08:34
dereckson created this task.

Illegal base64 character 20 is an hexadecimal ASCII code, so it's a space.

The base library probably doesn't trim values.

dereckson closed this task as Resolved.EditedSep 30 2024, 22:23
dereckson claimed this task.

Solved by removing space from conf/security.xml in Base64 string.

As this issue was related to the Nasqueron deployment, and upstream created an issue for the actual bug on their tracker under reference OF-2883, we can close this task.