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

add-content operation fails to overwrite existing content with overwrite=true set when passing content by file path

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.1.0.DR6
    • 7.1.0.DR4, 7.1.0.DR5
    • Management
    • None

      Upon overwriting content in managed exploded deployments on JBoss EAP 7.1.0.DR4, the following errors are produced:

      CLI

      [standalone@localhost:9990 /] deploy /home/mjurc/testing/eap7-204/jboss-kitchensink-ear.ear
      [standalone@localhost:9990 /] /deployment=jboss-kitchensink-ear.ear:undeploy
      {"outcome" => "success"}
      [standalone@localhost:9990 /] /deployment=jboss-kitchensink-ear.ear:explode
      {"outcome" => "success"}
      [standalone@localhost:9990 /] /deployment=jboss-kitchensink-ear.ear:deploy
      {"outcome" => "success"}
      [standalone@localhost:9990 /] /deployment=jboss-kitchensink-ear.ear:add-content(content=[{path=/home/mjurc/testing/eap7-204/test.txt, target-path=test.txt}], overwrite=true)
      {
          "outcome" => "failed",
          "failure-description" => "org.jboss.as.repository.ExplodedContentException: WFLYDR0021: Error updating content of exploded deployment",
          "rolled-back" => true
      }
      [standalone@localhost:9990 /] /deployment=jboss-kitchensink-ear.ear:add-content(content=[{path=/home/mjurc/testing/eap7-204/test.txt, target-path=test.txt}], overwrite=false)
      {
          "outcome" => "failed",
          "failure-description" => "org.jboss.as.repository.ExplodedContentException: WFLYDR0021: Error updating content of exploded deployment",
          "rolled-back" => true
      }
      [standalone@localhost:9990 /] /deployment=jboss-kitchensink-ear.ear:add-content(content=[{path=/home/mjurc/testing/eap7-204/test.txt, target-path=test.txt}])
      {
          "outcome" => "failed",
          "failure-description" => "org.jboss.as.repository.ExplodedContentException: WFLYDR0021: Error updating content of exploded deployment",
          "rolled-back" => true
      }

      Server

      09:41:36,029 WARN  [org.jboss.as.repository] (management-handler-thread - 5) java.nio.file.FileAlreadyExistsException: /home/mjurc/testing/wildfly-core/build/target/wildfly-core-3.0.0.Alpha8-SNAPSHOT/standalone/data/content/content7797527203290314566/content/test.txt
      09:45:27,505 WARN  [org.jboss.as.repository] (management-handler-thread - 12) java.nio.file.FileAlreadyExistsException: /home/mjurc/testing/wildfly-core/build/target/wildfly-core-3.0.0.Alpha8-SNAPSHOT/standalone/data/content/content721393778736298367/content/test.txt
      09:45:36,352 WARN  [org.jboss.as.repository] (management-handler-thread - 10) java.nio.file.FileAlreadyExistsException: /home/mjurc/testing/wildfly-core/build/target/wildfly-core-3.0.0.Alpha8-SNAPSHOT/standalone/data/content/content344811471223714239/content/test.txt

      This issue does not seem to arise when the content is passed to the server by input stream index.

              ehugonne1@redhat.com Emmanuel Hugonnet
              mjurc@redhat.com Michal Jurc
              Michal Jurc Michal Jurc
              Michal Jurc Michal Jurc
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: