Bug report #19567

qgz files not load

Added by Evgeniy Z over 5 years ago. Updated over 5 years ago.

Status:Closed
Priority:High
Assignee:Nyall Dawson
Category:Project Loading/Saving
Affected QGIS version:3.2.1 Regression?:No
Operating System:Windows 10 x64, Windows 7 x64 Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:27394

Description

I try to open *.qgz files from explorer or from qgis-bin but QGIS load empty project. After unzip qgz I try to open *.qgs - works fine.


Related issues

Related to QGIS Application - Bug report #20562: all layers gone when reopen *.qgZ as User „Jörn“ Closed 2018-11-20

Associated revisions

Revision d3924adf
Added by Nyall Dawson over 5 years ago

Use QFile to write zip contents, instead of std::ofstream

Because std::ostream doesn't handle non-ascii paths

Refs #19567

Revision 7d7462c3
Added by Nyall Dawson over 5 years ago

Fix loss of project when saving to QGZ format and path contains non-ascii chars

Fixes #19567

Revision bfef851b
Added by Nyall Dawson over 5 years ago

Fix loss of project when saving to QGZ format and path contains non-ascii chars

Fixes #19567

(cherry picked from commit 7d7462c33334a501167813d720fb2589d3c579ec)

History

#1 Updated by Giovanni Manghi over 5 years ago

  • Category changed from Unknown to Project Loading/Saving

#2 Updated by Regis Haubourg over 5 years ago

  • Priority changed from Normal to High

#3 Updated by Regis Haubourg over 5 years ago

  • Assignee set to Paul Blottiere

I think this deserves to be fixed in the bugfix run. I affect this to Paul. Please notify here if someone objects or takes lead here

#4 Updated by Evgeniy Z over 5 years ago

My current version 3.2.3
If I save qgZ-project with Cyrillic symbols in filename, this project will not open.
It seems qgZ-project without Cyrillic symbols in filename opens normal.

#5 Updated by Jörn Gutzeit over 5 years ago

I can not open *.qgZ files as user "Jörn" > see #20562 > maybe any relations?

#6 Updated by Jürgen Fischer over 5 years ago

  • Related to Bug report #20562: all layers gone when reopen *.qgZ as User „Jörn“ added

#7 Updated by Jérôme Guélat over 5 years ago

This is still happening with QGIS 3.4.1 when you use letters with accents like é, è, ä, ö, etc. in the filename.

This gives the impression that the QGIS project is corrupted if people don't know that they can unzip it.

#8 Updated by Nyall Dawson over 5 years ago

  • Status changed from Open to In Progress
  • Assignee changed from Paul Blottiere to Nyall Dawson

#9 Updated by Nyall Dawson over 5 years ago

  • % Done changed from 0 to 100
  • Status changed from In Progress to Closed

Also available in: Atom PDF