Closed tom-vandepoele closed 3 years ago
Hi Tom
This really should be fixed upstream in the Share docker image, rather than from within the SDK.
Can I ask that you open an issue on https://github.com/Alfresco/share ?
Essentially it should be fixed here: https://github.com/Alfresco/share/blob/master/packaging/docker/substituter.sh#L19
I'm submitting a ... (check one with "x")
Current Behavior
Error during startup of share:
/usr/local/tomcat/shared/classes/alfresco/substituter.sh: line 19: [: !=: unary operator expected
Possible Solution
add quotes to line 19 of substituter.sh
if [ $CSRF_FILTER_REFERER != "" ] && [ $CSRF_FILTER_ORIGIN != "" ]; then
toif [ "$CSRF_FILTER_REFERER" != "" ] && [ "$CSRF_FILTER_ORIGIN" != "" ]; then
Steps to Reproduce (for bugs)
Startup project with SDK4.0
Your Environment
Context
share-config-custom.xml not being properly updated with CSRF filter policy
Workaround
Basically copy a good version of this file into the docker image:
docker cp docker_<project>-share_1:/usr/local/tomcat/shared/classes/alfresco/substituter.sh .
COPY substituter.sh /usr/local/tomcat/shared/classes/alfresco/substituter.sh