Details
-
Bug
-
Resolution: Fixed
-
Low
-
2.8
-
None
-
None
Description
In the Crowd standalone distribution, we have files like apache-tomcat/conf/Catalina/localhost/demo.xml which contain content like:
<Context path="/demo" docBase="../../demo-webapp" />
We also have a file like apache-tomcat/conf/Catalina/localhost/openidclient.xml which has
<Context path="/demo" docBase="../../crowd-openidclient-webapp" />
Notice the completely incorrect path="/demo" in the last example.. and yet it still works.
That's because the path attribute
must only be used when statically defining a Context in server.xml. In all other circumstances, the path will be inferred from the filenames used for either the .xml context file or the docBase.