Projects tigase _server tigase-http-api Issues #153
[Dashboard] Creating user without password result in exception (#153)
Open
wojciech.kapcia@tigase.net opened 1 week ago
xmpp-1  | [2024-09-11 10:42:11:346] [WARNING ] [      qtp929149228-724 ] JaxRsRequestHandler.execute()    : Exception while processing request
xmpp-1  | tigase.http.api.HttpException: java.lang.reflect.InvocationTargetException
xmpp-1  | 	at tigase.http.jaxrs.JaxRsRequestHandler.execute(JaxRsRequestHandler.java:395)
xmpp-1  | 	at tigase.http.jaxrs.JaxRsServlet.service(JaxRsServlet.java:109)
xmpp-1  | 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
[…]
xmpp-1  | Caused by: java.lang.IllegalArgumentException: Empty key
xmpp-1  | 	at java.base/javax.crypto.spec.SecretKeySpec.<init>(Unknown Source)
xmpp-1  | 	at tigase.auth.mechanisms.AbstractSaslSCRAM.hi(AbstractSaslSCRAM.java:129)
xmpp-1  | 	at tigase.auth.mechanisms.SCRAMHelper.encodePlainPassword(SCRAMHelper.java:38)
xmpp-1  | 	at tigase.auth.credentials.entries.ScramCredentialsEntry$Encoder.encode(ScramCredentialsEntry.java:230)
xmpp-1  | 	at tigase.auth.CredentialsEncoderBean.encodeForAllMechanisms(CredentialsEncoderBean.java:57)
xmpp-1  | 	at tigase.db.jdbc.TigaseCustomAuth.updateCredential(TigaseCustomAuth.java:973)
xmpp-1  | 	at tigase.db.jdbc.TigaseCustomAuth.addUser(TigaseCustomAuth.java:303)
xmpp-1  | 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
xmpp-1  | 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
xmpp-1  | 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
xmpp-1  | 	at java.base/java.lang.reflect.Method.invoke(Unknown Source)
xmpp-1  | 	at tigase.stats.StatisticsInvocationHandler.invoke(StatisticsInvocationHandler.java:75)
xmpp-1  | 	at jdk.proxy2/jdk.proxy2.$Proxy43.addUser(Unknown Source)
xmpp-1  | 	at tigase.db.AuthRepositoryMDImpl.addUser(AuthRepositoryMDImpl.java:55)
xmpp-1  | 	at tigase.http.modules.dashboard.UsersHandler.createUser(UsersHandler.java:134)
xmpp-1  | 	... 51 more
wojciech.kapcia@tigase.net added "Related" Customers/atom#23 1 week ago
Referenced from commit 1 week ago
issue 1 of 1
Type
Bug
Priority
Normal
Assignee
Version
none
Sprints
n/a
Customer
n/a
Iterations
Issue Votes (0)
Watchers (2)
Reference
tigase/_server/tigase-http-api#153
Please wait...
Page is in error, reload to recover