tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emre Ersoz" <emreer...@gmail.com>
Subject Re: How to disable PUT and DELETE methods in Tomcat 4.1.27?
Date Wed, 06 Sep 2006 12:52:44 GMT
added below lines to web.xml:

        <init-param>
            <param-name>readonly</param-name>
            <param-value>true</param-value>
        </init-param>

but actually i see no difference:

DELETE /tcell-um-cc-portal/a HTTP/1.0

HTTP/1.1 403 Forbidden
Content-Type: text/html;charset=ISO-8859-9
Content-Language: tr
Date: Wed, 06 Sep 2006 12:48:33 GMT
Server: Apache Coyote/1.0
Connection: close

<html><head><title>Apache Tomcat/4.1.27 - Error
report</title><STYLE><!--H1{font-family :
sans-serif,Arial,Tahoma;color : white;background-color : #0086b2;}
H3{font-family : sans-s
erif,Arial,Tahoma;color : white;background-color : #0086b2;}
BODY{font-family : sans-serif
,Arial,Tahoma;color : black;background-color : white;} B{color :
white;background-color :
#0086b2;} HR{color : #0086b2;} --></STYLE> </head><body><h1>HTTP
Status 403
- </h1><HR siz
e="1" noshade><p><b>type</b> Status report</p><p><b>message</b>
<u></u></p><p><b>descripti
on</b> <u>Access to the specified resource () has been forbidden.</u></p><HR
size="1" nosh
ade><h3>Apache Tomcat/4.1.27</h3></body></html>

I see access error but DELETE seems to be not disabled. wht do you think?

thx,

EE
On 9/6/06, Mark Thomas <markt@apache.org> wrote:
>
> Emre Ersoz wrote:
> > Dear
> > Is this context "read only", so HTTP commands like PUT and DELETE are
> > rejected? [true]
> >
> > What about 4.1.X ? Do we have solution?
>
> Yes. The same one. Take a look at conf/web.xml
>
> Mark
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message