Bugs item #2557654, was opened at 2009-02-02 11:31
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=119984&aid=2557654&group_id=19984

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Search
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Tim Donohue (tdonohue)
Assigned to: Tim Donohue (tdonohue)
Summary: Search with "%" causes NullPointer in XMLUI

Initial Comment:
In DSpace 1.5.x XMLUI, if your search includes the percent (%) character you 
receive a NullPointerException.   

I've attached a patch which first escapes the % character (i.e. replaces with 
%25), before decoding the string in AbstractDSpaceTransformer.URLDecode().  All 
other symbols seem to work fine (at least they don't throw errors).

This seems to be the most appropriate fix, to ensure we aren't throwing a 
NullPointerException when this character is entered.

Patch was created for latest code in 1.5.x branch (as of 2009-Feb-2).

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=119984&aid=2557654&group_id=19984

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to