Description:
java.util.prefs.userRoot should simply point to ${USER_HOME}. Specifying ${USER_HOME}.java/.userPrefs is redundant and causes java.util.prefs.userRoot to be defined as ${USER_HOME}.java/.userPrefs/.java/.userPrefs
Affected Product Version:
6.0.0.1
Steps to reproduce:
cd docker-is/dockerfiles/ubuntu/is
docker build -t wso2/wso2is:6.0.0-ubuntu --build-arg "WSO2_SERVER_DIST_URL=https://wso2.org/path/to/wso2is-6.0.0.zip" .
docker run --name wso2is-6.0.0 --rm -i -t wso2/wso2is:6.0.0-ubuntu
docker exec -it wso2is-6.0.0 bash
ls -la /home/wso2carbon/.java/.userPrefs/ the output will be:
drwxr-xr-x 1 wso2carbon wso2 4096 Sep 8 07:04 .
drwxr-xr-x 1 wso2carbon wso2 4096 Sep 8 06:52 ..
drwxr-xr-x 3 wso2carbon wso2 4096 Sep 8 07:04 .java
ls -la /home/wso2carbon/.java/.userPrefs/.java/.userPrefs/ produces this output:
drwx------ 2 wso2carbon wso2 4096 Sep 8 07:04 .
drwxr-xr-x 3 wso2carbon wso2 4096 Sep 8 07:04 ..
-rw------- 1 wso2carbon wso2 0 Sep 8 07:04 .user.lock.wso2carbon
-rw------- 1 wso2carbon wso2 0 Sep 8 07:04 .userRootModFile.wso2carbon
Related Issues:
#355 Location to store java preferences is not used by Alpine & Centos images
Description:
java.util.prefs.userRoot should simply point to ${USER_HOME}. Specifying
${USER_HOME}.java/.userPrefsis redundant and causesjava.util.prefs.userRootto be defined as${USER_HOME}.java/.userPrefs/.java/.userPrefsAffected Product Version:
6.0.0.1
Steps to reproduce:
cd docker-is/dockerfiles/ubuntu/isdocker build -t wso2/wso2is:6.0.0-ubuntu --build-arg "WSO2_SERVER_DIST_URL=https://wso2.org/path/to/wso2is-6.0.0.zip" .docker run --name wso2is-6.0.0 --rm -i -t wso2/wso2is:6.0.0-ubuntudocker exec -it wso2is-6.0.0 bashls -la /home/wso2carbon/.java/.userPrefs/the output will be:ls -la /home/wso2carbon/.java/.userPrefs/.java/.userPrefs/produces this output:Related Issues:
#355 Location to store java preferences is not used by Alpine & Centos images