Modify

Opened 9 years ago

Closed 9 years ago

Last modified 9 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 9 years ago.

Download all attachments as: .zip

Change History (4)

by kolesar, 9 years ago

comment:1 by Don-vip, 9 years ago

Milestone: 16.02

comment:2 by Don-vip, 9 years ago

Resolution: fixed
Status: newclosed

In 9646/josm:

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

comment:3 by Don-vip, 9 years ago

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. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.