Bug report #13291
default project in qgis_mapserv.fcgi's directory is no longer read
Status: | Closed | ||
---|---|---|---|
Priority: | Severe/Regression | ||
Assignee: | Alessandro Pasotti | ||
Category: | QGIS Server | ||
Affected QGIS version: | master | Regression?: | No |
Operating System: | Easy fix?: | No | |
Pull Request or Patch supplied: | No | Resolution: | |
Crashes QGIS or corrupts data: | No | Copied to github as #: | 21349 |
Description
QGIS Server used to read by default (without specifying the "map" parameter) the project where qgis_mapserv.fcgi (or copies of) is.
This is not the case anymore on QGIS master.
Associated revisions
[server] Fix #13291; reinstate default project read in fcgi directory
- Ensure no reassignment of mConfigFilePath by MAP parameter or from
QGIS_PROJECT_FILE env var
[bugfix][server] Fixes #13291
History
#1 Updated by Jürgen Fischer about 9 years ago
- Subject changed from QGIS Server maser do not read anymore by default the project where qgis_mapserv.fcgi is to default project in qgis_mapserv.fcgi's directory is no longer read
#2 Updated by Larry Shaffer about 9 years ago
- Assignee set to Larry Shaffer
- Target version changed from Future Release - High Priority to Version 2.12
#3 Updated by Larry Shaffer about 9 years ago
- Status changed from Open to Closed
Fixed in changeset d19165b7c94734d344c6b9c4510910cfd8bbba7e.
#4 Updated by Henrik Uggla about 9 years ago
- Status changed from Closed to Reopened
- Target version changed from Version 2.12 to Future Release - High Priority
I create new project with one postgis layer and save it as /usr/lib/cgi-bin/test.qgs. Same directory as qgis_mapserv.fcgi and no other .qgs-files present. I restart apache and clear browser cache before I request http://localhost/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS&REQUEST=GetCapabilities, which gives me:
<ServiceExceptionReport version="1.3.0" xmlns="http://www.opengis.net/ogc"> <ServiceException code="WMS configuration error">There was an error reading the project file or the SLD configuration</ServiceException> </ServiceExceptionReport>
Requesting http://localhost/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS&REQUEST=GetCapabilities&map=test.qgs works.
I'm using Qgis Server 2.12, with Ubuntugis dependencies, on Ubuntu 12.04.
#5 Updated by Larry Shaffer about 9 years ago
Giovanni, can you verify this still occurs, using v2.12, with your setup?
Henrik, I can not replicate this on my Mac setup that uses lighttpd
. Will try and set up a standard Qgis Server 2.12, with UbuntuGIS dependencies, on Ubuntu 12.04 under apache2
. Thank you for submitting a followup report to the mailing list conversation.
#6 Updated by Larry Shaffer about 9 years ago
- Status changed from Reopened to Feedback
#7 Updated by Giovanni Manghi about 9 years ago
- Status changed from Feedback to Open
Hi Larry,
thanks for looking into this.
Is still broken for me under the latest master on Ubuntu 14.04.
I would really appreciate if you could have a look also into #13293
Not that I suggest users to use Windows servers, but many of them that need to give QGIS server an evaluation are Windows users, at least on their desktops.
Thanks in advance.
#8 Updated by Giovanni Manghi almost 9 years ago
- Assignee deleted (
Larry Shaffer) - Target version changed from Future Release - High Priority to Version 2.14
Still true on latest master.
#9 Updated by Etienne Trimaille over 8 years ago
I can confirm too on the latest master. I need to put ?MAP=*.qgs in my request.
#10 Updated by clifford snow over 8 years ago
I am running Ubuntu 15.10 with the same issue. This is a new installation of qgis server and apache.
#11 Updated by Alessandro Pasotti over 8 years ago
- Assignee set to Alessandro Pasotti
#12 Updated by Anonymous over 8 years ago
- Status changed from Open to Closed
Fixed in changeset b0269beac489f9339064d6b42734abc272fc0db6.