Bug report #11509

.qgs contains relative path for datasource, GetCapabilities doesn't returns layers

Added by Steve Toutant over 4 years ago. Updated over 4 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Project Loading/Saving
Affected QGIS version:2.4.0 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:worksforme
Crashes QGIS or corrupts data:No Copied to github as #:19779

Description

Using qgis desktop, qgis server 2.4 on fedora, I can launch GetCapabilities request but it contains no layers.

.qgs contains relative path for data source (<datasource>./echantillonage.shp</datasource>)
I manually edit .qgs so I can set an absolute path instead a relative path for datasource (<datasource>/opt/geodata/echantillonage.shp</datasource>)and GetCapabilities returns the layers.

But as soon I edit my project in qgis desktop and save it, It overwrites my modification and re-create relative paths and the WMS still contains no layers

History

#1 Updated by Jürgen Fischer over 4 years ago

  • Resolution set to worksforme
  • Status changed from Open to Closed
  • Category changed from Browser to Project Loading/Saving

You can configure in the project properties whether you want to use absolute or relative (to the location of the project file) path.

Also available in: Atom PDF