geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Han Hong Fang (JIRA)" <j...@apache.org>
Subject [jira] Issue Comment Edited: (GERONIMO-5581) Add test case for programmatic access control on servlet
Date Wed, 08 Sep 2010 07:07:33 GMT

    [ https://issues.apache.org/jira/browse/GERONIMO-5581?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12907115#action_12907115
] 

Han Hong Fang edited comment on GERONIMO-5581 at 9/8/10 3:05 AM:
-----------------------------------------------------------------

Patch is ready with following test cases.

1. Test @ServletSecurity when servlet is added using ServletCotext.addServet ()

   - servlet is added via servlet instance which is created using ServletContext.createServlet()
  - servlet is added via servlet instance which is NOT created using ServletContext.createServlet()
[@ServletSecurity will not take effect in this case]
 - servlet is added 

2. Test setServletSecurity of ServletRegistration.Dynamic
  - set servletSecurity on URL which is already configured in web.xml  <security-constraint>
  - set servletSecurity on URL which is NOT configured in web.xml
  -  add URL mapping after servletSecurity 

Please help to review, thanks!

BTW, the test case will succeed only when https://issues.apache.org/jira/browse/GERONIMO-5577
is implemented.

      was (Author: hanhongfang):
    Patch is ready with following test cases.

1. Test @ServletSecurity when servlet is added using ServletCotext.addServet ()

   - servlet is added via servlet instance which is created using ServletContext.createServlet()
  - servlet is added via servlet instance which is NOT created using ServletContext.createServlet()
[@ServletSecurity will not take effect in this case]
 - servlet is added 

2. Test setServletSecurity of ServletRegistration.Dynamic
  - set servletSecurity on URL which is already configured in web.xml  <security-constraint>
  - set servletSecurity on URL which is NOT configured in web.xml
  -  add URL mapping after servletSecurity 

Please help to review, thanks!

BTW, the test case will success only when https://issues.apache.org/jira/browse/GERONIMO-5577
is implemented.
  
> Add test case for programmatic access control on servlet
> --------------------------------------------------------
>
>                 Key: GERONIMO-5581
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5581
>             Project: Geronimo
>          Issue Type: Test
>      Security Level: public(Regular issues) 
>          Components: testsuite
>    Affects Versions: 3.0
>            Reporter: Han Hong Fang
>            Assignee: Han Hong Fang
>            Priority: Minor
>         Attachments: GERONIMO-5581.patch
>
>
> Servlet 3.0 provides annotations and apis provided to programmatically configure the
security constraints enforced by the Servlet Container.  Need test case for this feature.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message