Defect HC-9428

Preview content feature is not working for all content

Software

Customer case Applies to Corrected in
CS0156069 V9.0.1.14 9.0.1.17

Observed behavior

UpdateContentManagedFileInEARImpl fails with an error similar to the following:</p> <p>[06/22/21 9:45:01:209 EST] 00000133 CommerceSrvr E com.ibm.commerce.wc.appmanagement.commands.UpdateStaticEARContentUsingFileSystemCmdImpl validateDirs EARUpdate failed since none of the destination directories is accessible.

Expected behavior

The error is generated because the value ProdFSLocation, set in FileSystem.xml, is not the same on all environments.

Resolution

The code was updated to allow the use of an environment variable to specify the value for ProdFSLocation. If environment variable ProdFSLocation is set, its value will be used. If it is not set, the previous behavior of using the value in FileSystem.xml will be used. Using this environment variable approach allows all environments to specify their own location.