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 xe...@xml.apache.org on 2004/09/08 12:38:37 UTC
[jira] Created: (XERCESJ-1009) endless loop with broken document that contains CDATA section
Message:
A new issue has been created in JIRA.
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/XERCESJ-1009
Here is an overview of the issue:
---------------------------------------------------------------------
Key: XERCESJ-1009
Summary: endless loop with broken document that contains CDATA section
Type: Bug
Status: Unassigned
Priority: Major
Project: Xerces2-J
Versions:
2.6.2
Assignee:
Reporter: Daniel Naber
Created: Wed, 8 Sep 2004 3:37 AM
Updated: Wed, 8 Sep 2004 3:37 AM
Environment: Suse Linux 8.2, Java 1.4.1
Description:
This code will run into an endless loop trying to parse the (broken) XML. I'd expect an exception instead.
import java.io.IOException;
import java.io.Reader;
import java.io.StringReader;
import org.apache.xerces.parsers.SAXParser;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;
import org.xml.sax.XMLReader;
public class XMLTest {
public static void main(String[] args) throws IOException, SAXException {
XMLReader xr = new SAXParser();
String s = "<t><![CDATA[X]"; // endless loop
//String s = "<t><![CDATA[X"; // this works, i.e. throws exception
Reader r = new StringReader(s);
System.out.println("parsing...");
xr.parse(new InputSource(r));
System.out.println("done.");
}
}
---------------------------------------------------------------------
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
[jira] Commented: (XERCESJ-1009) endless loop with broken document that contains CDATA section
Posted by xe...@xml.apache.org.
The following comment has been added to this issue:
Author: Ankit Pasricha
Created: Wed, 8 Sep 2004 7:58 AM
Body:
Seems to be working fine with 2.6.2 (and latest CVS) in Windows. Could be a linux specific problem
---------------------------------------------------------------------
View this comment:
http://issues.apache.org/jira/browse/XERCESJ-1009?page=comments#action_52961
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/XERCESJ-1009
Here is an overview of the issue:
---------------------------------------------------------------------
Key: XERCESJ-1009
Summary: endless loop with broken document that contains CDATA section
Type: Bug
Status: Unassigned
Priority: Major
Project: Xerces2-J
Versions:
2.6.2
Assignee:
Reporter: Daniel Naber
Created: Wed, 8 Sep 2004 3:37 AM
Updated: Wed, 8 Sep 2004 7:58 AM
Environment: Suse Linux 8.2, Java 1.4.1
Description:
This code will run into an endless loop trying to parse the (broken) XML. I'd expect an exception instead.
import java.io.IOException;
import java.io.Reader;
import java.io.StringReader;
import org.apache.xerces.parsers.SAXParser;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;
import org.xml.sax.XMLReader;
public class XMLTest {
public static void main(String[] args) throws IOException, SAXException {
XMLReader xr = new SAXParser();
String s = "<t><![CDATA[X]"; // endless loop
//String s = "<t><![CDATA[X"; // this works, i.e. throws exception
Reader r = new StringReader(s);
System.out.println("parsing...");
xr.parse(new InputSource(r));
System.out.println("done.");
}
}
---------------------------------------------------------------------
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
[jira] Closed: (XERCESJ-1009) endless loop with broken document that contains CDATA section
Posted by xe...@xml.apache.org.
Message:
The following issue has been closed.
Resolver: nddelima
Date: Thu, 9 Sep 2004 1:50 PM
This was fixed some time back. See http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11406
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/XERCESJ-1009
Here is an overview of the issue:
---------------------------------------------------------------------
Key: XERCESJ-1009
Summary: endless loop with broken document that contains CDATA section
Type: Bug
Status: Closed
Priority: Major
Resolution: FIXED
Project: Xerces2-J
Versions:
2.6.2
Assignee:
Reporter: Daniel Naber
Created: Wed, 8 Sep 2004 3:37 AM
Updated: Thu, 9 Sep 2004 1:50 PM
Environment: Suse Linux 8.2, Java 1.4.1
Description:
This code will run into an endless loop trying to parse the (broken) XML. I'd expect an exception instead.
import java.io.IOException;
import java.io.Reader;
import java.io.StringReader;
import org.apache.xerces.parsers.SAXParser;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;
import org.xml.sax.XMLReader;
public class XMLTest {
public static void main(String[] args) throws IOException, SAXException {
XMLReader xr = new SAXParser();
String s = "<t><![CDATA[X]"; // endless loop
//String s = "<t><![CDATA[X"; // this works, i.e. throws exception
Reader r = new StringReader(s);
System.out.println("parsing...");
xr.parse(new InputSource(r));
System.out.println("done.");
}
}
---------------------------------------------------------------------
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
[jira] Commented: (XERCESJ-1009) endless loop with broken document that contains CDATA section
Posted by xe...@xml.apache.org.
The following comment has been added to this issue:
Author: Daniel Naber
Created: Wed, 8 Sep 2004 8:17 AM
Body:
I just re-checked this and I think I confused the *.jar files so I didn't really test 2.6.2. With 2.6.2 it seems to work. I think you can close this bug, sorry.
---------------------------------------------------------------------
View this comment:
http://issues.apache.org/jira/browse/XERCESJ-1009?page=comments#action_52963
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/XERCESJ-1009
Here is an overview of the issue:
---------------------------------------------------------------------
Key: XERCESJ-1009
Summary: endless loop with broken document that contains CDATA section
Type: Bug
Status: Unassigned
Priority: Major
Project: Xerces2-J
Versions:
2.6.2
Assignee:
Reporter: Daniel Naber
Created: Wed, 8 Sep 2004 3:37 AM
Updated: Wed, 8 Sep 2004 8:17 AM
Environment: Suse Linux 8.2, Java 1.4.1
Description:
This code will run into an endless loop trying to parse the (broken) XML. I'd expect an exception instead.
import java.io.IOException;
import java.io.Reader;
import java.io.StringReader;
import org.apache.xerces.parsers.SAXParser;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;
import org.xml.sax.XMLReader;
public class XMLTest {
public static void main(String[] args) throws IOException, SAXException {
XMLReader xr = new SAXParser();
String s = "<t><![CDATA[X]"; // endless loop
//String s = "<t><![CDATA[X"; // this works, i.e. throws exception
Reader r = new StringReader(s);
System.out.println("parsing...");
xr.parse(new InputSource(r));
System.out.println("done.");
}
}
---------------------------------------------------------------------
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