Bug report #19672

QLR files are not stored with absolute paths even though the project setting is changed to absolute paths

Added by Mie Winstrup over 1 year ago. Updated 8 months ago.

Status:Open
Priority:High
Assignee:-
Category:Unknown
Affected QGIS version:3.6.2 Regression?:Yes
Operating System:Windows Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:27497

Description

Qlrfiles are not stored with absolute paths even though the project setting is changed to absolute paths.

I do the following in QGIS 3.2 (Windows):
- In project settings change the setting to store absolute paths and not relative.
- Save the QGIS-project
- Add a shapefile
- Right click on the shapefile in the layer panel and select Export --> Save as Layer Definition File

When I open the qlrfile in a text editor, I can see that the qlr-file is stored with relative paths not absolute paths (see picture attached)

(I have checked that the absolute paths are used in the QGIS-projectfile)

When I save a qlrfile in QGIS 2.18.23, where the paths are changed to absolute in the project settings, the paths in the qlr-file is saved as absolute paths (see picture attached).

Tested with QGIS 3.2 and QGIS 3.3.0-48

qlrfiles_QGIS3.2.png - The paths in a qlrfile in QGIS 3.2 (when settings is changed to absolute) (75 KB) Mie Winstrup, 2018-08-23 09:54 AM

qlrfiles_QGIS2.18.png - The paths in a qlrfile in QGIS 2.18 (when settings is changed to absolute) (80.3 KB) Mie Winstrup, 2018-08-23 09:59 AM


Related issues

Duplicated by QGIS Application - Bug report #21515: Qlrfiles are not stored with absolute paths even though t... Closed 2019-03-07

History

#1 Updated by Giovanni Manghi over 1 year ago

  • Regression? changed from No to Yes
  • Category changed from Data Provider to Unknown

#2 Updated by Paolo Cavallini 12 months ago

Could you please check with current release?
Thanks.

#3 Updated by Giovanni Manghi 12 months ago

  • Status changed from Open to Feedback

Paolo Cavallini wrote:

Could you please check with current release?
Thanks.

Please change status to "feedback" when needed.

#4 Updated by Filip Mahieu 12 months ago

Tested on 3.4.1: problem stil exists..

#5 Updated by Giovanni Manghi 12 months ago

Filip Mahieu wrote:

Tested on 3.4.1: problem stil exists..

current release is 3.4.3

#6 Updated by Mie Winstrup 11 months ago

Tested with QGIS 3.4.3 - and now it works.
Thanks alot for fixing this.

#7 Updated by Giovanni Manghi 11 months ago

  • Status changed from Feedback to Closed
  • Resolution set to fixed/implemented

#8 Updated by Giovanni Manghi 9 months ago

  • Priority changed from Normal to High
  • Subject changed from QGIS 3.2: Qlrfiles are not stored with absolute paths even though the project setting is changed to absolute paths. to QLR files are not stored with absolute paths even though the project setting is changed to absolute paths
  • Status changed from Closed to Open
  • Resolution deleted (fixed/implemented)

not fixed in both 3.4.5 and 3.6.

#9 Updated by Giovanni Manghi 9 months ago

  • Duplicated by Bug report #21515: Qlrfiles are not stored with absolute paths even though the project setting is changed to absolute paths. added

#10 Updated by Mie Winstrup 8 months ago

Yes, the problem still exists in QGIS 3.6.2.

#11 Updated by Giovanni Manghi 8 months ago

  • Affected QGIS version changed from 3.2.2 to 3.6.2

Also available in: Atom PDF