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

Hudson commented on AMBARI-8202:
--------------------------------

SUCCESS: Integrated in Ambari-branch-1.7.0-docker #114 (See 
[https://builds.apache.org/job/Ambari-branch-1.7.0-docker/114/])
AMBARI-8202 - Views: Instance Data API doesn't work in threads (tbeerbower) 
(tbeerbower: 
http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=d9a742d3f0a0a240f13c09159329a0c9a1e7e29a)
* 
ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariServer.java


> Views: Instance Data API doesn't work in threads
> ------------------------------------------------
>
>                 Key: AMBARI-8202
>                 URL: https://issues.apache.org/jira/browse/AMBARI-8202
>             Project: Ambari
>          Issue Type: Bug
>            Reporter: Tom Beerbower
>            Assignee: Tom Beerbower
>             Fix For: 1.7.0
>
>
> Views instance data does not work when getting data in another thread through 
> ViewContext.getInstanceData.   It returns empty Map (in the main thread it 
> works ok).
> This happens because the instance data is scoped to the current user.  The 
> security context is not propagated to the spawned thread so the current user 
> is unknown when the call to getInstanceData is made.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to