Modify

Ticket #2759 (closed defect: fixed)

Opened 3 years ago

Last modified 18 months ago

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

Change History

comment:1 Changed 3 years ago by Gubaer

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

fixed in r1698

comment:2 Changed 18 months ago by Agimerm

zenerx

View

Add a 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.