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 5 years ago. Updated almost 5 years 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 5 years ago

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

#2 Updated by Paolo Cavallini over 5 years ago

Could you please check with current release?
Thanks.

#3 Updated by Giovanni Manghi over 5 years 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 over 5 years ago

Tested on 3.4.1: problem stil exists..

#5 Updated by Giovanni Manghi over 5 years ago

Filip Mahieu wrote:

Tested on 3.4.1: problem stil exists..

current release is 3.4.3

#6 Updated by Mie Winstrup over 5 years ago

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

#7 Updated by Giovanni Manghi over 5 years ago

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

#8 Updated by Giovanni Manghi about 5 years 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 about 5 years 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 about 5 years ago

Yes, the problem still exists in QGIS 3.6.2.

#11 Updated by Giovanni Manghi almost 5 years ago

  • Affected QGIS version changed from 3.2.2 to 3.6.2

Also available in: Atom PDF