Feature request #1499
improvement to WMS error handling
|Web Services clients/WMS
|Pull Request or Patch supplied:
|Copied to github as #:
I recently encountered an error return from a WMS service that essentially reported "file not found". This is not represented by one of the standard error codes in the WMS specs., therefore no error code was returned, so QGIS displayed "(Unknown error code from a post-1.3 WMS server)" in the error dialog. This was confusing as the server is version 1.1.
I looked at the WMS specs and found that it is valid to return an error response without a code. The codes are meant only for specific situations.
So I have changed the error code handling in the WMS provider to display an error that doesn't have a code with this text: "(No error code was reported)" and the text of the error return as is currently done. Then, in the case where there is an error code that is not in the WMS 1.3 or earlier spec. the message about the post-1.3 error code is displayed along with the error code.
This adds a string that will need to be translated to other languages, but should be less confusing to users.