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/03/25 00:15:41 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=15941372#comment-15941372 ] 

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

GitHub user devtagare opened a pull request:

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

    APEXCORE-682 Fix for getting StramWebServicesInfo when app is launche…

    …d from user given path
    
    @PramodSSImmaneni - could you please review and merge

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/devtagare/incubator-apex-core APEXCORE-682

Alternatively you can review and apply these changes as the patch at:

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

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #495
    
----
commit f7338e23bb6c41378cdeffaeee50b6a2a1568c4c
Author: devtagare <de...@gmail.com>
Date:   2017-03-24T23:59:43Z

    APEXCORE-682 Fix for getting StramWebServicesInfo when app is launched from user given path

----


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