Bug report #21843

Atlas coverage layer saved with absolute path when project is set to relative save paths

Added by Johannes Kroeger 7 months ago.

Status:Open
Priority:Normal
Assignee:-
Category:Map Composer/Printing
Affected QGIS version:3.7(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 #:29658

Description

The setup:

- A QGIS project with a Print Layout.
- "Save paths" in the project's settings is set to "relative"

The qgz file includes the following snippet with an absolute path to a layer:

<Atlas sortFeatures="0" enabled="1" hideCoverage="0" coverageLayer="1555062671232_cdc7c829_6e4d_4938_a006_b8882c376abf" coverageLayerSource="/tmp/some/path/1555062671232.geojson" coverageLayerProvider="ogr" filterFeatures="0" coverageLayerName="1555062671232" filenamePattern="'output_'||lpad(@atlas_featurenumber, 4, 0)" pageNameExpression=""/>

This is a privacy issue and should not be happening.

Atlas coverage layer paths should be save relative if the project is set up that way.

Also available in: Atom PDF