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)

Reply via email to