Maven Changes Plugin
  1. Maven Changes Plugin
  2. MCHANGES-75

Setting maxEntries too high causes a SAXParseException

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-beta-2
    • Fix Version/s: 2.0
    • Component/s: jira
    • Labels:
      None
    • Environment:
      maven 2.0.6

      Description

      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.

        Activity

        John Casey created issue -
        Hide
        John Casey added a comment -

        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)

        Show
        John Casey added a comment - 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 -
        Field Original Value New Value
        Component/s jira-report [ 12878 ]
        Hide
        Dennis Lundberg added a comment -

        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.

        Show
        Dennis Lundberg added a comment - 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 -
        Summary Setting maxEntries results in incorrect JIRA results Setting maxEntries too high causes a SAXParseException
        Hide
        Dennis Lundberg added a comment -

        I have documented a work-around in the FAQ.

        Show
        Dennis Lundberg added a comment - I have documented a work-around in the FAQ.
        Dennis Lundberg made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        Fix Version/s 2.0-beta-4 [ 13722 ]
        Assignee Dennis Lundberg [ dennislundberg ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 09:14:45 UTC 2015 [ 1428225285377 ]
        Mark Thomas made changes -
        Workflow jira [ 12717910 ] Default workflow, editable Closed status [ 12749417 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 22:40:15 UTC 2015 [ 1428273615853 ]
        Mark Thomas made changes -
        Workflow jira [ 12955423 ] Default workflow, editable Closed status [ 12992485 ]
        Mark Thomas made changes -
        Assignee dennislundberg [ dennislundberg ] Dennis Lundberg [ dennisl@apache.org ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Closed Closed
        305d 10h 43m 1 Dennis Lundberg 10/Feb/08 05:49

          People

          • Assignee:
            Dennis Lundberg
            Reporter:
            John Casey
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development