Opened 12 years ago

Closed 12 years ago

Last modified 11 years ago

#1499 closed patch (fixed)

improvement to WMS error handling

Reported by: smizuno Owned by: nobody
Priority: minor: annoyance Milestone:
Component: WMS Version: Trunk
Keywords: Cc:
Must Fix for Release: No Platform: All
Platform Version: Awaiting user input: no


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.

Attachments (1)

patch_for_1499.txt (787 bytes) - added by smizuno 12 years ago.
wms error handling change

Download all attachments as: .zip

Change History (3)

Changed 12 years ago by smizuno

Attachment: patch_for_1499.txt added

wms error handling change

comment:1 Changed 12 years ago by mhugent

Resolution: fixed
Status: newclosed

Applied with slight modifications in r9996. Thanks!


comment:2 Changed 11 years ago by (none)

Milestone: Version 1.0.1

Milestone Version 1.0.1 deleted

Note: See TracTickets for help on using tickets.