Issue Details (XML | Word | Printable)

Key: MCHANGES-75
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Dennis Lundberg
Reporter: John Casey
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Maven 2.x Changes Plugin

Setting maxEntries too high causes a SAXParseException

Created: 10/Apr/07 07:05 PM   Updated: 10/Feb/08 05:49 AM   Resolved: 10/Feb/08 05:49 AM
Return to search
Component/s: jira-report
Affects Version/s: 2.0-beta-2
Fix Version/s: 2.0

Time Tracking:
Not Specified

Environment: maven 2.0.6


 Description  « Hide

When I configure maxEntries == 500 and point the jira-report at http://jira.codehaus.org/browse/MNG, it fails to parse the resulting XML, saying it has exceeded 64,000 entity expansions (something to do with SAX). The error is:

org.xml.sax.SAXParseException: Parser has reached the entity expansion limit "64,000" set by the Application.

When I wget the URL that the changes plugin has generated:

http://jira.codehaus.org/secure/IssueNavigator.jspa?view=rss&pid=10500&sorter/field=created&sorter/order=DESC&sorter/field=priority&sorter/order=DESC&tempMax=500&reset=true&decorator=none

it shows results from XWIRE and XULUX...clearly not limited to MNG.



John Casey added a comment - 10/Apr/07 07:09 PM

The same thing happens if I use the issueManagement URL:

http://jira.codehaus.org/secure/BrowseProject.jspa?pid=10500

(I had been using http://jira.codehaus.org/browse/MNG)


Dennis Lundberg made changes - 04/Jul/07 05:40 PM
Field Original Value New Value
Component/s jira-report [ 12878 ]
Dennis Lundberg added a comment - 07/Jul/07 07:09 PM

This seems to be a limit in the SAX parser. The error happens when there are a lot of entities like & and such in the file being parsed. I got around this one by specifying an explicit value for this limit on the command line

mvn site -DentityExpansionLimit=100000

When doing that, I only got issues for MNG - not any other project. So that may have been a glitch in codehaus JIRA at that time.

However, I have not been successful in doing this programatically in the plugin. You can set properties on the parser, but I don't know the correct id for the property.


Dennis Lundberg made changes - 10/Feb/08 05:47 AM
Summary Setting maxEntries results in incorrect JIRA results Setting maxEntries too high causes a SAXParseException
Dennis Lundberg added a comment - 10/Feb/08 05:49 AM

I have documented a work-around in the FAQ.


Dennis Lundberg made changes - 10/Feb/08 05:49 AM
Assignee Dennis Lundberg [ dennislundberg ]
Resolution Fixed [ 1 ]
Fix Version/s 2.0-beta-4 [ 13722 ]
Status Open [ 1 ] Closed [ 6 ]