Modify

Opened 15 years ago

Closed 15 years ago

Last modified 14 years ago

#2759 closed defect (fixed)

OsmApiException message is crippled by showMessageDialog

Reported by: robome Owned by: Gubaer
Priority: minor Milestone:
Component: Core Version:
Keywords: Cc: Gubaer

Description

The server just gave a 412 error on a upload.
While the exception on the console was ok:

org.openstreetmap.josm.io.OsmApiException: ResponseCode=412, Error Header=<Precondition failed: Node xxx is still used by way yyy.>,Error Body=<Precondition failed: Node xxx is still used by way yyy.
>

(besides the superfluous newline before the >), the dialogue lacked the message.
It was:

Uploading to the server '''failed''' because your current
dataset violates a precondition.
The error message is:
ResponseCode=412, Error Header=,Error Body=
></html>

I guess that's because showMessageDialog tries to interpret the actual message in <> as html tag and fails.

Attachments (0)

Change History (2)

comment:1 by Gubaer, 15 years ago

Cc: Gubaer added
Resolution: fixed
Status: newclosed

fixed in r1698

comment:2 by Agimerm, 14 years ago

zenerx

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Gubaer.
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.