You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apex.apache.org by "Sanjay M Pujare (JIRA)" <ji...@apache.org> on 2017/08/05 14:29:00 UTC

[jira] [Created] (APEXCORE-775) StramClientUtils.getApexDFSRootDir() incorrectly sets DT_DFS_ROOT_DIR in the configuration object

Sanjay M Pujare created APEXCORE-775:
----------------------------------------

             Summary: StramClientUtils.getApexDFSRootDir() incorrectly sets DT_DFS_ROOT_DIR in the configuration object
                 Key: APEXCORE-775
                 URL: https://issues.apache.org/jira/browse/APEXCORE-775
             Project: Apache Apex Core
          Issue Type: Bug
            Reporter: Sanjay M Pujare
            Assignee: Sanjay M Pujare


In StramClientUtils.getApexDFSRootDir method there is a call to evalDFSRootDir which does the following:

```
      if (userShortName != null && dfsRootDir.contains(DT_DFS_USER_NAME)) {
        dfsRootDir = dfsRootDir.replace(DT_DFS_USER_NAME, userShortName);
        conf.set(DT_DFS_ROOT_DIR, dfsRootDir);
      }
```

i.e. it writes in the conf object to property DT_DFS_ROOT_DIR although the caller was querying APEX_APP_DFS_ROOT_DIR .

2 issues with this:
- When caller is calling getApexDFSRootDir the code has no business touching DT_DFS_ROOT_DIR

- a single value for APEX_APP_DFS_ROOT_DIR should not be written in the conf object if the conf object is shared by a multi-user program that is monitoring multiple apps for multiple users



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)