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

ServletContext.getRealPath(".") returns null on Windows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 1.1.Beta4
    • 1.1.Beta2
    • Servlet
    • None

    Description

      Usually servletContext.getRealPath(".") is used to determine the servlet context root directory of the application.
      When using the FileResourceManager in a DeploymentInfo this call returns null because of the "file.getCanonicalFile().getName().equals(file.getName())" check.
      When using servletContext.getRealPath ("") it works as expected, but that leads to problems in other AppServers.

      Attachments

        Activity

          People

            sdouglas1@redhat.com Stuart Douglas
            phloc Philip Helger (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: