Modify ↓
#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)
Note:
See TracTickets
for help on using tickets.
fixed in r1698