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, 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, 1:10 AM

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

Francisco Vives
March 23, 2007, 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
Your pinned fields
Click on the next to a field label to start pinning.

Priority

Major

Assignee

Andrew Seymour

Reporter

Derek DeMoro