ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vitaly Brodetskyi (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMBARI-5052) Proxied API requests do not return error details
Date Wed, 12 Mar 2014 16:27:42 GMT

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

Vitaly Brodetskyi updated AMBARI-5052:
--------------------------------------

    Description: 
When invoking Falcon API directly, error messages are returned in the body.
{code}
[falcon@c6402 tmp]$ curl -i -uadmin:admin -d @dummy.xml -H 'Content-Type: text/xml' -X POST
'http://c6402.ambari.apache.org:15000/api/entities/submit/cluster?user.name=ambari-qa'
HTTP/1.1 400 Bad Request
Set-Cookie: hadoop.auth=u=ambari-qa&p=ambari-qa&t=simple&e=1394198276685&s=1Vktza5jyxYPcrpJVSDvok3lriQ=;
Path=/; Expires=Fri, 07-Mar-2014 13:17:56 GMT; HttpOnly
Content-Type: text/xml
Content-Length: 307
Server: Jetty(6.1.26)

<?xml version="1.0" encoding="UTF-8" standalone="yes"?><result><status>FAILED</status><message>Invalid
storage server or port: http://c6402.ambari.apache.org:11000/oozi
Exception creating FileSystem:No FileSystem for scheme: http</message><requestId>ec86dfbf-4e84-4909-8452-041c3c3f36c7</requestId></result>
{code}

When going through Ambari proxy, it only returns 400 Bad Request.
{code}
curl -i -uadmin:admin -d @dummy.xml -H 'Content-Type: text/xml' -X POST 'http://c6401.ambari.apache.org:8080/proxy?url=http://c6402.ambari.apache.org:15000/api/entities/submit/cluster?user.name=ambari-qa'
HTTP/1.1 400 Bad Request
Set-Cookie: AMBARISESSIONID=ypwgf9i05mrjajjcn0gk9gu1;Path=/
Content-Type: text/plain;charset=ISO-8859-1
Content-Length: 47
Server: Jetty(7.6.7.v20120910)

{
  "status": 400,
  "message": "Bad Request"
}
{code}

> Proxied API requests do not return error details
> ------------------------------------------------
>
>                 Key: AMBARI-5052
>                 URL: https://issues.apache.org/jira/browse/AMBARI-5052
>             Project: Ambari
>          Issue Type: Task
>          Components: agent
>    Affects Versions: 1.5.1
>            Reporter: Vitaly Brodetskyi
>            Assignee: Vitaly Brodetskyi
>            Priority: Critical
>             Fix For: 1.5.1
>
>         Attachments: AMBARI-5052.patch
>
>
> When invoking Falcon API directly, error messages are returned in the body.
> {code}
> [falcon@c6402 tmp]$ curl -i -uadmin:admin -d @dummy.xml -H 'Content-Type: text/xml' -X
POST 'http://c6402.ambari.apache.org:15000/api/entities/submit/cluster?user.name=ambari-qa'
> HTTP/1.1 400 Bad Request
> Set-Cookie: hadoop.auth=u=ambari-qa&p=ambari-qa&t=simple&e=1394198276685&s=1Vktza5jyxYPcrpJVSDvok3lriQ=;
Path=/; Expires=Fri, 07-Mar-2014 13:17:56 GMT; HttpOnly
> Content-Type: text/xml
> Content-Length: 307
> Server: Jetty(6.1.26)
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?><result><status>FAILED</status><message>Invalid
storage server or port: http://c6402.ambari.apache.org:11000/oozi
> Exception creating FileSystem:No FileSystem for scheme: http</message><requestId>ec86dfbf-4e84-4909-8452-041c3c3f36c7</requestId></result>
> {code}
> When going through Ambari proxy, it only returns 400 Bad Request.
> {code}
> curl -i -uadmin:admin -d @dummy.xml -H 'Content-Type: text/xml' -X POST 'http://c6401.ambari.apache.org:8080/proxy?url=http://c6402.ambari.apache.org:15000/api/entities/submit/cluster?user.name=ambari-qa'
> HTTP/1.1 400 Bad Request
> Set-Cookie: AMBARISESSIONID=ypwgf9i05mrjajjcn0gk9gu1;Path=/
> Content-Type: text/plain;charset=ISO-8859-1
> Content-Length: 47
> Server: Jetty(7.6.7.v20120910)
> {
>   "status": 400,
>   "message": "Bad Request"
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message