After upgrading from JBoss 4 to JBoss 5, I've noticed the most annoying regression. It truncates the trailing equal sign ('=') of a base64 cookie value.
It took me so much time to understand that the problem wasn't my code but JBoss', I googled it and find out it's a known issue .
The suggested work around is to calculate the string length and pad it with trailing equal signs (to a length that is multiplicity of 4).
As our application can run on several application servers (e.g. WebLogic, WebSpehere) I am very reluctant to add this piece of code specific for this version of JBoss.
Did anybody encounter this? Can you suggest a smarter workaround?
edit: thanks to @skaffman I understood my problem, I shouldn't have used base64 for cookie string in the first place. There is a variant on base 64 called base64 url that should be used for such strings (cookies, urls...). The library Apache codec for example supports this variant in its base 64 implementation.