Bertrand Delacretaz wrote:
> On Tue, Aug 4, 2009 at 9:23 AM, Vidar Ramdal<[email protected]> wrote:
>> 2009/7/30 Vidar Ramdal <[email protected]>:
>>> What is the intended behavior for a servlet that is registered as follows:
>>>  * @scr.property name="sling.servlet.extensions" value="html"
> ...
>>>  * @scr.property name="sling.servlet.methods" values.0="GET" values.1="POST"
> 
>> ...I would expect the servlet to be
>> registered as something like
>> /apps/sling/servlet/default/GET.html.servlet (or just
>> /apps/sling/servlet/default/html.servlet, since GET is somewhat
>> implied).
>> But I'm not sure. Can we have a ruling, please?
> 
> I agree with you - if a servlet is registered with
> sling.servlet.extensions = html, it should not process any request
> that doesn't have an html extension.
> 
Hmm not sure :) I guess this boils down to the question if the properties
are applied using "or" or "and" logic. Atm it's "or" (at least this is
my understanding of the code...) :)

Changing this might create compatibility problems (not sure though).

Carsten
-- 
Carsten Ziegeler
[email protected]

Reply via email to