Correct the policy subject that is checked during "appliesTo" processing. Fix for ASM_10002 regression.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@979685 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
65e510e930
commit
a4de2ee340
1 changed files with 2 additions and 2 deletions
|
|
@ -96,7 +96,7 @@ public class PolicyAppliesToBuilderImpl extends PolicyAttachmentBuilderImpl {
|
|||
|
||||
for (ComponentService componentService : component.getServices()) {
|
||||
for (Endpoint ep : componentService.getEndpoints()) {
|
||||
checkAppliesToSubject(document, appliesToSubjects, topComposite, (PolicySubject)ep, ep.getPolicySets());
|
||||
checkAppliesToSubject(document, appliesToSubjects, topComposite, (PolicySubject)ep.getService(), ep.getPolicySets());
|
||||
if (ep.getBinding() instanceof PolicySubject) {
|
||||
checkAppliesToSubject(document, appliesToSubjects, topComposite, (PolicySubject)ep.getBinding(), ep.getPolicySets());
|
||||
}
|
||||
|
|
@ -105,7 +105,7 @@ public class PolicyAppliesToBuilderImpl extends PolicyAttachmentBuilderImpl {
|
|||
|
||||
for (ComponentReference componentReference : component.getReferences()) {
|
||||
for (EndpointReference epr : componentReference.getEndpointReferences()) {
|
||||
checkAppliesToSubject(document, appliesToSubjects, topComposite, (PolicySubject)epr, epr.getPolicySets());
|
||||
checkAppliesToSubject(document, appliesToSubjects, topComposite, (PolicySubject)epr.getReference(), epr.getPolicySets());
|
||||
if (epr.getBinding() instanceof PolicySubject) {
|
||||
checkAppliesToSubject(document, appliesToSubjects, topComposite, (PolicySubject)epr.getBinding(), epr.getPolicySets());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue