jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting (JIRA)" <j...@apache.org>
Subject [jira] Updated: (JCR-1644) make NamespaceContext#getPrefix(java.lang.String) iterative instead of recursive
Date Mon, 04 Aug 2008 10:25:48 GMT

     [ https://issues.apache.org/jira/browse/JCR-1644?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jukka Zitting updated JCR-1644:
-------------------------------

    Fix Version/s:     (was: 1.5)
                   core 1.4.6
       Issue Type: Bug  (was: Improvement)

Based on demand I merged this to the 1.4 branch in revision 682313. The fix will be included
in jackrabbit-core 1.4.6.

Thanks for the example XML file! I tried importing it (with jackrabbit-core 1.4.1), but the
tallest NamespaceContext stack I saw was just 13 levels deep, i.e. nowhere near to cause a
stack overflow unless your application already is way too close to the stack limit.

> make NamespaceContext#getPrefix(java.lang.String) iterative instead of recursive
> --------------------------------------------------------------------------------
>
>                 Key: JCR-1644
>                 URL: https://issues.apache.org/jira/browse/JCR-1644
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: jackrabbit-core, xml
>    Affects Versions: core 1.4.5
>            Reporter: Philippe Marschall
>            Assignee: Jukka Zitting
>            Priority: Minor
>             Fix For: core 1.4.6
>
>         Attachments: JCR-1644-patch.diff, NamespaceContext.java, NamespaceContext.java.patch,
website.untitled4.xml.tar.bz2
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message