Project

General

Profile

TigaseStringprepException: Illegal characters in string.

Matthew M
Added almost 5 years ago

We some time got this exception during SaslAuth, it would be nice if this exception could log the actual input jid string so we can easily figure out which part goes wrong... Do you think it could be added to the tigase-util package? The code throws this exception is

XMPPStringPrepSimple.java:

    @Override
    public String nodeprep(String localpart) throws TigaseStringprepException {
        String result = localpart.trim();

        if ( !checkString(result)) {
            throw new TigaseStringprepException("Illegal characters in string.");
        }

        return result;
    }

Would it be nice to have

    throw new TigaseStringprepException("Illegal characters in string, localpart = " + localpart);

Thanks!


Replies (1)

Added by Wojciech Kapcia TigaseTeam almost 5 years ago

Sounds good, added.

    (1-1/1)