Bug report #13291
default project in qgis_mapserv.fcgi's directory is no longer read
|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|
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.
[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
#4 Updated by Henrik Uggla over 5 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>
I'm using Qgis Server 2.12, with Ubuntugis dependencies, on Ubuntu 12.04.
#5 Updated by Larry Shaffer over 5 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.
#7 Updated by Giovanni Manghi over 5 years ago
- Status changed from Feedback to Open
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.