Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 353285 - ServletSecurity annotation ignored
Summary: ServletSecurity annotation ignored
Status: RESOLVED FIXED
Alias: None
Product: Jetty
Classification: RT
Component: other (show other bugs)
Version: 8.0.0   Edit
Hardware: All All
: P3 major (vote)
Target Milestone: 8.0.0.M3   Edit
Assignee: Jan Bartel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-28 03:42 EDT by Brice Argenson CLA
Modified: 2011-07-28 22:20 EDT (History)
1 user (show)

See Also:


Attachments
An example of web application with the issue. (5.07 KB, application/zip)
2011-07-28 03:44 EDT, Brice Argenson CLA
no flags Details
A patch to fix this issue. (760 bytes, patch)
2011-07-28 03:45 EDT, Brice Argenson CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Brice Argenson CLA 2011-07-28 03:42:14 EDT
Build Identifier: 8.0.0.M3

The new annotation @ServletSecurity is ignored by jetty 8.0.0.M3. After a quick look, a handler class exists in jetty-annotations (org.eclipse.jetty.annotations.ServletSecurityAnnotationHandler) but never register to be used ! 
Register this handler in org.eclipse.jetty.annotations.AnnotationDecorator fix the problem.

Reproducible: Always

Steps to Reproduce:
1.Use @ServletSecurity annotation on a Servlet
2.
3.
Comment 1 Brice Argenson CLA 2011-07-28 03:44:11 EDT
Created attachment 200496 [details]
An example of web application with the issue.
Comment 2 Brice Argenson CLA 2011-07-28 03:45:14 EDT
Created attachment 200497 [details]
A patch to fix this issue.
Comment 3 Jan Bartel CLA 2011-07-28 22:20:10 EDT
Ooops. What an oversight! Thanks for pointing that out.