Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-3285

Annotated classes excluded in module import are still processed during deployment.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • No Release
    • 7.1.0.CR1b
    • Server
    • Hide

      1. create following security domains:

                      <security-domain name="jmx-console" cache-type="default">
                          <authentication>
                              <login-module code="UsersRoles" flag="required">
                                  <module-option name="usersProperties" value="users.properties"/>
                                  <module-option name="rolesProperties" value="roles.properties"/>
                              </login-module>
                          </authentication>
                      </security-domain>
                      <security-domain name="idp" cache-type="default">
                          <authentication>
                              <login-module code="UsersRoles" flag="required">
                                  <module-option name="usersProperties" value="users.properties"/>
                                  <module-option name="rolesProperties" value="roles.properties"/>
                              </login-module>
                          </authentication>
                      </security-domain>
                      <security-domain name="sp" cache-type="default">
                          <authentication>
                              <login-module code="org.picketlink.identity.federation.bindings.jboss.auth.SAML2LoginModule" flag="required"/>
                          </authentication>
                      </security-domain>
      

      2. Deploy attached file (picketlink-sts.war)
      3. check server log

      Show
      1. create following security domains: <security-domain name="jmx-console" cache-type="default"> <authentication> <login-module code="UsersRoles" flag="required"> <module-option name="usersProperties" value="users.properties"/> <module-option name="rolesProperties" value="roles.properties"/> </login-module> </authentication> </security-domain> <security-domain name="idp" cache-type="default"> <authentication> <login-module code="UsersRoles" flag="required"> <module-option name="usersProperties" value="users.properties"/> <module-option name="rolesProperties" value="roles.properties"/> </login-module> </authentication> </security-domain> <security-domain name="sp" cache-type="default"> <authentication> <login-module code="org.picketlink.identity.federation.bindings.jboss.auth.SAML2LoginModule" flag="required"/> </authentication> </security-domain> 2. Deploy attached file (picketlink-sts.war) 3. check server log

    Description

      Annotation attribute works, but import filter is not taken into account and all annotations found in dependant module are processed.

      See in following server log snippet that @WebServiceProvider at class org.picketlink.identity.federation.core.pdp.SOAPSAMLXACMLPDP is processed despite the class was ordered to not be imported in jboss-deployment-structure.xml.

      11:15:08,018 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) Starting deployment of "picketlink-sts.war"
      11:22:31,125 INFO [org.jboss.wsf.stack.cxf.metadata.MetadataBuilder] (MSC service thread 1-5) Add Service
      id=PicketLinkSTS
      address=http://localhost:8080/picketlink-sts
      implementor=org.picketlink.identity.federation.core.wstrust.PicketLinkSTS
      invoker=org.jboss.wsf.stack.cxf.JBossWSInvoker
      serviceName=

      {urn:picketlink:identity-federation:sts}

      PicketLinkSTS
      portName=

      {urn:picketlink:identity-federation:sts}

      PicketLinkSTSPort
      wsdlLocation=null
      mtomEnabled=false
      11:22:31,126 INFO [org.jboss.wsf.stack.cxf.metadata.MetadataBuilder] (MSC service thread 1-5) Add Service
      id=org.picketlink.identity.federation.core.pdp.SOAPSAMLXACMLPDP
      address=http://localhost:8080/picketlink-sts/SOAPSAMLXACMLPDP
      implementor=org.picketlink.identity.federation.core.pdp.SOAPSAMLXACMLPDP
      invoker=org.jboss.wsf.stack.cxf.JBossWSInvoker
      serviceName=

      {urn:picketlink:identity-federation:pdp}

      SOAPSAMLXACMLPDP
      portName=

      {urn:picketlink:identity-federation:pdp}

      SOAPSAMLXACMLPort
      wsdlLocation=null
      mtomEnabled=false

      Content of my jboss-deployment-structure.xml

      <jboss-deployment-structure>
        <deployment>
          <!-- Add picketlink module dependency -->
          <dependencies>
            <module name="org.picketlink" annotations="true">
              <imports>
                 <exclude path="org/picketlink/identity/federation/core/pdp/**"/>
              </imports>
            </module>
          </dependencies>
        </deployment>
      </jboss-deployment-structure>
      

      Attachments

        Issue Links

          Activity

            People

              jgreene@redhat.com Jason Greene
              pskopek@redhat.com Peter Skopek
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: