Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-352

ServletContainerImpl->getDeploymentByPath for "/" context path

    XMLWordPrintable

Details

    Description

      Application is deployed to context "/" in Wildfly.

      In "undertow-servlet-1.0.15.Final.jar"
      in method
      ServletContainerImpl->addDeployment
      in row

      deploymentsByPath.put(dep.getContextPath(), deploymentManager);
      

      dep.getContextPath() returns the string ""
      and method
      ServletContainerImpl->getDeploymentByPath
      in row

      return deploymentsByPath.get("");
      

      returns our deployment.

      In "undertow-servlet-1.1.0.Final.jar"
      in method
      ServletContainerImpl->addDeployment
      in row

      deploymentsByPath.put(dep.getContextPath(), deploymentManager);
      

      dep.getContextPath() returns the string "/"
      and method
      ServletContainerImpl->getDeploymentByPath
      in row

      return deploymentsByPath.get("");
      

      returns NULL.

      So it's impossible to get deployment with root context.
      Change to

      return deploymentsByPath.get("/");
      

      will fix this.

      Attachments

        Activity

          People

            sdouglas1@redhat.com Stuart Douglas
            stanislav1125 Stanislav Grushevskiy (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: