W3C home > Mailing lists > Public > site-comments@w3.org > November 2010

500 Server Error retrieving http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd

From: Alexander C. Hubmann-Haidvogel <alexander.hubmann@modul.ac.at>
Date: Sun, 31 Oct 2010 21:30:05 +0000
Message-Id: <4CCDC15C.3030207@modul.ac.at>
To: site-comments@w3.org
Hi,

a Java module parsing an SVG file suddenly throws an exception, the  
error can be traced back to the following:

Retrieving http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd  
with a user-agent containing the string 'java' results in a 500 server  
error, any other user-agent works fine (see traces below).

This breaks the Apache Xerces parser, which tries to load the DTD  
using the user-agent string 'Java/1.6.0_20'.

Is this intended behavior or a temporary server error?


A non-working request:

telnet www.w3.org 80
Trying 128.30.52.37...
Connected to www.w3.org.
Escape character is '^]'.
GET /TR/2001/REC-SVG-20010904/DTD/svg10.dtd HTTP/1.1
User-Agent: java
Host: www.w3.org
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive

HTTP/1.0 500 Server Error
Cache-Control: no-cache
Connection: close
Content-Type: text/html

<html><body><h1>500 Server Error</h1>
An internal server error occured.
</body></html>
Connection closed by foreign host.


A working request:

telnet www.w3.org 80
Trying 128.30.52.37...
Connected to www.w3.org.
Escape character is '^]'.
GET /TR/2001/REC-SVG-20010904/DTD/svg10.dtd HTTP/1.1
User-Agent: -
Host: www.w3.org
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive

HTTP/1.1 200 OK
Date: Sun, 31 Oct 2010 19:15:43 GMT
Server: Apache/2
Last-Modified: Fri, 15 Nov 2002 09:50:21 GMT
ETag: "d966-3af77c201d140"
Accept-Ranges: bytes
Content-Length: 55654
Cache-Control: max-age=31536000
Expires: Mon, 31 Oct 2011 19:15:43 GMT
P3P: policyref="http://www.w3.org/2001/05/P3P/p3p.xml"
Connection: close
Content-Type: text/plain

<!--  
=====================================================================
  This is the DTD for SVG 1.0.


Best regards,
Alexander Hubmann-Haidvogel
-- 
Dipl.-Ing. Alexander C. Hubmann-Haidvogel
Researcher and Lecturer
Department of New Media Technology

MODUL University Vienna
Am Kahlenberg 1, 1190 Wien, Austria
T: +43 (1) 3203555 532
F: +43 (1) 3203555 903
alexander.hubmann@modul.ac.at
www.modul.ac.at

MODUL University Vienna GmbH,
HG Wien, FN 277162t, ATU 62643214
Received on Monday, 1 November 2010 08:01:29 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 24 October 2012 16:21:33 GMT