glassfish
  1. glassfish
  2. GLASSFISH-15354

ContextPathCollisionDetector is not cleaned up when deployment fails abruptly

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.1_b33
    • Fix Version/s: 3.1_b36
    • Component/s: OSGi-JavaEE
    • Labels:
      None

      Description

      ContextPathCollisionDetector is used to detect conflicts in context path. Currently, we add bundle details in ContextPathCollisionDetector at the beginning of deployment and remove bundle details from ContextPathCollisionDetector on undeployment. If a bundle fails to deploy, we don't remove its details from ContextPathCollisionDetector as a result of which subsequent attempt to deploy any bundle with the same context path results in ContextPathCollisionException.

      The simple fix is to cleanup in case of failed deployment.

      How bad is its impact? (Severity): rfc #66 compliance issue.

      How often does it happen? Will many users see this problem? (Frequency): Sometimes

      How much effort is required to fix it? (Cost): Very Low

      What is the risk of fixing it and how will the risk be mitigated? (Risk): Only affects hybrid app users and fix is well understood.

        Activity

        Hide
        Sanjeeb Sahoo added a comment -

        ss141213@Sahoo:/space/ss141213/WS/gf/v3/osgi-javaee$ svn commit -m "Issue 15354: clean up context path collision detector on failed deployment. see jira for approval details." osgi-web-container/
        Sending osgi-web-container/src/main/java/org/glassfish/osgiweb/ContextPathCollisionDetector.java
        Sending osgi-web-container/src/main/java/org/glassfish/osgiweb/OSGiWebDeploymentRequest.java
        Transmitting file data ..
        Committed revision 44174.

        Show
        Sanjeeb Sahoo added a comment - ss141213@Sahoo:/space/ss141213/WS/gf/v3/osgi-javaee$ svn commit -m "Issue 15354: clean up context path collision detector on failed deployment. see jira for approval details." osgi-web-container/ Sending osgi-web-container/src/main/java/org/glassfish/osgiweb/ContextPathCollisionDetector.java Sending osgi-web-container/src/main/java/org/glassfish/osgiweb/OSGiWebDeploymentRequest.java Transmitting file data .. Committed revision 44174.

          People

          • Assignee:
            Sanjeeb Sahoo
            Reporter:
            Sanjeeb Sahoo
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: