You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apex.apache.org by "devendra tagare (JIRA)" <ji...@apache.org> on 2017/03/24 23:52:41 UTC
[jira] [Created] (APEXCORE-682) Not able to view application from a
web service when a user specified launch path is provided
devendra tagare created APEXCORE-682:
----------------------------------------
Summary: Not able to view application from a web service when a user specified launch path is provided
Key: APEXCORE-682
URL: https://issues.apache.org/jira/browse/APEXCORE-682
Project: Apache Apex Core
Issue Type: Bug
Reporter: devendra tagare
Assignee: devendra tagare
Hi,
I was trying to launch an apex app from a user defined path by specifying dt.attr.APPLICATION_PATH = <some_user_path>
No other user has access to the above path.
The application launch works fine but I am not able to get the application info from a webservice since the retrieveWebServicesInfo in StramAgent is failing on an AccessControlException for the permissions.json file which is not in use.
Since this file is not a mandatory file, we can catch an IOException here which would encompass the existing FileNotFoundException & AccessControlException and let the call return the StramWebServicesInfo object.
Proposed change :
try (FSDataInputStream is = fileSystem.open(new Path(appPath, "permissions.json"))) {
permissionsInfo = new JSONObject(IOUtils.toString(is));
} catch (IOException ex) {
// ignore if file is not found
LOG.info("Exception in accessing the permissions file", ex);
}
[~PramodSSImmaneni] - does this approach look fine ?
Thanks,
Dev
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)