Modify

Opened 12 years ago

Closed 12 years ago

#7641 closed defect (fixed)

JOSM does not close file handle when parsing fails

Reported by: AM909 Owned by: team
Priority: normal Milestone:
Component: Core Version: tested
Keywords: file handle close open Cc: AM909

Description

In r5181:

If you drag and drop a malformed OSM XML file onto JOSM, after it issues the error, it fails to close the file handle on that file, so you can't delete the file without closing JOSM. It should close the file handle if it can't keep the file open for editing.

Example malformed file:

<?xml version="1.0" encoding="UTF-8"?>
<osm version="0.6" generator="Overpass API">
  <node id="91287560" lat="35.0746370" lon="-120.0014730"/>
</osm>

results in error:
Could not read file 'temp.osm'. Error is: Missing attribute 'version' on OSM primitive with ID 91287560. (at line 3, column 60)

Attachments (0)

Change History (1)

comment:1 by Don-vip, 12 years ago

Resolution: fixed
Status: newclosed

In 5205/josm:

fix #7641 - JOSM does not close file handle when parsing fails

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.