apex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pramod Immaneni (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (APEXCORE-682) Not able to view application from a web service when a user specified launch path is provided
Date Mon, 26 Jun 2017 17:04:00 GMT

     [ https://issues.apache.org/jira/browse/APEXCORE-682?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Pramod Immaneni resolved APEXCORE-682.
--------------------------------------
       Resolution: Fixed
    Fix Version/s: 3.7.0

> 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)

Mime
View raw message