https://issues.apache.org/bugzilla/show_bug.cgi?id=54708

            Bug ID: 54708
           Summary: Use base file name ("ROOT") as the work directory for
                    the default webapp instead of "_"
           Product: Tomcat 8
           Version: trunk
          Hardware: PC
                OS: Windows XP
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: knst.koli...@gmail.com
    Classification: Unclassified

[1] http://tomcat.apache.org/tomcat-7.0-doc/config/context.html#Naming

There is documentation [1] on relation between context name, context path,
context version and the base file name of a Context.

There is one place where Tomcat 7 does not follow [1]:
naming of javax.servlet.context.tempdir directory (aka work directory) for the
application. It uses "_" for the default application.

I propose to replace that with "ROOT",
a) for consistency
b) to avoid conflict if someone deploys web application named "_", e.g. in
pursue of short URLs


BTW, if someone is really facing such conflict, it could be remedied by
specifying workDir attribute on a <Context>. (Though a bit hard to make the
path unique without knowing the engine and host names).

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

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

Reply via email to