-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Providing landing page as "iut" results in a NullPointerException #27
Comments
Giving the tests the "collections" page makes that test pass, but it seems the same URI is also used in the LandingPage class, which results in a odd error message: "The landing page must include at least links with relation type 'service', 'conformance' and 'data', but contains [self, alternate] expected [true] but found [false]" The "Expected true but found false is a side effect of the assertTrue call, but don't think the user should see it (seems to imply a "true" or "false" rel are needed). |
Ah, in case you want to reproduce, use this as the "iut": http://cloudsdi.geo-solutions.it/geoserver/wfs3 |
Hum... how are you getting to the collections page? I've tried to just look at the code, and it seems to be using the rootURI, without adding "/collections", however, the actual request seems impossible to debug, rest assured is written in groovy and intelllij cannot give anything meaningul when decompiling its sources while I try to "step in" into the "request" method. |
Thanks a lot for your feedback! As far as I see we have several issues here:
|
I think there is a misunderstanding of the spec here (or between us). The landing page does not contain the list of collections, it merely has a links to the collection metadata operation. The links must be followed and the collection metadata operation used to run test A.4.4.5 By specification, even the OpenAPI must contain a "collections" endpoint, not a "collection" one. Following it gives you a full list of collections, e.g: |
Yes, I agree with you. That's why I think the test method |
New issues for all tasks summarized in #27 (comment) was created:
@aaime If it is fine for you we can close this issue. |
Works for me |
The README.md does not say which URL to provide (exemplifies a xml schema location instead), but giving a landing page one results in a NPE here:
https://github.com/opengeospatial/ets-wfs30/blob/a25a516309a54384599db5d0346ddb6b7c1e189a/src/main/java/org/opengis/cite/wfs30/collections/FeatureCollectionsMetadataOperation.java#L84
The method is apparently using the user provided URI to make the request, getting a landing page, that has no "collections" element, but just links to API, conformance and the collections page.
Giving the test a collections page link makes this pass. As discussed in the meeting, there is confusing about which URL one would have to give the tests, so maybe the easiest approach for the users is to accept any of them and adapt as a consequence (each has unique attributes that should help identify what one has got).
The text was updated successfully, but these errors were encountered: