wsit
  1. wsit
  2. WSIT-429

WS-Policy interop: Unexpanded "POLICY_REFERENCE" node found referencing Operation2-Aggregate

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Incomplete
    • Affects Version/s: current
    • Fix Version/s: 1.0
    • Component/s: policy
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: Macintosh

    • Issuezilla Id:
      429

      Description

      When I add this code to PolicyWSDLParserExtensionTest:

      public void testNestedReference() throws Exception

      { PolicyMap policyMap = getPolicyMap("parser/PolicyAttachments.wsdl", true); assertNotNull(policyMap.getServiceEffectivePolicy(policyMap.createWsdlServiceScopeKey( new QName("http://ws-policy.tests", "MyService")))); }

      The test fails with this exception:

      SEVERE: WSP1018: Policy exception occured when finishing WSDL parsing
      com.sun.xml.ws.policy.PolicyException: WSP0010: Unexpanded "POLICY_REFERENCE"
      node found referencing Operation2-Aggregate
      at
      com.sun.xml.ws.policy.sourcemodel.PolicyModelTranslator.getReferencedModelRootNode(PolicyModelTranslator.java:324)
      at
      com.sun.xml.ws.policy.sourcemodel.PolicyModelTranslator.decompose(PolicyModelTranslator.java:303)
      at
      com.sun.xml.ws.policy.sourcemodel.PolicyModelTranslator.createPolicyAlternatives(PolicyModelTranslator.java:255)
      at
      com.sun.xml.ws.policy.sourcemodel.PolicyModelTranslator.translate(PolicyModelTranslator.java:218)
      at com.sun.xml.ws.policy.jaxws.BuilderHandler.getPolicies(BuilderHandler.java:81)
      at
      com.sun.xml.ws.policy.jaxws.BuilderHandler.getPolicySubjects(BuilderHandler.java:89)
      at
      com.sun.xml.ws.policy.jaxws.BuilderHandlerOperationScope.doPopulate(BuilderHandlerOperationScope.java:59)
      at com.sun.xml.ws.policy.jaxws.BuilderHandler.populate(BuilderHandler.java:61)
      at
      com.sun.xml.ws.policy.jaxws.PolicyMapBuilder.getNewPolicyMap(PolicyMapBuilder.java:89)
      at
      com.sun.xml.ws.policy.jaxws.PolicyMapBuilder.getPolicyMap(PolicyMapBuilder.java:71)
      at
      com.sun.xml.ws.policy.jaxws.PolicyWSDLParserExtension.finished(PolicyWSDLParserExtension.java:987)
      at
      com.sun.xml.ws.wsdl.parser.DelegatingParserExtension.finished(DelegatingParserExtension.java:178)
      at
      com.sun.xml.ws.wsdl.parser.WSDLParserExtensionFacade.finished(WSDLParserExtensionFacade.java:314)
      at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:206)
      at com.sun.xml.ws.api.model.wsdl.WSDLModel$WSDLParser.parse(WSDLModel.java:118)
      at
      com.sun.xml.ws.policy.testutils.PolicyResourceLoader.getWSDLModel(PolicyResourceLoader.java:145)
      at
      com.sun.xml.ws.policy.testutils.PolicyResourceLoader.getPolicyMap(PolicyResourceLoader.java:129)

        Activity

        Hide
        ritzmann added a comment -

        Created an attachment (id=290)
        PolicyAttachments.wsdl

        Show
        ritzmann added a comment - Created an attachment (id=290) PolicyAttachments.wsdl
        Hide
        ritzmann added a comment -

        Assigning to Jakub.

        Show
        ritzmann added a comment - Assigning to Jakub.
        Hide
        japod added a comment -

        attached wsdl has two issues in it:

        line 152:
        <wsp:PolicyReference URI="Operation2-Aggregate"/>
        ^^
        missing #
        line 256:
        <wsp:PolicyReference URI="http://fabrikam123.com/policies/ExternalPolicy"/>
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        no such policy exists

        closing as invalid, as if you add # to the first reference and
        comment out the other, everything works just fine

        Show
        japod added a comment - attached wsdl has two issues in it: line 152: <wsp:PolicyReference URI="Operation2-Aggregate"/> ^^ missing # line 256: <wsp:PolicyReference URI="http://fabrikam123.com/policies/ExternalPolicy"/> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no such policy exists closing as invalid, as if you add # to the first reference and comment out the other, everything works just fine
        Hide
        mmatula added a comment -

        This issue was fixed before we created 1.0 branch, so the fix is in 1.0 ->
        setting target milestone to say so.

        Show
        mmatula added a comment - This issue was fixed before we created 1.0 branch, so the fix is in 1.0 -> setting target milestone to say so.

          People

          • Assignee:
            Jakub Podlesak
            Reporter:
            ritzmann
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: