Skip to content
This repository has been archived by the owner on Mar 31, 2019. It is now read-only.

javax.crypto.NoSuchPaddingException exception thrown randomly #25

Closed
kovax opened this issue May 13, 2018 · 0 comments
Closed

javax.crypto.NoSuchPaddingException exception thrown randomly #25

kovax opened this issue May 13, 2018 · 0 comments
Assignees
Milestone

Comments

@kovax
Copy link
Member

kovax commented May 13, 2018

This must be a concurrency issue decrypting the cookie string.

EXCEPTION:javax.crypto.BadPaddingException: Given final block not properly padded
	at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:989)
	at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:845)
	at com.sun.crypto.provider.AESCipher.engineDoFinal(AESCipher.java:446)
	at javax.crypto.Cipher.doFinal(Cipher.java:2165)
	at org.cristalise.restapi.RestHandler.decryptAuthData(RestHandler.java:111)
	at org.cristalise.restapi.RestHandler.checkAuthData(RestHandler.java:156)
	at org.cristalise.restapi.RestHandler.checkAuthCookie(RestHandler.java:140)
	at org.cristalise.restapi.ItemRoot.getItemSummary(ItemRoot.java:209)
	at sun.reflect.GeneratedMethodAccessor101.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

No branches or pull requests

1 participant