Re: Annotations database down; GET still returns 200

On Mon, Mar 08, 2004 at 10:22:54AM +0000, Matthew Wilson wrote:
> 
> The annotations database seems to be down again; the interactive 
> interface shows
> 
> Cannot connect as "root" to localhost:3306 with 
> "DBI:mysql:annotest:localhost:3306"
> switching to ephemoral DB

I smacked the server upside the head. It works now.

> However a GET on annotest.w3.org?w3c_annotates=[url]&w3c_forceText=* 
> just returns a 200 status with no annotations included:
> 
> <?xml version="1.0"?>
> <!-- session-id 1078741083.493782" -->
> <r:RDF
>  xmlns="http://www.w3.org/1999/xhtml#"
>  xmlns:a="http://www.w3.org/2000/10/annotation-ns#"
>  xmlns:d="http://purl.org/dc/elements/1.0/"
>  xmlns:http="http://www.w3.org/1999/xx/http#"
>  xmlns:r="http://www.w3.org/1999/02/22-rdf-syntax-ns#" />
> 
>  Would it not make more sense to return some kind of HTTP error code?

Whether "no annotations found" is a 404 has been a long standing issue.
A stronger case could be made for "no annotations found 'cause the db
isnt abswering." The hope was that people could play with the server
even if it wasn't talking to a database. Perhaps they could "play with"
it even if they got error messages back? thinking...
-- 
-eric

office: +81.466.49.1170 W3C, Keio Research Institute at SFC,
                        Shonan Fujisawa Campus, Keio University,
                        5322 Endo, Fujisawa, Kanagawa 252-8520
                        JAPAN
        +1.617.258.5741 NE43-344, MIT, Cambridge, MA 02144 USA
cell:   +1.857.222.5741 (does not work in Asia)

(eric@w3.org)
Feel free to forward this message to any list for any purpose other than
email address distribution.

Received on Monday, 8 March 2004 08:35:03 UTC