Issue Details (XML | Word | Printable)

Key: JRA-12741
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Scott J. Geertgens
Votes: 1
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
JIRA

Multiselect Search Template doesn't honor HTML

Created: 16/May/07 09:32 AM   Updated: 17/May/07 11:53 PM
Component/s: Custom Fields
Affects Version/s: 3.9
Fix Version/s: 3.9.1

Time Tracking:
Not Specified

File Attachments: 1. File search-multiselect.vm (0.7 kB)

Environment: Standalone, JDK 1.6.0, Windows 2003 Server

Participants: Andreas Knecht [Atlassian], Anton Mazkovoi [Atlassian] and Scott J. Geertgens
Since last comment: 1 year, 20 weeks, 4 days ago
Resolution Date: 17/May/07 11:53 PM
Labels:


 Description  « Hide
When a custom field has defined options using HTML and is attached to a mutli-select search template, it is not possible to correctly search on those fields.

For example, we have a custom field called 'Status', with a value of "<span style="background:#0F0;">Green</span>", which just adds a green background to the field in the Issue Navigator.

With the single-select searcher, the Find Issues query panel will correctly list "Green" along with the other options.

With the multi-select searcher, the Find Issues query panel will incorrectly list (given verbatim below):
Green">Green

... which doesn't correctly match any issues.

Escaping the "<" and ">" symbols doesn't appear to have the desired effect either.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Andreas Knecht [Atlassian] added a comment - 17/May/07 11:52 PM
Attached a patched search-multiselect.vm that fixes this problem. Simply replace the search-multiselect.vm in your JIRA installation directory with the attached file. (Tested on JIRA 3.9)

Andreas Knecht [Atlassian] added a comment - 17/May/07 11:53 PM
Fixed the search-multiselect template to properly HTML encode the option value when submitting.