You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Bertrand Delacretaz (JIRA)" <ji...@apache.org> on 2007/12/18 13:38:44 UTC

[jira] Commented: (SLING-53) Add request filter for method overwrite

    [ https://issues.apache.org/jira/browse/SLING-53?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12552732 ] 

Bertrand Delacretaz commented on SLING-53:
------------------------------------------

On sling-dev, Lars suggests using *two* filters:

First ServletFilter changes Request-Parameters with a certain naming pattern into request headers. This overcomes the disability of web
browsers to set headers programatically.

Second ServletFilter uses a header like X-HTTP-Method to override the HTTP method.

Note that we're already using ujax: as a prefix for request parameters interpreted by µjax, the pattern for the first filter should be similar.



> Add request filter for method overwrite
> ---------------------------------------
>
>                 Key: SLING-53
>                 URL: https://issues.apache.org/jira/browse/SLING-53
>             Project: Sling
>          Issue Type: New Feature
>          Components: Core, microsling
>            Reporter: Felix Meschberger
>             Fix For: 2.0.0
>
>
> To allow for method overwrite I suggest to add a request processing Filter along the lines of the Abdera MethodOverWriteFilter [1] as stipulated by Roy in [2].
> [1] http://svn.apache.org/viewvc/incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/servlet/MethodOverrideFilter.java?view=markup&pathrev=510085
> [2] http://www.mail-archive.com/sling-dev@incubator.apache.org/msg00355.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.