[
https://issues.apache.org/jira/browse/AMBARI-24152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16752292#comment-16752292
]
Robert Levas commented on AMBARI-24152:
---------------------------------------
[~hegand]...
{quote}Hi, could you please give some update about this issue? As i can see,
git pull requests were rejected. Thanks{quote}
I am surprised that I did not comment on what the issue was. Since it was over
7 months ago, I am not sure, but the patch must have broken something and
someone must have asked me to revert it.
> 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 10m
> 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)