tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Getting error 403 forbidden while using HTTP PUT method
Date Thu, 03 Oct 2013 15:17:27 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Arnab,

On 10/3/13 9:46 AM, Arnab Majumder wrote:
> I am using Apache Tomcat 8.0.0-RC3 Server and spring dispatcher 
> servlet . I am getting 403 forbidden while using HTTP PUT method
> but HTTPGET method is working properly. I am trying to solve this
> with security constraint but it is giving me 409 conflict error
> because I am using spring dispatcher servlet and It is not
> working.But It is working perfect on tomcat 7 .Please help me to
> get rid of this .

Per the servlet spec, the default implementation for HttpServlet is to
respond to PUT requests with a 405 Method Not Allowed (for HTTP 1.1
connections) or a 400 Bad Request (for all other connections).

You could still be getting a 403 based upon your security constraints.
Can you post them here?

Its possible you might need to talk to the Spring folks about the
dispatcher servlet and how it handles PUTs, etc. if it turns out that
your security constraints are not the problem.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJSTYqHAAoJEBzwKT+lPKRYRqsP/3eaSzGiQY4McHd5lL4G87rX
KGyXtVO6zfRQ8gbFxNeTPXll/9zfGdiQYJdDdvWXn1A+Hqj9yFPOqy37hys71K7I
ndS1k5gDmcnyymG+l1+M58kAikYQxqEXv0t+xOCi4iCDuuBVWLw9NuK/KLyaC43q
RZG7kEbUMhYV536CMMXnWGeR1GHWScbzsh3632YE9YRyXVLqcRV/pvp2KeHry3Gp
QcTMBxwh4N+wx1OlUVQ3NAXLnhOjP7Ppn6shb54dl6Q+S2m0s2sy1RhdehCw4KcE
HzjzWNdmmZx/IBK0F2XxuG5YnAnx8eneXvS9yClkQaiUgzQ5XoA4Dc2vmCTVKJ11
nBZqdN5bD34YuuEGGM6vZ1EzLRcPm+t6VuWAgQ43CpMdZaEmPK3AWLSqtfDY4K37
sxlOgY2kkW8CxGAcJU6/IW6jXm7KV5ZtYd5odSixG6RSHzi4mYZaxvEhAj8AJcUu
PRX1NXrWAlkLmSPLQi4/naVzI6kO3M8HG1vGxg/hmleSNpI/Z4qrgnGQ4IRh9D7v
deT8KebtzFiJcbVG71xxES+wDeURdiuK7HYcYeipIY8QJI90gQIz00dyzuCnaDh1
fK4lg9qpC7wtdXQ8lsERY5tnvGmaeKkZj1H04lymYT+MK0rvV5Bv19QUU1NXFLXV
w7g1ywakilAOW+AKrBs6
=HBW+
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message