Modify

Opened 5 weeks ago

Closed 5 weeks ago

Last modified 5 weeks 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:

Description

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;}A.name {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 5 weeks ago.
tomcat_after.png (1.8 KB) - added by Don-vip 5 weeks ago.

Download all attachments as: .zip

Change History (4)

comment:1 Changed 5 weeks ago by Don-vip

Resolution: fixed
Status: newclosed

In 13230/josm:

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

Changed 5 weeks ago by Don-vip

Attachment: tomcat_before.png added

Changed 5 weeks ago by Don-vip

Attachment: tomcat_after.png added

comment:2 Changed 5 weeks ago by Don-vip

Before:

After:

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted.

Add Comment


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

 
Note: See TracTickets for help on using tickets.