[ https://issues.apache.org/jira/browse/APEXCORE-682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15941376#comment-15941376 ]
Pramod Immaneni commented on APEXCORE-682: ------------------------------------------ Dev to your earlier question in the JIRA "Pramod Immaneni - does this approach look fine ?", based on your description, on the surface it looks fine. However, I need to look deeper into the PR to make a final determination. > 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)