ASF Bugzilla – Attachment 20359 Details for
Bug 42678
docBase ignored even if its not a subdir of appBase
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
fix docBase starting with same prefix as appBase
tomcat-subdocbase.patch (text/plain), 857 bytes, created by
J
on 2007-06-15 15:09:06 UTC
(
hide
)
Description:
fix docBase starting with same prefix as appBase
Filename:
MIME Type:
Creator:
J
Created:
2007-06-15 15:09:06 UTC
Size:
857 bytes
patch
obsolete
>Index: trunk/java/org/apache/catalina/startup/HostConfig.java >=================================================================== >--- trunk/java/org/apache/catalina/startup/HostConfig.java (Revision 547780) >+++ trunk/java/org/apache/catalina/startup/HostConfig.java (Arbeitskopie) >@@ -607,7 +607,7 @@ > docBase = new File(appBase(), context.getDocBase()); > } > // If external docBase, register .xml as redeploy first >- if (!docBase.getCanonicalPath().startsWith(appBase().getAbsolutePath())) { >+ if (!docBase.getCanonicalPath().startsWith(appBase().getAbsolutePath() + File.separator)) { > isExternal = true; > deployedApp.redeployResources.put > (contextXml.getAbsolutePath(), new Long(contextXml.lastModified()));
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 42678
: 20359