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

Undeploy doesn't remove Data content if server is in --admin-only mode

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Verified (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 7.0.0.ER5
    • Fix Version/s: 7.2.0.CD12
    • Component/s: Management
    • Labels:
      None

      Description

      Steps to Reproduce:
      1. Start server instance using --admin-only flag
      2. Deploy application using CLI command.
      ~~~
      deploy /valid/path/WebApp.war --runtime-name=WebApp.war --name=WebApp.war
      
      ~~~
      3. Undeploy application using CLI command:
      ~~~
      undeploy WebApp.war
      ~~~
      4. Application will be undeployed but content from 'data' directory are not removed. 
      

      Lines:
      https://github.com/wildfly/wildfly-core/blob/b1a4439f442f7984e681840c0f8d18089a87c920/server/src/main/java/org/jboss/as/server/deployment/DeploymentRemoveHandler.java#L73

      https://github.com/wildfly/wildfly-core/blob/e737eff554ee433ca54835154fd67725fd52f63e/controller/src/main/java/org/jboss/as/controller/AbstractOperationContext.java#L1010

      runningMode value is ADMIN_ONLY will bypass that step in DeploymentRemoveHandler.java leads to this behavior.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              thofman Tomas Hofman
              Reporter:
              soul2zimate Chao Wang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: