Is there a reason that Jira returns 200 empty list when no user is logged in? Wouldn't 401 be a more appropriate response code?
Some libraries rely on the response code being correct to do transparent authentication but they cannot guess that this 200 [] is actually a 401, case in point OkHttp.
@Jens BjerreWelcome
To add to @Niranjan points, you can read this KB article to learn more - https://confluence.atlassian.com/adminjiraserver/allowing-anonymous-access-to-your-project-938847186.html
Hi,
Not sure but what I could think of is that the code 200 indicates that the request has succeeded. It may or may not return empty results. There may be projects that can have open access (which may not need authentication) and in such cases it is not about authentication. While the response 401 code says that the request is not complete as it needs authentication, but doesn't have a valid one.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.