XML parser has an infinite loop

Description

There is an infinite loop here:

(09:45:04) jrmacgill: at org.geotools.xml.handlers.xsi.SchemaHandler.lookUpComplexType(SchemaHandler.java:699) at org.geotools.xml.handlers.xsi.ComplexTypeHandler.compress(ComplexTypeHandler.java:516) at org.geotools.xml.handlers.xsi.SchemaHandler.lookUpComplexType(SchemaHandler.java:716) at org.geotools.xml.handlers.xsi.ComplexTypeHandler.compress(ComplexTypeHandler.java:516) at org.geotools.xml.handlers.xsi.SchemaHandler.lookUpComplexType(SchemaHandler.java:716) at org.geotools.xml.handlers.xsi.ComplexTypeHandler.compress(ComplexTypeHandler.java:516)
(09:45:27) jrmacgill: etc etc etc...

Environment

None

Activity

Show:
codehaus
April 10, 2015, 3:15 PM

CodeHaus Comment From: dzwiers - Time: Tue, 26 Oct 2004 13:38:22 -0500
---------------------
Sample Data Causing the error:

&lt;schema targetNamespace=&quot;<a href="http://www.ordnancesurvey.co.uk/xml/namespaces/osgb">http://www.ordnancesurvey.co.uk/xml/namespaces/osgb</a>&quot; xmlns=&quot;<a href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</a>&quot; xmlns:xlink=&quot;<a href="http://www.w3.org/1999/xlink">http://www.w3.org/1999/xlink</a>&quot; xmlns:gml=&quot;<a href="http://www.opengis.net/gml">http://www.opengis.net/gml</a>&quot; xmlns:osgb=&quot;<a href="http://www.ordnancesurvey.co.uk/xml/namespaces/osgb">http://www.ordnancesurvey.co.uk/xml/namespaces/osgb</a>&quot; elementFormDefault=&quot;qualified&quot; attributeFormDefault=&quot;unqualified&quot; version=&quot;2.6&quot;&gt;

&lt;complexType name=&quot;AbstractFeatureType&quot;&gt;

&lt;annotation&gt;

&lt;documentation xml:lang=&quot;en&quot;&gt;

Abstract base type for all ordnance survey features. Extends the gml abstract

feature in order to ensure compliance with GML.

&lt;/documentation&gt;

&lt;/annotation&gt;

&lt;complexContent&gt;

&lt;extension base=&quot;gml:AbstractFeatureType&quot;&gt;

&lt;group ref=&quot;osgb:FeatureGroup&quot;/&gt;

&lt;/extension&gt;

&lt;/complexContent&gt;

&lt;/complexType&gt;

...

This causes a bad lookup. Need to incorporate Namespace into the search.

codehaus
April 10, 2015, 3:15 PM

CodeHaus Comment From: dzwiers - Time: Tue, 26 Oct 2004 19:28:52 -0500
---------------------
Schema parser now parses the schema ... but we can only get one type of feature atm.

Assignee

Unassigned

Reporter

codehaus

Triage

None

Fix versions

Affects versions

Priority

High
Configure