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 "Michael Glavassevich (JIRA)" <xe...@xml.apache.org> on 2005/06/23 20:34:10 UTC

[jira] Resolved: (XERCESJ-1070) Error when maxOccurs greater than that enforced by security manager is incorrect.

     [ http://issues.apache.org/jira/browse/XERCESJ-1070?page=all ]
     
Michael Glavassevich resolved XERCESJ-1070:
-------------------------------------------

    Resolution: Fixed

Thanks. I've fixed the message in CVS so it now reads: "Current configuration of the parser doesn't allow the expansion of a content model for a complex type to contain more than {0} nodes."

> Error when maxOccurs greater than that enforced by security manager is incorrect.
> ---------------------------------------------------------------------------------
>
>          Key: XERCESJ-1070
>          URL: http://issues.apache.org/jira/browse/XERCESJ-1070
>      Project: Xerces2-J
>         Type: Bug
>   Components: XML Schema Structures
>     Versions: 2.6.2
>     Reporter: David Sheldon
>     Priority: Minor
>  Attachments: maxOccurs-total.xsd, maxOccurs.patch, maxOccurs1001.xsd
>
> We have enabled the security manager, limiting the number of maxOccurs to 3000.
> Xerces says
> "Current configuration of the parser doesn't allow a maxOccurs attribute value
> to be set greater than the value 3,000" 
> This is misleading on two counts. 
>   1. This error is reported if maxOccurs for a particular element is set to 1001 (not 3001).
>   2. It is also reported if the sum of the maxOccurs across many elements in the schema is 
>    greater than 1000.
> The first of these appears to be caused by inconsistancy in CMNodeFactory:
>   private static final int MULTIPLICITY = 1 ;
> ...
>   //we are setting the limit of number of nodes to 3times the maxOccur value..
>   if(fSecurityManager != null){
>      maxNodeLimit = fSecurityManager.getMaxOccurNodeLimit() * MULTIPLICITY ;
>   }
> I'm guessing that MULTIPLICITY should be 3.
> The second of these will require rewording the error message. How about 
> "Current configuration of the parser doesn't allow maxOccurs attribute values in a schema
> to sum to greater than 3,000." 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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