Modify ↓
#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
comment:2 Changed 3 years ago by Agimerm
zenerx
Note: See
TracTickets for help on using
tickets.



fixed in r1698