<< Back to previous view |
![]() |
[QB-681] Failed rendering PMD violations panel when character '<' exists in the rule description
|
|
Status: | Resolved |
Project: | QuickBuild |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | 3.0.13 |
Type: | Bug | Priority: | Major |
Reporter: | Steve Luo | Assigned To: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Remaining Estimate: | Unknown | Time Spent: | Unknown |
Original Estimate: | Unknown |
Description |
For example, below violation will lead to an unexpected exception when viewing PMD violations report:
The String literal "<<<" appears 4 times in this file; the first occurrence is on line 149 The exception looks like: WicketMessage: Malformed tag (line 7, column 34) [markup = onclick="window.open('http://pmd.sourceforge.net/rules/strings.html#AvoidDuplicateLiterals', 'AvoidDuplicateLiterals')"> ] The String literal "<<<" appears 4 times in this file; the first occurrence is on line 149 onclick="window.open('http://pmd.sourceforge.net/rules/strings.html#AvoidDuplicateLiterals', 'AvoidDuplicateLiterals')"> ] The String literal "<<<" appears 4 times in this file; the first occurrence is on line 149 , index = 1, current = [Raw markup]] Root cause: java.text.ParseException: Malformed tag (line 7, column 34) at org.apache.wicket.markup.parser.XmlPullParser.next(XmlPullParser.java:305) at org.apache.wicket.markup.parser.XmlPullParser.nextTag(XmlPullParser.java:421) at org.apache.wicket.markup.parser.filter.WicketTagIdentifier.nextTag(WicketTagIdentifier.java:77) at org.apache.wicket.markup.parser.filter.HtmlHandler.nextTag(HtmlHandler.java:78) .... |