[Phoenix] Recoginzing a Neutron request resp. client info

Thomas Comiotto comiotto at rcfmedia.ch
Fri Jun 30 00:47:33 CEST 2006


Heya

Am 29.06.2006 um 22:35 schrieb Michael Wechner:

> Hi
>
> I just realized that Neutron has a similar problem as WebDAV has:
>

I don't think we have a problem here. It's simply up to the server to 
handle this. Basically there are two approaches:

A: Flexible command to uri mapping, defined by server and resolved by 
introspection:

<commands>
   <checkout>/hello/world.html?action=neutroncheckout</checkout>
</commands>

The server is responsible to reserve some of it's uri-namespace 
(including request params) for neutron requests.


B: Static commands:

Consider neutron a xml-rpc webservice and keep all (hardwired) commands 
in the request body of POST.

/hello/world.html?action=checkout ==> /neutron/
POST
<cmd>checkout</cmd>
<resource>/hello/world.xml</resource>

Here again the server is to reserve some of it's uri-namespace for the 
service endpoint - usually a single uri per service. In the case of 
Lenya that's a bit hard to implement I know - no excuse for not 
considering it anyway.

In both cases there's no use for WWW-Authenticate anyway.

--
Thomas



> The server can have a hard time recognizing that a GET request is
> a neutron request and hence cannot differentiate when responding.
>
> This differentiation is for instance necessary in the case of 
> authorization/authentication. Assume the following GET request for
> opening a "document":
>
> /hello/world.html?action=checkout
>
> If this "URL" is protected and the client is a regular browser, then
> the server might want to reply with a HTML form, but if it's neutron 
> enabled
> client, then the server might want to respond with the neutron 
> protocol.
>
> One possibility might be to add a HTTP header field re neutron and 
> also the version of neutron supported by the client:
>
> http://bugzilla.wyona.com/cgi-bin/bugzilla/show_bug.cgi?id=4559
>
> WDYT or any other idea how we can solve this?
>
> Thanks
>
> Michi
>
> -- 
> Michael Wechner
> Wyona      -   Open Source Content Management   -    Apache Lenya
> http://www.wyona.com                      http://lenya.apache.org
> michael.wechner at wyona.com                        michi at apache.org
> +41 44 272 91 61
>
>
> _______________________________________________
> Phoenix mailing list
> Phoenix at wyona.org
> http://wyona.com/cgi-bin/mailman/listinfo/phoenix
>




More information about the Phoenix mailing list