Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-5308

(7.1.0) Not possible to overlay non existing file in WAR - mark the sub deployment which will be mounted exploded

XMLWordPrintable

      It is either bug in how deployments are treated or how overlay/vfs work.

      Steps to reproduce:
      1. deploy undexploded war with jar inside
      2. add overlay that will add non existing file in jar

      Result: exception:
      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS018776: Failed to get content for deployment overlay WEB-INF/lib/overlayed.jar//META-INF/x/file.txt at WEB-INF/lib/overlayed.jar//META-INF/x/file.txt
      Caused by: java.io.FileNotFoundException: /content/shell.war/WEB-INF/lib/overlayed.jar/META-INF/x/file.txt"}}
      at org.jboss.as.test.integration.management.ManagementOperations.executeOperation(ManagementOperations.java:67)
      at org.jboss.as.test.integration.management.ManagementOperations.executeOperation(ManagementOperations.java:37)
      at org.jboss.as.test.integration.deployment.deploymentoverlay.jar.OverlayUtils.setupOverlay(OverlayUtils.java:76)
      at org.jboss.as.test.integration.deployment.deploymentoverlay.war.OverlayNonExistingResourceTestCase.testOverlay(OverlayNonExistingResourceTestCase.java:67)

      Expectation:
      should work. It actually does work, if war is really exploded or
      'if(exploded)' part in overlay is removed from overlay processor and everything is handled via: https://github.com/stuartwdouglas/wildfly-core/blob/a75af9118c4062fafb899b2c1109387a0748d925/server/src/main/java/org/jboss/as/server/deployment/DeploymentOverlayDeploymentUnitProcessor.java#L117

      This is part of the fix of above issue, which depends on WFCORE-761.

            rhn-engineering-lgao Lin Gao
            rhn-cservice-bbaranow Bartosz Baranowski
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Remaining Estimate - 1 day
                1d
                Logged:
                Time Spent - Not Specified
                Not Specified