NullPointerException (HTTP 500) when querying Artifactory API

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

NullPointerException (HTTP 500) when querying Artifactory API

rory
I'm issuing a GET request to the Folder Info endpoint using Basic authentication, and get an HTTP 500 error as a result, with the following stack trace. Is this a bug in Artifactory, or is the request incorrect?

Raw Request:

GET https://esharesearch.artifactoryonline.com/esharesearch/api/storage/docker-local HTTP/1.1
Authorization: Basic <encoded username:password>
Host: esharesearch.artifactoryonline.com
Connection: Keep-Alive

Raw Response:
HTTP/1.1 500 Internal Server Error
Content-Language: en
Content-Type: text/html;charset=utf-8
Date: Wed, 25 Nov 2015 03:10:53 GMT
Server: Artifactory/4.3.0
X-Artifactory-Id: aolprod2d.prod-use1.jfrog.local-esharesearch
X-Node: nginx1e.prod-use1
Content-Length: 2518
Connection: keep-alive

java.lang.NullPointerException
	org.artifactory.webapp.servlet.authentication.ArtifactoryBasicAuthenticationEntryPoint.isAlreadyAuthedNuGetRequest(ArtifactoryBasicAuthenticationEntryPoint.java:114)
	org.artifactory.webapp.servlet.authentication.ArtifactoryBasicAuthenticationEntryPoint.sendErrorResponseToClient(ArtifactoryBasicAuthenticationEntryPoint.java:69)
	org.artifactory.webapp.servlet.authentication.ArtifactoryBasicAuthenticationEntryPoint.commence(ArtifactoryBasicAuthenticationEntryPoint.java:57)
	org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:195)
	org.artifactory.webapp.servlet.authentication.ArtifactoryBasicAuthenticationFilter.doFilter(ArtifactoryBasicAuthenticationFilter.java:91)
	org.artifactory.webapp.servlet.authentication.ArtifactoryAuthenticationFilterChain.doFilter(ArtifactoryAuthenticationFilterChain.java:146)
	org.artifactory.webapp.servlet.AccessFilter.authenticateAndExecute(AccessFilter.java:239)
	org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:189)
	org.artifactory.webapp.servlet.AccessFilter.doFilter(AccessFilter.java:155)
	org.artifactory.webapp.servlet.RequestFilter.doFilter(RequestFilter.java:61)
	org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:116)