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

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

XMLWordPrintable

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

      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.

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

                Created:
                Updated:
                Resolved: