Bug report #2891
WFS exceptions not handled by plugin
|Affected QGIS version:||Regression?:||No|
|Operating System:||All||Easy fix?:||No|
|Pull Request or Patch supplied:||Resolution:||fixed|
|Crashes QGIS or corrupts data:||Copied to github as #:||12951|
The WFS plugin doesn't seem to handle WFS exceptions thrown by ows server on getCapabilities request
#1 Updated by Sandro Santilli over 10 years ago
The patch (apply from within src/plugins/wfs) handles presence of an ExceptionText tag as a sign of an exception. It is probably too wide and fails when server doesn't send that.
Didn't check standard document either. All I can tell is that this patch helps when trying
to connect to the WFS server exposed by Drupal WFS server... (ie: handle with care)
#3 Updated by Sandro Santilli over 10 years ago
- Status changed from Closed to Feedback
- Resolution deleted (
Wanted to make the check a bit smarter by only looking at the first tag rather than
searching in the whole document. It should be faster when no exception is returned.
Anyway, can send a new patch against trunk.
#4 Updated by Sandro Santilli over 10 years ago
The new patch (exception2.patch) only inspects the first node in the returned XML to tell if it's an exception or not. This makes it faster in successful cases.
Also the patch gives more information (exceptionCode) and keeps the error window title to "Error" to give better visibility to other error messages (parsing error and connection error)