You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by "yuechen (JIRA)" <xe...@xml.apache.org> on 2010/06/24 20:35:50 UTC

[jira] Created: (XERCESJ-1455) New system property to limit entity expansion

New system property to limit entity expansion
---------------------------------------------

                 Key: XERCESJ-1455
                 URL: https://issues.apache.org/jira/browse/XERCESJ-1455
             Project: Xerces2-J
          Issue Type: Improvement
          Components: JAXP (javax.xml.parsers)
    Affects Versions: 2.10.0, 2.9.1, 2.9.0, 2.8.1, 2.8.0, 2.7.1
         Environment: all
            Reporter: yuechen
            Priority: Trivial
             Fix For: 2.10.0, 2.9.1, 2.9.0, 2.8.1, 2.8.0, 2.7.1


when setting org.apache.xerces.util.SecurityManager, default entityExpansionLimit is 100,000. this is still too high in many cases. although security Manager does have a setter for entityExpansionLimit, it will be more user friendly to have a new system property to limit entity expansion, such as the one in Sun's JAXP implementation: http://java.sun.com/j2se/1.5.0/docs/guide/xml/jaxp/JAXP-Compatibility_150.html#JAXP_security

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


---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org


[jira] Updated: (XERCESJ-1455) New system property to limit entity expansion

Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XERCESJ-1455?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Glavassevich updated XERCESJ-1455:
------------------------------------------

    Fix Version/s:     (was: 2.7.1)
                       (was: 2.8.0)
                       (was: 2.8.1)
                       (was: 2.9.0)
                       (was: 2.9.1)
                       (was: 2.10.0)

> New system property to limit entity expansion
> ---------------------------------------------
>
>                 Key: XERCESJ-1455
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1455
>             Project: Xerces2-J
>          Issue Type: Improvement
>          Components: JAXP (javax.xml.parsers)
>    Affects Versions: 2.7.1, 2.8.0, 2.8.1, 2.9.0, 2.9.1, 2.10.0
>         Environment: all
>            Reporter: yuechen
>            Priority: Trivial
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> when setting org.apache.xerces.util.SecurityManager, default entityExpansionLimit is 100,000. this is still too high in many cases. although security Manager does have a setter for entityExpansionLimit, it will be more user friendly to have a new system property to limit entity expansion, such as the one in Sun's JAXP implementation: http://java.sun.com/j2se/1.5.0/docs/guide/xml/jaxp/JAXP-Compatibility_150.html#JAXP_security

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


---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org


[jira] Resolved: (XERCESJ-1455) New system property to limit entity expansion

Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XERCESJ-1455?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Glavassevich resolved XERCESJ-1455.
-------------------------------------------

    Resolution: Won't Fix

Using system properties to configure the parser is problematic in many environments. It has a global effect in the JVM and thus can trample on the preferences of other applications (even those loaded by other ClassLoaders), possibly breaking them by doing so. See XERCESJ-976 for example. Adding this proposed system property would encourage more bad practice. Applications should be using the APIs for configuring the entity expansion limit and other settings.

> New system property to limit entity expansion
> ---------------------------------------------
>
>                 Key: XERCESJ-1455
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1455
>             Project: Xerces2-J
>          Issue Type: Improvement
>          Components: JAXP (javax.xml.parsers)
>    Affects Versions: 2.7.1, 2.8.0, 2.8.1, 2.9.0, 2.9.1, 2.10.0
>         Environment: all
>            Reporter: yuechen
>            Priority: Trivial
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> when setting org.apache.xerces.util.SecurityManager, default entityExpansionLimit is 100,000. this is still too high in many cases. although security Manager does have a setter for entityExpansionLimit, it will be more user friendly to have a new system property to limit entity expansion, such as the one in Sun's JAXP implementation: http://java.sun.com/j2se/1.5.0/docs/guide/xml/jaxp/JAXP-Compatibility_150.html#JAXP_security

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


---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org