John Field | 14 Jun 2013 18:13
Favicon

JACC PolicyContextHandlers

Hi all,

I have a question about using the PolicyContextHandler for EJB policy enforcement.

I am using Geronimo 3 and I have an application with a requirement to make an access control decision on an EJB method invocation, based upon the values of the EJB method arguments.

I have attempted to access the EJB method arguments from within the implies() method of the GeronimoPolicy class, i.e. org.apache.geronimo.security.jacc.mappingprovider.GeronimoPolicy.java
 
Inside the implies() method of this class (after the declarative-based principal permission checks) I am doing:


                        ThreadData threadData = ContextManager.getThreadData();                        
                        EnterpriseBean aBean = threadData.getBean();

...however the result is that the value of aBean is null.

I also tried:

           PolicyContextHandler aPCH = (PolicyContextHandler) PolicyContext.getContext("javax.ejb.EnterpriseBean");
 
But this also returned null.

Curious as to why this was not populated, so I searched the code base and this failed to identify any caller invoking the corresponding push, i.e.  a call to PolicyContextHandlerEnterpriseBean.pushContextData()

Note that I am able to successfully access the servlet context using

                        ThreadData threadData = ContextManager.getThreadData();                        
                        HttpServletRequest aRequest = threadData.getRequest();
 
 And in a search of the code I do see that both Jetty and Tomcat containers are indeed making use of the pushContextData() method.

So, I am wondering whether this EJB context is available.  Am I doing something incorrectly here?, Or, perhaps this is just not yet implemented on the OpenEJB container?

Any help appreciated.

Thanks,
John

--

John P. Field | Security Architect | Pivotal  

goPivotal.com
Andy McCright (JIRA | 12 Jun 2013 17:02
Picon
Favicon

[jira] [Resolved] (GERONIMO-6462) API jar for JSR 356 - WebSockets 1.0


     [
https://issues.apache.org/jira/browse/GERONIMO-6462?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andy McCright resolved GERONIMO-6462.
-------------------------------------

    Resolution: Fixed

> API jar for JSR 356 - WebSockets 1.0
> ------------------------------------
>
>                 Key: GERONIMO-6462
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-6462
>             Project: Geronimo
>          Issue Type: Sub-task
>      Security Level: public(Regular issues) 
>            Reporter: Kevin Sutter
>            Assignee: Andy McCright
>         Attachments: websockets-patch.txt
>
>
> New jar file for Java EE 7.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Jarek Gawor (JIRA | 12 Jun 2013 06:27
Picon
Favicon

[jira] [Commented] (GERONIMO-6462) API jar for JSR 356 - WebSockets 1.0


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

Jarek Gawor commented on GERONIMO-6462:
---------------------------------------

Committed your patch in revision 1492048. Thanks! Snapshot published at: https://repository.apache.org/content/groups/snapshots/org/apache/geronimo/specs/geronimo-websockets_1.0_spec/1.0-SNAPSHOT/

                
> API jar for JSR 356 - WebSockets 1.0
> ------------------------------------
>
>                 Key: GERONIMO-6462
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-6462
>             Project: Geronimo
>          Issue Type: Sub-task
>      Security Level: public(Regular issues) 
>            Reporter: Kevin Sutter
>            Assignee: Andy McCright
>         Attachments: websockets-patch.txt
>
>
> New jar file for Java EE 7.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Andy McCright (JIRA | 11 Jun 2013 21:04
Picon
Favicon

[jira] [Updated] (GERONIMO-6462) API jar for JSR 356 - WebSockets 1.0


     [
https://issues.apache.org/jira/browse/GERONIMO-6462?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andy McCright updated GERONIMO-6462:
------------------------------------

    Attachment: websockets-patch.txt

This patch creates a new project for web sockets 1.0.

> API jar for JSR 356 - WebSockets 1.0
> ------------------------------------
>
>                 Key: GERONIMO-6462
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-6462
>             Project: Geronimo
>          Issue Type: Sub-task
>      Security Level: public(Regular issues) 
>            Reporter: Kevin Sutter
>            Assignee: Andy McCright
>         Attachments: websockets-patch.txt
>
>
> New jar file for Java EE 7.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Andy McCright (JIRA | 11 Jun 2013 20:48
Picon
Favicon

[jira] [Assigned] (GERONIMO-6450) API jar for JSR 236 - Concurrency Utils 1.0


     [
https://issues.apache.org/jira/browse/GERONIMO-6450?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andy McCright reassigned GERONIMO-6450:
---------------------------------------

    Assignee: Andy McCright

> API jar for JSR 236 - Concurrency Utils 1.0
> -------------------------------------------
>
>                 Key: GERONIMO-6450
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-6450
>             Project: Geronimo
>          Issue Type: Sub-task
>      Security Level: public(Regular issues) 
>            Reporter: Kevin Sutter
>            Assignee: Andy McCright
>
> JSR 236 is new for Java EE 7.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Andy McCright (JIRA | 11 Jun 2013 20:48
Picon
Favicon

[jira] [Assigned] (GERONIMO-6461) API jar for JSR 353 - JSON-P 1.0


     [
https://issues.apache.org/jira/browse/GERONIMO-6461?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andy McCright reassigned GERONIMO-6461:
---------------------------------------

    Assignee: Andy McCright

> API jar for JSR 353 - JSON-P 1.0
> --------------------------------
>
>                 Key: GERONIMO-6461
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-6461
>             Project: Geronimo
>          Issue Type: Sub-task
>      Security Level: public(Regular issues) 
>            Reporter: Kevin Sutter
>            Assignee: Andy McCright
>
> New jar file for Java EE 7.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Andy McCright (JIRA | 11 Jun 2013 20:48
Picon
Favicon

[jira] [Assigned] (GERONIMO-6452) API jar for JSR 339 - JAX-RS 2.0


     [
https://issues.apache.org/jira/browse/GERONIMO-6452?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andy McCright reassigned GERONIMO-6452:
---------------------------------------

    Assignee: Andy McCright

> API jar for JSR 339 - JAX-RS 2.0
> --------------------------------
>
>                 Key: GERONIMO-6452
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-6452
>             Project: Geronimo
>          Issue Type: Sub-task
>      Security Level: public(Regular issues) 
>            Reporter: Kevin Sutter
>            Assignee: Andy McCright
>
> Update jar file for Java EE 7.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Jarek Gawor | 11 Jun 2013 16:56
Picon

Java 7 genesis and specs

Hi all,

Some of the new Java EE 7 spec API (as for example servlet 3.1)
requires Java 7 to build. For that I created genesis-java7-flava in
genesis with Java 7 settings and updated the specs module to compile
with Java 7. Buildbot was updated as well to use Java 7 for the
genesis and specs modules. Even though Java 7 is used to compile some
of the older spec jars, the compiler is configured with the right
-source/-target options so that everything should be still fine on the
older JVMs.

Let me know if there are any concerns with this,
Jarek

Andy McCright (JIRA | 10 Jun 2013 23:28
Picon
Favicon

[jira] [Assigned] (GERONIMO-6462) API jar for JSR 356 - WebSockets 1.0


     [
https://issues.apache.org/jira/browse/GERONIMO-6462?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andy McCright reassigned GERONIMO-6462:
---------------------------------------

    Assignee: Andy McCright

> API jar for JSR 356 - WebSockets 1.0
> ------------------------------------
>
>                 Key: GERONIMO-6462
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-6462
>             Project: Geronimo
>          Issue Type: Sub-task
>      Security Level: public(Regular issues) 
>            Reporter: Kevin Sutter
>            Assignee: Andy McCright
>
> New jar file for Java EE 7.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Jarek Gawor (JIRA | 10 Jun 2013 19:40
Picon
Favicon

[jira] [Commented] (GERONIMO-6453) API jar for JSR 340 - Servlet 3.1


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

Jarek Gawor commented on GERONIMO-6453:
---------------------------------------

Btw, for now I manually published a snapshot of the spec jar: https://repository.apache.org/content/groups/snapshots/org/apache/geronimo/specs/geronimo-servlet_3.1_spec/1.0-SNAPSHOT/

                
> API jar for JSR 340 - Servlet 3.1
> ---------------------------------
>
>                 Key: GERONIMO-6453
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-6453
>             Project: Geronimo
>          Issue Type: Sub-task
>      Security Level: public(Regular issues) 
>            Reporter: Kevin Sutter
>            Assignee: Andy McCright
>         Attachments: patch.txt
>
>
> Update jar file for Java EE 7.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Andy McCright (JIRA | 10 Jun 2013 18:01
Picon
Favicon

[jira] [Resolved] (GERONIMO-6453) API jar for JSR 340 - Servlet 3.1


     [
https://issues.apache.org/jira/browse/GERONIMO-6453?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andy McCright resolved GERONIMO-6453.
-------------------------------------

    Resolution: Fixed

> API jar for JSR 340 - Servlet 3.1
> ---------------------------------
>
>                 Key: GERONIMO-6453
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-6453
>             Project: Geronimo
>          Issue Type: Sub-task
>      Security Level: public(Regular issues) 
>            Reporter: Kevin Sutter
>            Assignee: Andy McCright
>         Attachments: patch.txt
>
>
> Update jar file for Java EE 7.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


Gmane