You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apex.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/06/26 17:14:00 UTC

[jira] [Commented] (APEXCORE-682) Not able to view application from a web service when a user specified launch path is provided

    [ https://issues.apache.org/jira/browse/APEXCORE-682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16063433#comment-16063433 ] 

ASF GitHub Bot commented on APEXCORE-682:
-----------------------------------------

Github user asfgit closed the pull request at:

    https://github.com/apache/apex-core/pull/495


> 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
>             Fix For: 3.7.0
>
>
> 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.4.14#64029)