Spark does not un-escape usernames properly

Description

As reported in the forums, Spark was not unescaping usernames in certain cases.

ex. Mary Roberts was showing up as mary%roberts.

Environment

None

Activity

Show:

wroot 
November 12, 2009 at 1:10 AM

Can't reproduce this with the latest SVN version. I have created user with JID "test spark%user@server". I was able to login without escaping the space with 'test spark%user" and Spark wasnt freezing while watching vcard popups.

Francisco Vives 
May 3, 2007 at 1:10 AM

It was reported that the freeze also happens in the chat sessions .

Francisco Vives 
March 23, 2007 at 8:13 AM

I created the user: "test space%wired" at jivesoftware.com
password: francisco1

1- After the user creation the login form it filled test\20space%wired

2- After login, if I put the mouse over the contact francisco, spark is freeze and the following error is in the console:

java.lang.IllegalArgumentException
at sun.net.www.ParseUtil.decode(ParseUtil.java:189)
at sun.net.www.protocol.file.Handler.openConnection(Handler.java:65)
at sun.net.www.protocol.file.Handler.openConnection(Handler.java:55)
at java.net.URL.openConnection(URL.java:945)
at sun.awt.image.URLImageSource.getConnection(URLImageSource.java:97)
at sun.awt.image.URLImageSource.getDecoder(URLImageSource.java:107)
at sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.java:240)
at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:172)
at sun.awt.image.ImageFetcher.run(ImageFetcher.java:136)

How to reproduce it:
1- Create a user with a space in the JID
2- Login with the user test space%wired@jivesoftware.com and put the mouse over the contact francisco.

Cannot Reproduce

Details

Priority

Assignee

Reporter

Affects versions

Fix versions

Created March 12, 2007 at 9:08 PM
Updated November 12, 2009 at 1:10 AM
Resolved November 12, 2009 at 1:10 AM