Modify

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#12448 closed defect (fixed)

[patch] session reader failed when linked local file was compressed

Reported by: kolesar Owned by: team
Priority: normal Milestone: 16.02
Component: Core Version: tested
Keywords: Cc:

Description

What steps will reproduce the problem?

  1. Save a data layer in a compressed format, for example test.osm.gz
  2. Save session, leave setting as a "local file".
  3. Close layer.
  4. Open recently created session file.

What is the expected result?

Opens the layer just created.

What happens instead?

Error message:

    Could not load layer 1 'test.osm.gz'.
    Error is:
    Line 1 column 1: Content is not allowed in prolog.

Similar error message for compressed GPX layer:

    Could not load layer 2 'test.gpx.gz'.
    Error is:
    Parsing data for layer 'test.gpx.gz' failed

Please provide any additional information below. Attach a screenshot if possible.

Attached patch that fixes opening compressed files from saved session.

Attachments (1)

SessionReadCompressedFile.patch (1.2 KB) - added by kolesar 8 years ago.

Download all attachments as: .zip

Change History (4)

Changed 8 years ago by kolesar

comment:1 Changed 8 years ago by Don-vip

Milestone: 16.02

comment:2 Changed 8 years ago by Don-vip

Resolution: fixed
Status: newclosed

In 9646/josm:

fix #12448 - session reader failed when linked local file was compressed (patch by kolesar)

comment:3 Changed 8 years ago by Don-vip

thanks for the patch! :)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.