Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#15690 closed enhancement (fixed)

Extract error message when fetching a tile from a Tomcat server

Reported by: Don-vip Owned by: team
Priority: normal Milestone: 17.12
Component: Core imagery Version:
Keywords: wms tomcat Cc:


When a WMS tile requests fails with an HTTP error, you can get this kind of error message if the server runs Tomcat:

<html><head><title>Apache Tomcat/DGFiP - Rapport d''erreur</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;} {color : black;}HR {color : #525D76;}--></style> </head><body><h1>Etat HTTP 400 - La commune demandée n'existe pas ou n'est pas accessible.</h1><HR size="1" noshade="noshade"><p><b>type</b> Rapport d''état</p><p><b>message</b> <u>La commune demandée n'existe pas ou n'est pas accessible.</u></p><p><b>description</b> <u>La requête envoyée par le client était syntaxiquement incorrecte.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/DGFiP</h3></body></html>

There is valuable information in this example (the "message" displayed), but JOSM currently only displays the error code (HTTP 400).

It would be useful to extract the message from HTTP answer.
The page is translated, the Tomcat code producing this page is here.

Attachments (2)

tomcat_before.png (1.1 KB ) - added by Don-vip 6 years ago.
tomcat_after.png (1.8 KB ) - added by Don-vip 6 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 by Don-vip, 6 years ago

Resolution: fixed
Status: newclosed

In 13230/josm:

fix #15690 - parse error message sent by Tomcat in case of WMS tile loading error

by Don-vip, 6 years ago

Attachment: tomcat_before.png added

by Don-vip, 6 years ago

Attachment: tomcat_after.png added

comment:2 by Don-vip, 6 years ago



Modify Ticket

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