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

In QGIS > =2.16.* loading of WFS layers with (Geoserver) authentication fails #23520

Closed
qgib opened this issue Sep 21, 2016 · 14 comments
Closed
Labels
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
Milestone

Comments

@qgib
Copy link
Contributor

qgib commented Sep 21, 2016

Author Name: Giovanni Manghi (@gioman)
Original Redmine Issue: 15597
Affected QGIS version: master
Redmine category:web_services_clients/wfs
Assignee: Alessandro Pasotti


New description:

Start a Geoserver endpoint (tested with 2.7.4 and 2.9), load a couple of layers, one behind authentication and the other not.

Enable WFS.

Create the connection in QGIS >= 2.16 and enter the credentials.

Connect to the endpoint, as expected both layers are listed.

Try load the layer not protected > ok
Try load the layer protected > "
Layer geonode:XXX: Download of features for layer geonode:XXX failed or partially failed: Server generated an exception in GetFeature response: Feature type geonode:XXX unknown. You may attempt reloading the layer with F5"

This does not happen on LTR.

Old description:

Scenario: a Geonode/Geoserver instance with a few vector layers behind authentication via Geonode (I guess that could be basic http authentication).

In QGIS 2.16.* loading such layers results in:

Layer geonode:XXX: Download of features for layer geonode:XXX failed or partially failed: Server generated an exception in GetFeature response: Feature type geonode:XXX unknown. You may attempt reloading the layer with F5

on QGIS 2.14 and previous no issues.

@qgib
Copy link
Contributor Author

qgib commented Oct 6, 2016

Author Name: Even Rouault (@rouault)


Isn't that a duplicate of #23292, now fixed ?


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Oct 7, 2016

Author Name: Giovanni Manghi (@gioman)


Even Rouault wrote:

Isn't that a duplicate of #23292, now fixed ?

In what revision was this fixed? I just updated qgis master on osgeo4w (ee87dc3) and still the issue.

@qgib
Copy link
Contributor Author

qgib commented Oct 7, 2016

Author Name: Larry Shaffer (Larry Shaffer)


Hi,

I have a PR for (maybe) fixing this:
#3576

More specifically:
cd23455

It is also ready for @master@ and @release-2_16@, which both required carefully addressing merge conflicts.
#3577
https://github.com/dakcarto/QGIS/tree/release-2_16-ows-fixes

This is a follow up to Alessandro's work.

@qgib
Copy link
Contributor Author

qgib commented Oct 7, 2016

Author Name: Larry Shaffer (Larry Shaffer)


Giovanni, do you mind compiling the fix and testing for your scenario (either @master_2@ or @release-2_16-ows-fixes@ branches)?

@qgib
Copy link
Contributor Author

qgib commented Oct 11, 2016

Author Name: Giovanni Manghi (@gioman)


Larry Shaffer wrote:

Giovanni, do you mind compiling the fix and testing for your scenario (either @master_2@ or @release-2_16-ows-fixes@ branches)?

Hi Larry, I compiled your branch QGIS-release-2_16-ows-fixes.

It seems that the issue where the WFS client "forgets" the username is fixed.

I still see the problem in loading layers behind authentication, the use case is Geonode/Geoserver. On the same endpoint wfs layers that are not protected load fine.

@qgib
Copy link
Contributor Author

qgib commented Oct 11, 2016

Author Name: Larry Shaffer (Larry Shaffer)


  • subject was changed from In QGIS > =2.16.* lading of WFS layers with authentication fails to In QGIS > =2.16.* loading of WFS layers with authentication fails

@qgib
Copy link
Contributor Author

qgib commented Jan 2, 2017

Author Name: Giovanni Manghi (@gioman)


  • crashes_corrupts_data was changed from 1 to 0
  • version was changed from master_2 to 2.16.3
  • status_id was changed from Feedback to Open

@qgib
Copy link
Contributor Author

qgib commented Jan 12, 2017

Author Name: Alessandro Pasotti (@elpaso)


OP reported that credentials has been entered directly and not using password manager


  • assigned_to_id was configured as Alessandro Pasotti

@qgib
Copy link
Contributor Author

qgib commented Jan 13, 2017

Author Name: Alessandro Pasotti (@elpaso)


Cannot reproduce with QGIS Desktop current master <-> QGIS Server current master + HTTP Basic auth plugin
Cannot reproduce with QGIS Desktop current master <-> GeoServer in suite 4.9 configured with HTTP Basic authentication


  • status_id was changed from Open to In Progress

@qgib
Copy link
Contributor Author

qgib commented Jan 13, 2017

Author Name: Giovanni Manghi (@gioman)


Alessandro Pasotti wrote:

Cannot reproduce with QGIS Desktop current master <-> QGIS Server current master + HTTP Basic auth plugin
Cannot reproduce with QGIS Desktop current master <-> GeoServer in suite 4.9 configured with HTTP Basic authentication

it seems to be a Geonode thing only.


  • subject was changed from In QGIS > =2.16.* loading of WFS layers with authentication fails to In QGIS > =2.16.* loading of WFS layers with (Geonode) authentication fails

@qgib
Copy link
Contributor Author

qgib commented Jan 14, 2017

Author Name: Anónimo (Anónimo)


Fixed in changeset "93770b1c307fe42c910eb993c7d813931512ba75".


  • status_id was changed from In Progress to Closed

@qgib
Copy link
Contributor Author

qgib commented Jan 16, 2017

Author Name: Giovanni Manghi (@gioman)


  • status_id was changed from Closed to Reopened

@qgib
Copy link
Contributor Author

qgib commented Jan 17, 2017

Author Name: Giovanni Manghi (@gioman)


Sorry for the confusion, it a problem that is visible using Geoserver authentication (that is used also by Geonode). Tested with Geoserver 2.7.4 and 2.9.


  • subject was changed from In QGIS > =2.16.* loading of WFS layers with (Geonode) authentication fails to In QGIS > =2.16.* loading of WFS layers with (Geoserver) authentication fails
  • version was changed from 2.16.3 to master

@qgib
Copy link
Contributor Author

qgib commented Jan 17, 2017

Author Name: Giovanni Manghi (@gioman)


fixed by #c80e5d131d676f7ee73b3a943d30c034aa33db5e


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

@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 labels May 25, 2019
@qgib qgib added this to the Version 2.18 milestone May 25, 2019
@qgib qgib closed this as completed 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! Data Provider Related to specific vector, raster or mesh data providers
Projects
None yet
Development

No branches or pull requests

1 participant