Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Jitsi call can't be launched when room name is too long - EXO-71657
Before this fix, when we call codec.encode(callId), the sub class use org.gatein.common.util.Base64 to encode callId. A base64 have a length limit, and this function add '\n' char when the limit it reach to separate lines. The java.util.Base64 does not recognise this character and throw an error. First option was to simply remove the \n in inviteId after encode, but the invite id generated is larger than 32char, the limit of the field in database As it is not necessary to have long inviteId value, and as the risk of collide is very low with the first 32 chars, this fix limit the length of the invite. With that, the \n char is certainly removed (as it occurs after the 32nd char), AND the inviteId is not too long for the column in database.
- Loading branch information