You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@slider.apache.org by "Sumit Mohanty (JIRA)" <ji...@apache.org> on 2014/09/26 08:55:34 UTC

[jira] [Created] (SLIDER-459) Environment variable for containers do not expand correctly

Sumit Mohanty created SLIDER-459:
------------------------------------

             Summary: Environment variable for containers do not expand correctly
                 Key: SLIDER-459
                 URL: https://issues.apache.org/jira/browse/SLIDER-459
             Project: Slider
          Issue Type: Bug
          Components: agent-provider
    Affects Versions: Slider 0.50
            Reporter: Sumit Mohanty
            Assignee: Sumit Mohanty
             Fix For: Slider 0.60


There is no guarantee that @set AGENT_WORK_ROOT=%PWD% will work as there is no defined order for environment variable expansion. If %PWD% is expanded, in launch_container.cmd, after the line containing @set AGENT_WORK_ROOT=%PWD% then AGENT_WORK_ROOT will be set to null. Looks like the environment variables defined in ApplicationConstants.Environment should not be assigned to other environment variables as the order of iterating through is undefined.

Slider should change the code to directly use the variables in ApplicationConstants.Environment along with moving to using ApplicationConstants.LOG_DIR_EXPANSION_VAR.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)