Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 353285

Summary: ServletSecurity annotation ignored
Product: [RT] Jetty Reporter: Brice Argenson <bargenson>
Component: otherAssignee: Jan Bartel <janb>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3 CC: janb
Version: 8.0.0   
Target Milestone: 8.0.0.M3   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
An example of web application with the issue.
none
A patch to fix this issue. none

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.