[jboss-jira] [JBoss JIRA] (WFCORE-761) Not possible to overlay non existing file in WAR

Bartosz Baranowski (JIRA) issues at jboss.org
Tue Jun 16 05:49:03 EDT 2015


Bartosz Baranowski created WFCORE-761:
-----------------------------------------

             Summary: Not possible to overlay non existing file in WAR
                 Key: WFCORE-761
                 URL: https://issues.jboss.org/browse/WFCORE-761
             Project: WildFly Core
          Issue Type: Feature Request
            Reporter: Bartosz Baranowski
            Priority: Minor


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.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the jboss-jira mailing list