Modify ↓
#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)
Change History (4)
comment:1 by , 8 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
by , 8 years ago
| Attachment: | tomcat_before.png added |
|---|
by , 8 years ago
| Attachment: | tomcat_after.png added |
|---|
Note:
See TracTickets
for help on using tickets.





In 13230/josm: