Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WFS2 GetFeature over python interface fails with QGIS versions 2.18.21< #28627

Closed
qgib opened this issue Dec 14, 2018 · 5 comments
Closed

WFS2 GetFeature over python interface fails with QGIS versions 2.18.21< #28627

qgib opened this issue Dec 14, 2018 · 5 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Crash/Data Corruption Data Provider Related to specific vector, raster or mesh data providers Regression Something which used to work, but doesn't anymore

Comments

@qgib
Copy link
Contributor

qgib commented Dec 14, 2018

Author Name: Simon Planzer (Simon Planzer)
Original Redmine Issue: 20808
Affected QGIS version: 2.18.21
Redmine category:web_services_clients/wfs


Issue originally summarized against my own product as below (Apologies, the example requires an API for data.linz.govt.nz):

*QGIS 2.18.17
*

uri = 'https://data.linz.govt.nz/services;key=<API_KEY>/wfs?SERVICE=wfs&VERSION=2.0.0&REQUEST=GetFeature&TYPENAME=data.linz.govt.nz:layer-50221'

layer=QgsVectorLayer(uri, 'test', 'WFS')
layer.isValid()
True

*QGIS 2.18.26
*

uri = 'https://data.linz.govt.nz/services;key=<API_KEY>/wfs?SERVICE=wfs&VERSION=2.0.0&REQUEST=GetFeature&TYPENAME=data.linz.govt.nz:layer-50221'

layer=QgsVectorLayer(uri, 'test', 'WFS')
1. QGIS HANGS AND NEVER RECOVERS!!!

I do note a WFS2 source code change (https://github.com/qgis/QGIS/compare/final-2_18_20..final-2_18_21#diff-7f83d21b1d3b1afc39d33a7c9560cb59R439) between 2.18.20 an 2.18.21 monitoruf WFS2 responses. Perhaps related???

Anyone info you require please ask

@qgib
Copy link
Contributor Author

qgib commented Dec 17, 2018

Author Name: Simon Planzer (Simon Planzer)


Issue originally summarized against my own product as below:

*QGIS 2.18.17
*

uri = 'https://data.linz.govt.nz/services;key=9f6f324fd21941d08fc821ba7718958c/wfs?SERVICE=wfs&VERSION=2.0.0&REQUEST=GetFeature&TYPENAME=data.linz.govt.nz:layer-50221'

layer=QgsVectorLayer(uri, 'test', 'WFS')
layer.isValid()
True

*QGIS 2.18.26
*

uri = 'https://data.linz.govt.nz/services;key=9f6f324fd21941d08fc821ba7718958c/wfs?SERVICE=wfs&VERSION=2.0.0&REQUEST=GetFeature&TYPENAME=data.linz.govt.nz:layer-50221'

layer=QgsVectorLayer(uri, 'test', 'WFS')
1. QGIS HANGS AND NEVER RECOVERS!!!

I do note a WFS2 source code change (https://github.com/qgis/QGIS/compare/final-2_18_20..final-2_18_21#diff-7f83d21b1d3b1afc39d33a7c9560cb59R439) between 2.18.20 an 2.18.21 monitoruf WFS2 responses. Perhaps related???

Anyone info you require please ask

** Note I have edited this to include a temporary API key (in above wfs url) for this service to support debugging

@qgib
Copy link
Contributor Author

qgib commented Jan 20, 2019

Author Name: Nyall Dawson (@nyalldawson)


Please test with 3.4 - 2.18 is no longer supported


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Jan 20, 2019

Author Name: Jürgen Fischer (@jef-n)


Please test with QGIS 3.4 - QGIS 2.18 reached it's end of life.

@qgib
Copy link
Contributor Author

qgib commented Jan 21, 2019

Author Name: Simon Planzer (Simon Planzer)


I can confirm this is not an issue with 3.4

@qgib
Copy link
Contributor Author

qgib commented Jan 21, 2019

Author Name: Nyall Dawson (@nyalldawson)


  • resolution was changed from to fixed/implemented
  • status_id was changed from Feedback to Closed

@qgib qgib closed this as completed Jan 21, 2019
@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Data Provider Related to specific vector, raster or mesh data providers Crash/Data Corruption Regression Something which used to work, but doesn't anymore labels May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Crash/Data Corruption Data Provider Related to specific vector, raster or mesh data providers Regression Something which used to work, but doesn't anymore
Projects
None yet
Development

No branches or pull requests

1 participant