Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 8.0-RC1
-
Fix Version/s: None
-
Component/s: app-schema plugin
-
Labels:None
Description
[Pushed upstream from CSIRO Jira issue created 24/Oct/11. See https://jira.csiro.au/browse/SISS-1138 (login required)]
FeatureChainingWfsTest.testFilteringXlinkHref() doesn't test filtering attributes that were encoded as xlink:href anymore. Perhaps because the data in the properties file has changed.
I updated the test and it failed:
/**
* Making sure attributes that are encoded as xlink:href can still be queried in filters.
*/
public void testFilteringXlinkHref() {
String xml = //
"<wfs:GetFeature " //
+ GETFEATURE_ATTRIBUTES //
+ ">" //
+ " <wfs:Query typeName=\"gsml:MappedFeature\">" //
+ " <ogc:Filter>" //
+ " <ogc:PropertyIsEqualTo>" //
+ " <ogc:PropertyName>gsml:specification/gsml:GeologicUnit/gml:name</ogc:PropertyName>" //
+ " <ogc:Literal>Yaugher Volcanic Group 2</ogc:Literal>" //
+ " </ogc:PropertyIsEqualTo>" //
+ " </ogc:Filter>" //
+ " </wfs:Query> " //
+ "</wfs:GetFeature>";
validate(xml);
Document doc = postAsDOM("wfs", xml);
LOGGER.info("WFS filter GetFeature response:\n" + prettyString(doc));
assertEquals("wfs:FeatureCollection", doc.getDocumentElement().getNodeName());
// there should be 2:
// - mf2/gu.25678
// - mf3/gu.25678
assertXpathEvaluatesTo("2", "/wfs:FeatureCollection/@numberOfFeatures", doc);
assertXpathCount(2, "//gsml:MappedFeature", doc);
assertXpathEvaluatesTo("mf2", "//gsml:MappedFeature[1]/@gml:id", doc);
assertXpathEvaluatesTo("mf3", "//gsml:MappedFeature[2]/@gml:id", doc);
}