powered by Jive Software

Underscore in usernames (IDNAException: Contains non-LDH characters)

Hi,

Jive Messenger doesn’‘t like underscores in usernames, or Java doesn’'t like it. Are you planning on making a filter for usernames? It would be nice if it was possible to not allow usernames that matches a certain regex or maybe the other way around.

Below is one of the many errors …

2005.12.06 08:55:28 org.jivesoftware.messenger.handler.PresenceUpdateHandler.process(PresenceUpdateH andler.java:130) Internal server error

java.lang.IllegalArgumentException: Illegal JID: alice_ve

at org.xmpp.packet.JID.init(JID.java:398)

at org.xmpp.packet.JID.(Roster.java:85)

at org.jivesoftware.messenger.roster.RosterManager.getRoster(RosterManager.java:73 )

at org.jivesoftware.messenger.handler.PresenceUpdateHandler.broadcastUpdate(Presen ceUpdateHandler.java:238)

at org.jivesoftware.messenger.handler.PresenceUpdateHandler.process(PresenceUpdate Handler.java:103)

at org.jivesoftware.messenger.handler.PresenceUpdateHandler.process(PresenceUpdate Handler.java:141)

at org.jivesoftware.messenger.SessionManager$ClientSessionListener.onConnectionClo se(SessionManager.java:1279)

at org.jivesoftware.messenger.net.SocketConnection.notifyCloseListeners(SocketConn ection.java:400)

at org.jivesoftware.messenger.net.SocketConnection.close(SocketConnection.java:285 )

at org.jivesoftware.messenger.net.SocketReader.run(SocketReader.java:147)

at java.lang.Thread.run(Unknown Source)

Caused by: org.jivesoftware.stringprep.IDNAException: Contains non-LDH characters.

at org.jivesoftware.stringprep.IDNA.toASCII(IDNA.java:106)

at org.jivesoftware.stringprep.IDNA.toASCII(IDNA.java:53)

at org.xmpp.packet.JID.init(JID.java:363)

… 17 more

Thanks,

Mark

Message was edited by:

CmdrNelle

Message was edited by:

CmdrNelle