Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu Dockerfile passes incorrect java user preferences path to image #356

Open
NCMEC-daavendasora opened this issue Sep 8, 2022 · 0 comments

Comments

@NCMEC-daavendasora
Copy link

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:

  1. cd docker-is/dockerfiles/ubuntu/is
  2. 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" .
  3. docker run --name wso2is-6.0.0 --rm -i -t wso2/wso2is:6.0.0-ubuntu
  4. docker exec -it wso2is-6.0.0 bash
  5. 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
    
  6. 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant