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

Tom Beerbower updated AMBARI-8202:
----------------------------------
    Description: 
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.

  was:
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).



> 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