Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-5209

Hot deployment scanner deploys files which were expected to be filtered

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • JBossAS-5.0.0.GA
    • JBossAS-5.0.0.Beta3, JBossAS-5.0.0.CR2
    • Deployers
    • None

    Description

      The hot deployment scanner org.jboss.system.server.profileservice.hotdeploy.HDScanner while scanning for any modified/removed/added applications, picks up files which are meant to be filtered out. Here's the scenario:

      • Create a valid EAR file (ex: myApp.ear)
      • Place this file in the deploy folder of the server and rename it to myApp.ear.bak (so that it is filtered out from deployment)
      • Start the server.
      • Server starts fine and as expected the myApp.ear.bak is not deployed as it is filtered out by the VFSDeploymentScannerImpl using the ExtensibleFilter.
      • However, once the server has started and the next run of HDScanner starts, the HDScanner adds the myApp.ear.bak to a list of "new" applications to be deployed. Because of which the myApp.ear.bak gets deployed (which is not what we wanted).

      The reason appears to be because HDScanner isn't filter aware. As a result the getModifiedDeployments() method on the ProfileImpl adds this .bak file to the list of new applications to be deployed.

      Attachments

        Activity

          People

            emuckenhuber_jira Emanuel Muckenhuber (Inactive)
            jaikiran Jaikiran Pai (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: