[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Handle-info] HTTP/1.1 302 Moved Temporarily



Thanks, Robert:

I suppose this is where Tomcat gets it from:

    LocalStrings.properties:sc.302=Moved Temporarily

    ../apache-tomcat-6.0.24-src/java/org/apache/tomcat/util/http/res

Agree that RFC 2616 allows for local variants - although I presume it had
language translations in mind rather than alternate wordings. ;) Important
especially because the TAG clearly has a semantic agenda for HTTP status
codes.

Anyway this is just real sloppy practice by Tomcat. Words ought to mean
something. And adherence to standards too.

But I do agree with John's reply here that 302 might not be the clearest
response that an HS could give - 303 and 307 being the preferred modern
variants.

I don't see how an HS can properly defer to a downstream server. This is
something that an HS needs to take responsibility for. Or at least the proxy
server operated by an RA. An RA member cannot impose an alternate semantic
reading over the RA default, surely?

We really need a more graceful interface between handle and HTTP.

Cheers,

Tony



On 8/2/10 19:49, "Robert Tupelo-Schneck" <schneck@cnri.reston.va.us> wrote:

> On 2010-02-08, at 08:02, Hammond, Tony wrote:
>> If I try to get a handle through hdl.handle.net (or dx.doi.org) I get a
>> Status-Code '302' with the Reason-Phrase 'Moved Temporarily'. (See listing
>> at end.)
>> 
>> As far as I can see this Reason-Phrase is wrong.
> [...]
>> I don't know if this is the correct source:
>> 
>> % grep 302 *
>> HdlHttpRequestHandler.java:    out.write("HTTP/1.1 302 Moved
>> Temporarily\n");
> 
> That bit of source code is active when accessing a handle server directly via
> web browser on its HTTP interface.  I've changed it so "Found" will be used in
> the next version.
> 
> However, in the case of the proxies (hdl.handle.net and dx.doi.org), the
> reason-phrase is generated by Tomcat, not our code.
> 
> For what it's worth, RFC2616 also says (in section 6.1.1) "The reason phrases
> listed here are only recommendations -- they MAY be replaced by local
> equivalents without affecting the protocol."
> 
> Thanks,
> Robert
> 


********************************************************************************   
DISCLAIMER: This e-mail is confidential and should not be used by anyone who is
not the original intended recipient. If you have received this e-mail in error
please inform the sender and delete it from your mailbox or any other storage
mechanism. Neither Macmillan Publishers Limited nor any of its agents accept
liability for any statements made which are clearly the sender's own and not
expressly made on behalf of Macmillan Publishers Limited or one of its agents.
Please note that neither Macmillan Publishers Limited nor any of its agents
accept any responsibility for viruses that may be contained in this e-mail or
its attachments and it is your responsibility to scan the e-mail and 
attachments (if any). No contracts may be concluded on behalf of Macmillan 
Publishers Limited or its agents by means of e-mail communication. Macmillan 
Publishers Limited Registered in England and Wales with registered number 785998 
Registered Office Brunel Road, Houndmills, Basingstoke RG21 6XS   
********************************************************************************


_______________________________________________
Handle-Info mailing list
Handle-Info@cnri.reston.va.us
http://www.handle.net/mailman/listinfo/handle-info