Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-1644

make NamespaceContext#getPrefix(java.lang.String) iterative instead of recursive

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • core 1.4.5
    • core 1.4.6
    • jackrabbit-core, xml
    • None

    Description

      Currently the method org.apache.jackrabbit.core.xml.NamespaceContext#getPrefix(java.lang.String) uses recursion. For very large XML files (50 MB Magnolia website exports) this causes a stack overflow. The method can easily be rewritten using iteration.

      Attachments

        1. JCR-1644-patch.diff
          2 kB
          Fabrizio Giustina
        2. NamespaceContext.java
          4 kB
          Philippe Marschall
        3. NamespaceContext.java.patch
          1 kB
          Philippe Marschall
        4. website.untitled4.xml.tar.bz2
          8.82 MB
          Philippe Marschall

        Activity

          People

            jukkaz Jukka Zitting
            marschall Philippe Marschall
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: