Modify

Opened 4 years ago

Closed 4 years ago

Last modified 3 years ago

#2759 closed defect (fixed)

OsmApiException message is crippled by showMessageDialog

Reported by: robome Owned by: Gubaer
Priority: minor Component: Core
Version: Keywords:
Cc: karl.guggisberg@…

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 Changed 4 years ago by Gubaer

  • Cc karl.guggisberg@… added
  • Resolution set to fixed
  • Status changed from new to closed

fixed in r1698

comment:2 Changed 3 years ago by Agimerm

zenerx

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed .
as The resolution will be set. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.