You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2016/10/20 07:00:19 UTC

[Bug 60280] New: File(".").getCanonicalPath() in Tomcat 8 and Ubuntu 16.04

https://bz.apache.org/bugzilla/show_bug.cgi?id=60280

            Bug ID: 60280
           Summary: File(".").getCanonicalPath() in Tomcat 8 and Ubuntu
                    16.04
           Product: Tomcat 8
           Version: 8.5.6
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: scheiber@unitbv.ro

Created attachment 34392
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=34392&action=edit
Servlet calling File(".").getCanonicalPath()

I think that the call File(".").getCanonicalPath() within apache-tomcat-8.5.6
and Ubuntu 16.04 gives a bad result: it does not give the path to a folder of
the Web server. This is not the case in glassfish or jetty and even in
apache-tomcat-8.5.6 and windows 8.1.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 60280] File(".").getCanonicalPath() in Tomcat 8 and Ubuntu 16.04

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60280

Remy Maucherat <re...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|NEW                         |RESOLVED

--- Comment #1 from Remy Maucherat <re...@apache.org> ---
Using java.io with a relative path like this will likely produce random
results, while the Servlet API provides APIs for this. Please investigate your
issue on the user list, bugzilla is not intended for support.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org