I'm getting unit test failures in several tests of
org.geoserver.wfs.v1_1.GetFeatureTest due to the following exception
which seems to relate to the GEOS-7032 fix

org.xml.sax.SAXException: Entity resolution disallowed for
file:/home/smithkm/og-proj/geoserver/src/ows/target/classes/org/geoserver/ows/xml/v1_0/owsAll.xsd
Entity resolution disallowed for
file:/home/smithkm/og-proj/geoserver/src/ows/target/classes/org/geoserver/ows/xml/v1_0/owsAll.xsd

The failures seem to be stateful, depending on the other unit tests
being run, which commit I'm on, etc.  It's not as simple (for a rather
complicated definition of simple) as one previous test leaving some
state in place that breaks the test.  There's some more complicated
interaction of different factors going on that I haven't figured out. 
The only thing that's consistent is that the tests will pass when run as
part of the full set of GeoServer unit tests, and will pass when run in
isolation, regardless of which of my machines, which commit I build
from, which JDK I use (Oracle 7, Oracle 8, OpenJDK 7).

in

com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.resolveDocument(XSDDescription,
Map, XMLEntityResolver)

 it's trying to look up

../../ows/1.0.0/owsAll.xsd

from
 
jar:file:/home/smithkm/.m2-normal/repository/org/geotools/xsd/gt-xsd-wfs/14-SNAPSHOT/gt-xsd-wfs-14-SNAPSHOT.jar!/org/geotools/wfs/v1_1/wfs.xsd

and then "expanding" that to get

file:/home/smithkm/og-proj/geoserver/src/ows/target/classes/org/geoserver/ows/xml/v1_0/owsAll.xsd

This then runs afoul of the restriction on looking up XSDs from the
local file system.

In the non failing case, there's no attampt to resolve owsAll.xsd in
XMLSchemaLoader.resolveDocument at all.
------------------------------------------------------------------------------
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to