Runtime not considering policies in IntentMaps
----------------------------------------------
Key: TUSCANY-3463
URL: https://issues.apache.org/jira/browse/TUSCANY-3463
Project: Tuscany
Issue Type: Bug
Components: Java SCA Policy
Affects Versions: Java-SCA-2.0-M3
Reporter: Brent Daniel
There are several places I've come across where the runtime expects
PolicySet.getPolicies() to return all policies associated with a PolicySet.
However, this doesn't consider policies contained underneath IntentMaps (such
as in ManagedTransactionPolicySet: )
<policySet name="ManagedTransactionPolicySet" provides="managedTransaction"
appliesTo="implementation">
<intentMap provides="managedTransaction" default="global">
<qualifier name="global">
<tuscany:transactionPolicy transactionTimeout="1200"
action="REQUIRE_GLOBAL" />
</qualifier>
<qualifier name="local">
<tuscany:transactionPolicy transactionTimeout="1200"
action="REQUIRE_LOCAL" />
</qualifier>
</intentMap>
</policySet>
I've found the following issues with this so far:
In TransactionImplementationPolicyProvider.createInterceptor() we will fail to
create an interceptor because getPolicies() for the ManagedTransactionPolicySet
is empty.
In EndPointReferenceBinderImpl.haveMatchingPolicy() we will fail to match
policies between services and references -- there are several instances here
where getPolicies() is expected to return all policies underneath a PolicySet.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.