Modify

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#18853 closed defect (fixed)

[PATCH] Close OsmWriter after writing XML output streams (Sonar)

Reported by: hiddewie Owned by: team
Priority: minor Milestone: 20.03
Component: Core Version:
Keywords: Cc:

Description

Attachments (1)

osm-writer.patch (10.0 KB ) - added by hiddewie 5 years ago.

Download all attachments as: .zip

Change History (8)

by hiddewie, 5 years ago

Attachment: osm-writer.patch added

comment:1 by hiddewie, 5 years ago

Summary: [PATCH] Close OsmWriter after writing XML output streams[PATCH] Close OsmWriter after writing XML output streams (Sonar)

comment:2 by Don-vip, 5 years ago

Milestone: 20.03
Priority: trivialminor

comment:3 by Don-vip, 5 years ago

Type: enhancementdefect

comment:4 by Don-vip, 5 years ago

Resolution: fixed
Status: newclosed

In 16088/josm:

fix #18853 - Close OsmWriter after writing XML output streams (patch by hiddewie, modified)

comment:5 by Don-vip, 5 years ago

Thanks for the patch! I only applied ValidatorErrorWriter, because stream is not meant to be closed in OsmDataSessionExporter.

comment:6 by hiddewie, 5 years ago

OK, good to know. In OsmDataSessionExporter: the stream should maybe not be closed, but the it would be logical to close the associated writers (without closing the stream) in the scope where they are created.

comment:7 by Don-vip, 5 years ago

I did not check, but I think the stream is closed if you close the writer.

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.