Bug report #7098

QGIS forms invalid WFS request when partially formed

Added by Jonathan Moules over 7 years ago. Updated over 1 year ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Web Services clients/WFS
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:end of life
Crashes QGIS or corrupts data:No Copied to github as #:16179

Description

When setting up a WFS request, and entering a URL, I entered this (for testing purposes):

http://wppgeog3:8082/geoserver/wfs?version=1.1.0

It turns out the request QGIS is sending to the server is:

http://wppgeog3:8082/geoserver/wfs?version=1.1.0&SERVICE=WFS&REQUEST=GetCapabilities&VERSION=1.0.0

Note that "version" is in there twice.

If I manually set service:
http://wppgeog3:8082/geoserver/wfs?SERVICE=WFS&version=1.3.0

I get a Java error (attached).

I realise I'm not doing it "right", but QGIS should still be able to handle these cases properly, as there's no reason the user can't specify those two parameters (they're always going to be the same after all).

Using NextGIS built from master.

Clipboard04.jpg (17.9 KB) Jonathan Moules, 2013-02-04 09:04 AM

History

#1 Updated by Jürgen Fischer over 7 years ago

  • Category set to Web Services clients/WFS

#2 Updated by Marco Hugentobler over 7 years ago

Hm, that would probably mean testing the base urls against a parameter list (also in WMS, WCS). Imagine a user that enters a BBOX parameter in a WMS base url...

#3 Updated by Jonathan Moules over 7 years ago

The options are probably:

1 Cut the URL back to the bit before the ? and accept none of the parameters.
2 Keep some parameters
3 Keep all parameters

I'd be inclined to suggest (2) - keep "version" if specified but not the rest. This way the user can specify which version of WMS/WFS/WCS to use if they want.

#4 Updated by Giovanni Manghi over 3 years ago

  • Regression? set to No
  • Easy fix? set to No

#5 Updated by Giovanni Manghi over 1 year ago

  • Resolution set to end of life
  • Status changed from Open to Closed

Also available in: Atom PDF