Open JohannaOtt opened 1 year ago
Dear @JohannaOtt
The response provided by the service with wrong parameters is not according to the WMS standard. Below it is an example of such a request to the service:
The response of the server is "internal error".
However the standard clearly mentions that the response of the server should be an XML, that should validate according to a schema, even if the user is providing wrong parameters in the request.
Indeed the INSPIRE validator is not providing a clear error message for a developer of a custom WMS, to know what to fix, and I do not expect that such a clear message useful for debugging to be easy to be provided by the validator. I do not think that the validator should become a debugger to identify all potential problems that could be encountered in a custom development. Even Microsoft and ESRI have an "unknown errror" message and even the WMS that was developed provides an "internal error" without providing any further information.
But indeed the error message "The server experienced a several unexpected error. Please, try again later. If the problem persist, please contact with the helpdesk." is vague and incorrect, as the message should inform the the user that if the problem persist it means that the service has an unknown error. Therefore heldesk should not be contacted but the service should be fixed.
The OGC WMS standard 1.3.0 states in Annex E:
"Individual error messages appear as ServiceException elements within the ServiceExceptionReport element."
"The schema may also be found on-line at http://schemas.opengis.net/wms/1.3.0/. Service exception XML shall be valid according to this service exception schema."
https://schemas.opengis.net/wms/1.3.0/exceptions_1_3_0.xsd
Response should look like in the image below
Therefore it can be considered as "user to fix" as the message provided by the WMS is unclear (internal error), so why should be the message from the Validator more clear?
If the validator could test all such responses of the web services, it would be great, but with a significant effort, namely time and money.
So, somwere should exist a limit of what the validator should test and provide a clear message and where an "unknown error" should be enough to let the user know that something is wrong in the web service and cant be (easily) determined.
But in any case the error message providedby the validator should be changed to i dicate that an unknowm error exist in the service, not in the validator.
Hope it helps, Iurie
The response of the server is "internal error". However the standard clearly mentions that the response of the server should be an XML, that should validate according to a schema, even if the user is providing wrong parameters in the request.
True, thanks for checking, did miss that one.
Indeed the INSPIRE validator is not providing a clear error message for a developer of a custom WMS, to know what to fix, and I do not expect that such a clear message useful for debugging to be easy to be provided by the validator.
I think a message similar to the one EID56fffaf2-4ef9-4206-968b-8f5427f5f076 is throwing ("A GetMap was requested using parameter 'VERSION' with an invalid value and the service did not throw an exception.") would be sufficient. Then developers at least know that they need to start from a request with a wrong/missing value for parameter X.
Therefore it can be considered as "user to fix" as the message provided by the WMS is unclear (internal error), so why should be the message from the Validator more clear?
To me, the error message is very clear indicating that one should contact the helpdesk. If you want to avoid analysing such issues, I would still propose to change that message.
So, somwere should exist a limit of what the validator should test and provide a clear message and where an "unknown error" should be enough to let the user know that something is wrong in the web service and cant be (easily) determined.
As pointed out before, I would wish for at least a hint that it is about wrong behavior on wrong requests. The INSPIRE validator still has many errors, so IMO an unknown error will lead to the users trying to find out what is wrong with the validator (and end up creating issues here) .
Dear all,
we will analyze the tests that provide the generic error message and try to improve them.
The response of the server is "internal error". However the standard clearly mentions that the response of the server should be an XML, that should validate according to a schema, even if the user is providing wrong parameters in the request.
True, thanks for checking, did miss that one.
This WMS is returning an XML with the expected exception when sending a wrong request but the validator is still showing the "The server experienced a several unexpected error. Please, try again later. If the problem persist, please contact with the helpdesk." error. Report attached Test run on 11_12 - 03.07.2024 with test suite Conformance Class View Service WMS.html.zip
So it seems that this error is not only caused by services returning unexpected exception messages.
As long as there is no more meaningful error message: Could you please check why that WMS is failing the getmap-default-parameters and the at58-getmap-transparent-parameter tests?
This is a follow up ticket of https://github.com/INSPIRE-MIF/helpdesk-validator/issues/496, so there might be some useful input there as well.
a description of the steps to reproduce your issue Test this WMS in the validator. (I saw it happen for many other services, too) It returne the error message "The server experienced a several unexpected error. Please, try again later. If the problem persist, please contact with the helpdesk." for multiple tests. I would have expected a clear error message allowing me to fix the service (if necessary). I tested on staging as on production it is currently running into an error, but I think that should not really matter.
the browser and version used Firefox 109.0.1 on Windows 10
a screenshot illustrating the problem![grafik](https://user-images.githubusercontent.com/34163838/218957376-725408b6-e892-4a21-8214-29b4ba67d6dd.png)
the Test Report (ideally as an attachment to the issue) Test run on 08 08 - 15.02.2023 with test suite Conformance Class View Service WMS.html.zip
the name of the Test that failed or better: change the
Level of Detail
in the Report by clicking onAll Details
, then scroll down to the failed test and copy the Link on the right-hand side of theAssertion URI
Multiple tests; EID2fca2634-8e01-452d-a1cc-201931723c78, EID797a26b6-e559-473a-a7e0-0928b6261a3f, EIDd3294131-d396-48f7-bafd-3b3cfe045025, EID99e7bddc-1c91-4fcd-841b-44bcfa88d616, EID0f443084-c9bb-4f7a-b166-6e5442e27aa4, EID86f82b8a-4887-4fad-a931-c0bbc2ff281e, EIDbb257502-6c92-4221-929d-c6a3cb82d8f0the URL of your service / the file you have uploaded or referenced (as an attachment). https://inspire-hessen.de/raster/wms/dop20-v4/ows?service=WMS&version=1.3.0&request=GetCapabilities