Hello Jan,
Thanks for the reply. At least I now know that Jetty would deny with
an HTTP status instead of an error page, which probably means the
methods are not blocked properly.
I was so stupid not to mention that I am using Jetty in embedded
mode. I do not use the web-application stuff nor do I have a
web.xml. I must be doing something wrong with my embedding code. I
will dive into this and come back here if I have questions.
Cheers,
Silvio
On 01/15/2016 03:16 AM, Jan Bartel
wrote:
Section 13.8.4.2 of the 3.1 Servlet Spec requires that 403
Forbidden is returned for denied uncovered methods:
"When the
deny-uncovered-http-methods flag is set in the web.xml
of an
application, the container must deny any HTTP protocol
method when it is used
with a request URL for which the HTTP method is
uncovered at the combined
security constraint that applies to the url-pattern
that is the best match for the
request URL. The denied request shall be rejected as
forbidden and a 403
(SC_FORBIDDEN) status code shall be returned."
Hope that helps,
Jan
_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users
|