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

Qgis Desktop cannot open layers from Qgis Server if the short_name option has been setup #23406

Closed
qgib opened this issue Aug 23, 2016 · 6 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Server Related to QGIS server

Comments

@qgib
Copy link
Contributor

qgib commented Aug 23, 2016

Author Name: Tudor Bărăscu (@tudorbarascu)
Original Redmine Issue: 15482
Affected QGIS version: 2.14.5
Redmine category:qgis_server
Assignee: René-Luc ReLuc


How to replicate:

  • use the short_name option for a layer
  • serve that layer trough QGIS Server
  • when trying to add it with Qgis Desktop it throws an error:
Invalid Layer: WMS provider Cannot calculate extent (file: src/providers/wms/qgswmsprovider.cpp row: 137function QgsWmsProvider:) Raster layer Provider is not valid (provider: wms, URI: contextualWMSLegend=0&crs=EPSG:3844&dpiMode=7&featureCount=10&format=image/jpeg&layers=adr&styles=&url=http://qgisplatform.demo/cgi-bin/qgis_mapserv.fcgi?map%3D/home/web/Downloads/proiect_qgis/harta.qgs%26VERSION%3D1.3.0%26 (file: src/core/raster/qgsrasterlayer.cpp row: 668function setDataProvider:)

If I do a getmap request in a browser it works well.

Tested under 2.16 and 2.14

@qgib
Copy link
Contributor Author

qgib commented Sep 2, 2016

Author Name: Tudor Bărăscu (@tudorbarascu)


It seems that even if I rename to whatever any layer in any qgs project I cannot add that layer in QGIS Desktop (same error message).

I just found a workaround: delete the .qgis2/cache directory.
However, we shouldn't be in this case.

@qgib
Copy link
Contributor Author

qgib commented Jan 5, 2017

Author Name: Giovanni Manghi (@gioman)


Tudor Bărăscu wrote:

It seems that even if I rename to whatever any layer in any qgs project I cannot add that layer in QGIS Desktop (same error message).

I just found a workaround: delete the .qgis2/cache directory.
However, we shouldn't be in this case.

this has been reported several times lately (we should try merge all these reports): even with the cache set to 0 in general options the wms client fails to load layers from qgis server services that have been changed. Forcing to clean cache (from GUI or manually as you did) solves the issue, but as you said this should not happen and was not a issue in the past.

Seen also on other platforms.


  • operating_system was changed from Debian to
  • os_version was changed from Stretch to
  • priority_id was changed from High to Severe/Regression
  • status_id was changed from Open to Feedback
  • category_id was configured as QGIS Server

@qgib
Copy link
Contributor Author

qgib commented Jan 26, 2017

Author Name: Giovanni Manghi (@gioman)


  • status_id was changed from Feedback to Open

@qgib
Copy link
Contributor Author

qgib commented Feb 28, 2017

Author Name: Giovanni Manghi (@gioman)


I just found a workaround: delete the .qgis2/cache directory.
However, we shouldn't be in this case.

Hi Tudor and René-Luc, what is the status of this issue in the latest point releases of qgis server 2.14 and 2.18?


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Mar 8, 2017

Author Name: Tudor Bărăscu (@tudorbarascu)


@giovanni The issue is not reproducible anymore. I tested under 2.14 and 2.18 and everything is working as it should.


  • status_id was changed from Feedback to Closed

@qgib
Copy link
Contributor Author

qgib commented Mar 8, 2017

Author Name: Giovanni Manghi (@gioman)


Tudor Bărăscu wrote:

@giovanni The issue is not reproducible anymore. I tested under 2.14 and 2.18 and everything is working as it should.

nice!


  • resolution was changed from to fixed/implemented

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Server Related to QGIS server labels May 25, 2019
@qgib qgib added this to the Future Release - High Priority 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! Server Related to QGIS server
Projects
None yet
Development

No branches or pull requests

1 participant