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

Hudson commented on AMBARI-24152:
---------------------------------

FAILURE: Integrated in Jenkins build Ambari-branch-2.6 #711 (See 
[https://builds.apache.org/job/Ambari-branch-2.6/711/])
AMBARI-24152 Ambari Workflow Manager (wfmanager) sends plaintext content 
(github: 
[https://gitbox.apache.org/repos/asf?p=ambari.git&a=commit&h=4afe5b518998ac54e6209027f89b508c3b18d9a5])
* (edit) contrib/views/wfmanager/src/main/resources/ui/app/services/user-info.js
* (edit) 
contrib/views/wfmanager/src/main/java/org/apache/oozie/ambari/view/OozieProxyImpersonator.java
* (edit) contrib/views/wfmanager/src/main/resources/ui/yarn.lock
* (edit) contrib/views/wfmanager/src/main/resources/ui/package.json


> Ambari Workflow Manager (wfmanager) sends plaintext content over API. JSON is 
> expected.
> ---------------------------------------------------------------------------------------
>
>                 Key: AMBARI-24152
>                 URL: https://issues.apache.org/jira/browse/AMBARI-24152
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-views, contrib
>    Affects Versions: 2.6.2, 2.7.0
>            Reporter: Sean Roberts
>            Assignee: venkat
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 2h 40m
>  Remaining Estimate: 0h
>
> The Ambari API is expected to respond with JSON content.
> However the wfmanager's /resources/proxy/getCurrentUserName returns plaintext 
> content.
> This is breaking Knox proxying of the UI and is likely to break other 
> proxies/clients who expect the API to respond with JSON.
> https://github.com/apache/ambari/blob/trunk/contrib/views/wfmanager/src/main/java/org/apache/oozie/ambari/view/OozieProxyImpersonator.java#L154-L158
> Full API url would be:
> /api/v1/views/WORKFLOW_MANAGER/versions/1.0.0/instances/instance_name/resources/proxy/getCurrentUserName
> How to reproduce:
> # GET 
> http://hostname:8080/api/v1/views/WORKFLOW_MANAGER/versions/1.0.0/instances/instance_name/resources/proxy/getCurrentUserName
> # Notice that it responds with a username only which is plaintext not JSON.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to