Bug #7214
closedMetacat overwrites the deployDir property
0%
Description
On a fresh installation of Metacat, the application.deployDir
property value gets overwritten. This is undesirable for Docker deployments where the Metacat Admin UI is not used for configuration, but rather the metacat.properties
file is pre-configured for deployment. Fix this. It looks to be happening in the PropertiesAdmin.configureProperties()
method:
PropertyService.setPropertyNoPersist("application.deployDir", SystemUtil.discoverDeployDir(request));
Look at the consequences of not calling discoverDeployDir()
and perhaps remove this. Needs review.
Related issues
Updated by Jing Tao about 7 years ago
- Is duplicate of Bug #7211: Metacat sets a wrong default value for the deploy path during the totally fresh installation added
Updated by Jing Tao about 7 years ago
- Status changed from New to Closed
The issue turns out to be Tomcat 8 has change the format of current path.
In Tomcat 7, it was /opt/local/share/java/tomcat7/webapps/metacat/.
But in Tomcat 8, it is /opt/local/share/java/tomcat8/webapps/metacat
So the fancy pattern match doesn't work.
Since we just want to remove the context part, I used the old lastIndexOf and substring method in the String class. It worked well.