atlas-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apoorv Naik (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ATLAS-1543) REST API calls return HTML for 401
Date Thu, 09 Feb 2017 18:45:41 GMT
Apoorv Naik created ATLAS-1543:
----------------------------------

             Summary: REST API calls return HTML for 401
                 Key: ATLAS-1543
                 URL: https://issues.apache.org/jira/browse/ATLAS-1543
             Project: Atlas
          Issue Type: Bug
    Affects Versions: 0.8-incubating
            Reporter: Apoorv Naik
            Assignee: Apoorv Naik
             Fix For: 0.8-incubating


Currently if I make an unauthorized call to any REST endpoint, I'm presented with a HTML blob


{code:html}
html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>Error 401 Full authentication is required to access this resource</title>
</head>
<body><h2>HTTP ERROR 401</h2>
<p>Problem accessing /api/atlas/v2/types/typdefs/headers. Reason:
<pre>    Full authentication is required to access this resource</pre></p><hr><i><small>Powered
by Jetty://</small></i><hr/>

</body>
</html>

{code}

Instead the API should return a meaningful JSON with error information.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message