[Design of POJO Server] - trunk testsuite status
by scott.stark@jboss.org
The status for the jboss-all-config-tests testsuite target which I have been focusing on is ~ 71% passing:
| Number of tests run: 2005
|
| --------------------------------------------
|
| Successful tests: 1420
|
| Errors: 495
|
| Failures: 90
|
| --------------------------------------------
|
|
|
| [time of test: 2007-03-21.16-25 GMT]
| [java.version: 1.5.0_10]
| [java.vendor: Sun Microsystems Inc.]
| [java.vm.version: 1.5.0_10-b03]
| [java.vm.name: Java HotSpot(TM) Client VM]
| [java.vm.info: mixed mode]
| [os.name: Windows XP]
| [os.arch: x86]
| [os.version: 5.1]
|
The majority of the failures are in:
jms/mdb - start looking at that today when the jbm update is available. ~40% of failures are here.
jacc - looking at it today/tomorrow
jmx(org.jboss.test.jbossmx.*) - have not classified this yet
jca - 1/3 of the org.jboss.test.jca.test are failing due to missing super.setUp calls. I just fixed that and need to rerun these to validate status.
org.jboss.test.deployers - broken due to out of date api usage. won't fix for beta2.
iiop (org.jboss.*iiop.*) - method mapping/marshalling issues. There are a number of iiop tests passing so not likely to look further for beta2.
web (org.jboss.test.web.*) - security and ejb ref/enc problems. Need to look at this today.
An ejb3 run on trunk is also needed and I'll work on that once the jbm issues are in better shape. jbm and ejb3 are the biggest wildcards at this point.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030338#4030338
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030338
19 years
[Design of Security on JBoss] - Re: SecurityContext
by anil.saldhana@jboss.com
Topic: Situation between <use-caller-identity> and <run-as>
| Task: Security Context replacement of SecurityAssociation; SC over the invocation.
|
| I have the following situation with reference to the <security-identity> tag:
|
| [A] -> [B]->[C]
|
| EJB A defines a run-as (P/InternalRole), B defines no run-as but has <use-caller-identity>
|
| Both B and C are accessible only by role "InternalRole".
|
| The situation for me is the call to C. It does not have the "InternalRole" in the security context because it is not part of Subject nor is the callerRunAsIdentity.
|
| I am treating this as a special case as follows:
| At the security checks happening for B, I do:
| =======================
| RunAsIdentity callerRunAsIdentity = getCallerRunAsIdentity(mi);
| /**
| * Special case: if <use-caller-identity> configured and
| * the caller is arriving with a run-as, we need to push that run-as
| */
| if(callerRunAsIdentity != null && this.isUseCallerIdentity)
| this.runAsIdentity = callerRunAsIdentity;
| ...
| pushRunAsIdentity(runAsIdentity);
| ======================================
|
|
Effectively, this has replaced the run-as for B-C call to be the caller's RAI from A to B.
Reference: EJBSpecTest -> testDeepRunAs
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030331#4030331
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030331
19 years
[Design of AOP on JBoss (Aspects/JBoss)] - Re: Re : Add necessary stuff to get scoped prototype working
by bkeh12
I try this which seen ok.
If have any thing wrong!
Pls, tell me.
thank
| <?xml version="1.0" encoding="UTF-8"?>
|
| <deployment xmlns="urn:jboss:bean-deployer:2.0">
|
| <classloader>
| <bean name="cl" class="org.jboss.test.kernel.deployment.support.NullClassLoader" />
| </classloader>
|
| <bean name="clx" class="org.jboss.test.kernel.deployment.support.NullClassLoader1"/>
|
| <beanfactory name="InterceptedAdvice" class="org.jboss.test.kernel.deployment.test.CalledInterceptor">
| <classloader><inject bean="clx" /> </classloader>
| </beanfactory>
|
| <bean name="appScopeObject" class="org.jboss.test.kernel.deployment.support.SimpleObjectWithBean">
| <annotation>@org.jboss.metadata.plugins.scope.ApplicationScope("testApp")</annotation>
| </bean>
|
| <bean name="AspectManager" class="org.jboss.aop.AspectManager">
| <annotation>@org.jboss.metadata.plugins.scope.ApplicationScope("testApp")</annotation>
| <annotation>@org.jboss.metadata.plugins.scope.DeploymentScope("deployment2")</annotation>
| <classloader><inject bean="clx" /> </classloader>
| <constructor factoryClass="org.jboss.aop.microcontainer.beans.AspectManagerFactory" factoryMethod="getAspectManager"/>
| </bean>
|
| <bean name="InterceptedAspect" class="org.jboss.aop.microcontainer.beans.Aspect">
| <annotation>@org.jboss.metadata.plugins.scope.ApplicationScope("testApp")</annotation>
| <annotation>@org.jboss.metadata.plugins.scope.DeploymentScope("deployment2")</annotation>
| <classloader><inject bean="clx" /> </classloader>
| <property name="advice"><inject bean="InterceptedAdvice"/></property>
| <property name="manager"><inject bean="AspectManager"/></property>
| </bean>
|
| <bean name="InterceptedBinding" class="org.jboss.aop.microcontainer.beans.AspectBinding">
| <annotation>@org.jboss.metadata.plugins.scope.ApplicationScope("testApp")</annotation>
| <annotation>@org.jboss.metadata.plugins.scope.DeploymentScope("deployment2")</annotation>
| <classloader><inject bean="clx" /> </classloader>
| <property name="pointcut">execution(* $instanceof{org.jboss.test.kernel.deployment.support.SimpleObjectWithBean}->*(..))</property>
| <property name="aspect"><inject bean="InterceptedAspect" property="definition"/></property>
| <property name="manager"><inject bean="AspectManager"/></property>
| </bean>
|
| <bean name="deploy1" class="org.jboss.test.kernel.deployment.support.SimpleObjectWithBean">
| <annotation>@org.jboss.metadata.plugins.scope.ApplicationScope("testApp")</annotation>
| <annotation>@org.jboss.metadata.plugins.scope.DeploymentScope("deployment1")</annotation>
| <property name="simpleBean"><inject bean="simple"/></property>
| </bean>
|
| <bean name="deploy2" class="org.jboss.test.kernel.deployment.support.SimpleObjectWithBean">
| <annotation>@org.jboss.metadata.plugins.scope.ApplicationScope("testApp")</annotation>
| <annotation>@org.jboss.metadata.plugins.scope.DeploymentScope("deployment2")</annotation>
| <classloader><inject bean="clx" /> </classloader>
| <property name="simpleBean"><inject bean="simple"/></property>
| </bean>
|
| <bean name="deploy3" class="org.jboss.test.kernel.deployment.support.SimpleObjectWithBean">
| <annotation>@org.jboss.metadata.plugins.scope.ApplicationScope("testApp")</annotation>
| <annotation>@org.jboss.metadata.plugins.scope.DeploymentScope("deployment3")</annotation>
| <property name="simpleBean"><inject bean="simpleFromBoot"/></property>
| </bean>
|
| <bean name="deploy4" class="org.jboss.test.kernel.deployment.support.SimpleObjectWithBean">
| <annotation>@org.jboss.metadata.plugins.scope.ApplicationScope("testApp")</annotation>
| <annotation>@org.jboss.metadata.plugins.scope.DeploymentScope("deployment4")</annotation>
| <property name="simpleBean"><inject bean="simpleFromApp"/></property>
| </bean>
|
| <bean name="simple" class="org.jboss.test.kernel.deployment.support.SimpleBeanImpl">
| <annotation>@org.jboss.metadata.plugins.scope.ApplicationScope("testApp")</annotation>
| <annotation>@org.jboss.metadata.plugins.scope.DeploymentScope("deployment1")</annotation>
| <constructor>
| <parameter>deployment1</parameter>
| </constructor>
| </bean>
|
| <bean name="simple" class="org.jboss.test.kernel.deployment.support.SimpleBeanImpl">
| <annotation>@org.jboss.metadata.plugins.scope.ApplicationScope("testApp")</annotation>
| <annotation>@org.jboss.metadata.plugins.scope.DeploymentScope("deployment2")</annotation>
| <classloader><inject bean="clx" /> </classloader>
| <constructor>
| <parameter>deployment2</parameter>
| </constructor>
| </bean>
|
| <bean name="simpleFromBoot" class="org.jboss.test.kernel.deployment.support.SimpleBeanImpl">
| <constructor>
| <parameter>fromBoot</parameter>
| </constructor>
| </bean>
|
| <bean name="simpleFromApp" class="org.jboss.test.kernel.deployment.support.SimpleBeanImpl">
| <annotation>@org.jboss.metadata.plugins.scope.ApplicationScope("testApp")</annotation>
| <constructor>
| <parameter>fromApp</parameter>
| </constructor>
| </bean>
|
| </deployment>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030312#4030312
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030312
19 years