Feature request #1499

improvement to WMS error handling

Added by Steven Mizuno almost 12 years ago. Updated over 11 years ago.

Status:Closed
Priority:Low
Assignee:nobody -
Category:Web Services clients/WMS
Pull Request or Patch supplied: Resolution:fixed
Easy fix?:No Copied to github as #:11559

Description

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.

patch_for_1499.txt Magnifier - wms error handling change (787 Bytes) Steven Mizuno, 2009-01-20 05:44 PM

History

#1 Updated by Marco Hugentobler almost 12 years ago

  • Resolution set to fixed
  • Status changed from Open to Closed

Applied with slight modifications in .
Thanks!

Marco

#2 Updated by Anonymous over 11 years ago

Milestone Version 1.0.1 deleted

Also available in: Atom PDF