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 ji...@apache.org on 2004/04/12 23:13:45 UTC

[jira] Updated: (XERCERJ-11) URI may enter infinite loop

The following issue has been updated:

    Updater: Serge Knystautas (mailto:sergek@lokitech.com)
       Date: Mon, 12 Apr 2004 2:12 PM
    Changes:
             Attachment changed from URI.diff
    ---------------------------------------------------------------------
For a full history of the issue, see:

  http://issues.apache.org/jira/browse/XERCERJ-11?page=history

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/XERCERJ-11

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XERCERJ-11
    Summary: URI may enter infinite loop
       Type: Bug

     Status: Resolved
 Resolution: FIXED

    Project: Xerces2-J

   Assignee: Xerces-J Developers Mailing List
   Reporter: Petr Kuzel

    Created: Mon, 11 Jun 2001 3:08 AM
    Updated: Mon, 12 Apr 2004 2:12 PM
Environment: Operating System: Linux
Platform: PC

Description:
At URI.java:512 version 1.1.2.2 the path variable has value:
QBhomeQBpk97937QBffjuser30QBsampledir/../entity2/entity.dtd

In consequence the loop never finishes.


        at java.lang.String.indexOf(String.java:1352)
        at java.lang.String.indexOf(String.java:1296)
        at org.apache.xerces.util.URI.initialize(URI.java:513)
        at org.apache.xerces.util.URI.<init>(URI.java:209)
        at
org.apache.xerces.impl.XMLEntityManager.expandSystemId(XMLEntityManager.java:908)
        at
org.apache.xerces.impl.XMLEntityManager.resolveEntity(XMLEntityManager.java:521)
        at
org.apache.xerces.impl.XMLEntityManager.startEntity(XMLEntityManager.java:622)
        at org.apache.xerces.impl.XMLDTDScanner.startPE(XMLDTDScanner.java:549)
        at
org.apache.xerces.impl.XMLDTDScanner.skipSeparator(XMLDTDScanner.java:1785)
        at
org.apache.xerces.impl.XMLDTDScanner.scanDecls(XMLDTDScanner.java:1747)
        at
org.apache.xerces.impl.XMLDTDScanner.scanDTDInternalSubset(XMLDTDScanner.java:286)
        at
org.apache.xerces.impl.XMLDocumentScanner.scanDoctypeDecl(XMLDocumentScanner.java:713)
        at
org.apache.xerces.impl.XMLDocumentScanner$PrologDispatcher.dispatch(XMLDocumentScanner.java:1584)
        at
org.apache.xerces.impl.XMLDocumentScanner.scanDocument(XMLDocumentScanner.java:335)
        at
org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:389)
        at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:195)
        at
org.apache.xerces.parsers.AbstractXMLDocumentParser.parse(AbstractXMLDocumentParser.java:131)


---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


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