You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Romain Manni-Bucau (JIRA)" <ji...@apache.org> on 2016/06/28 12:05:57 UTC
[jira] [Resolved] (TOMEE-1148) JAX-RS, EJBAccessException should be
401
[ https://issues.apache.org/jira/browse/TOMEE-1148?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Romain Manni-Bucau resolved TOMEE-1148.
---------------------------------------
Resolution: Fixed
Fix Version/s: 7.0.0
> JAX-RS, EJBAccessException should be 401
> ----------------------------------------
>
> Key: TOMEE-1148
> URL: https://issues.apache.org/jira/browse/TOMEE-1148
> Project: TomEE
> Issue Type: Improvement
> Affects Versions: 1.6.0
> Reporter: David Blevins
> Fix For: 7.0.0
>
>
> We should catch EJBAccessException and use a 401 status code instead of a 500.
> Caused by: javax.ejb.EJBAccessException: Unauthorized Access by Principal Denied
> at org.apache.openejb.core.stateless.StatelessContainer.invoke(StatelessContainer.java:174)
> at org.apache.openejb.util.proxy.ProxyEJB$Handler.invoke(ProxyEJB.java:73)
> at
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:601)
> at org.apache.openejb.server.cxf.rs.OpenEJBEJBInvoker.performInvocation(OpenEJBEJBInvoker.java:88)
> at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)