[QGIS-trac] [Quantum GIS] #1499: improvement to WMS error handling

Quantum GIS qgis at qgis.org
Tue Jan 20 20:41:01 EST 2009


#1499: improvement to WMS error handling
-----------------------------------------------+----------------------------
   Reporter:  smizuno                          |              Owner:  nobody       
       Type:  patch                            |             Status:  new          
   Priority:  minor: annoyance or enhancement  |          Milestone:  Version 1.0.1
  Component:  WMS                              |            Version:  HEAD         
   Keywords:                                   |   Platform_version:               
   Platform:  All                              |           Must_fix:  No           
Status_info:  0                                |  
-----------------------------------------------+----------------------------
 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.

-- 
Ticket URL: <https://trac.osgeo.org/qgis/ticket/1499>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats


More information about the QGIS-trac mailing list