opengeospatial / ets-csw202

Executable Test Suite for CSW 2.0.2
Other
2 stars 1 forks source link

invalid identifier should raise an exception #3

Closed bermud closed 9 years ago

bermud commented 10 years ago

csw:csw-2.0.2-GetRecordById-tc3.1

The test is currently enforcing that: "The response to a GetRecordById request containing no matching identifiers must be empty".

But the specification says that if any of the identifiers specified in the operation is invalid, then the operation should fail and an exception message should be returned as described in subclause 10.3.7.

Moreover, "this operation presumes that a previous query has been performed in order to obtain the identifiers that may be used with this operation".

Hence, it seems reasonable that an exception is raised, instead.

Originally reported in the OGC CITE issue tracker: issue #907
Opened: 2013-12-02 13:31:49

lorebiga commented 9 years ago

This is not a bug, as the specification is not clear on this point. In fact, the current test implementation is legitimate and very clear.

All the existing compliant instances would be broken if we revert this interpretation, as the reasons to do so are not compelling, I'm closing this issue without changes.

Note: in CS 3.0, the interpretation has actually been reverted, adding an explicit requirement to remove any ambiguity.