Hi, Artifactory is throwing a NullPointerException when receiving a plain HTTP GET request from a user with the wrong password. The error is returned back as an HTML, which confuses my tool because it thinks it got the right file back. Has anybody seen this before? This is Artifactory Pro version 4.7.7.
Returned blob:
=================================================
<!DOCTYPE html><html><head><title>Apache Tomcat/8.0.32 - Error
report</title><style type="text/css">H1
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
H2
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
H3
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
BODY
{font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
P
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
{color : black;}A.name {color : black;}.line {height: 1px;
background-color: #525D76; border: none;}</style> </head><body><h1>HTTP
Status 500 - </h1><div class="line"></div><p><b>type</b> Exception
report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>The
server encountered an internal error that prevented it from fulfilling
this
request.</u></p><p><b>exception</b></p><pre>java.lang.NullPointerException
org.artifactory.webapp.servlet.authentication.ArtifactoryBasicAuthenticationEntryPoint.isAlreadyAuthedNuGetRequest(ArtifactoryBasicAuthenticationEntryPoint.java:152)
org.artifactory.webapp.servlet.authentication.ArtifactoryBasicAuthenticationEntryPoint.sendErrorResponseToClient(ArtifactoryBasicAuthenticationEntryPoint.java:73)
org.artifactory.webapp.servlet.authentication.ArtifactoryBasicAuthenticationEntryPoint.commence(ArtifactoryBasicAuthenticationEntryPoint.java:61)
org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:195)
org.artifactory.webapp.servlet.authentication.ArtifactoryBasicAuthenticationFilter.doFilter(ArtifactoryBasicAuthenticationFilter.java:82)
org.artifactory.webapp.servlet.authentication.ArtifactoryAuthenticationFilterChain.doFilter(ArtifactoryAuthenticationFilterChain.java:160)
org.artifactory.webapp.servlet.AccessFilter.authenticateAndExecute(AccessFilter.java:262)
org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:193)
org.artifactory.webapp.servlet.AccessFilter.doFilter(AccessFilter.java:155)
org.artifactory.webapp.servlet.RequestFilter.doFilter(RequestFilter.java:65)
org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:109)
</pre><p><b>note</b> <u>The full stack trace of the root cause is
available in the Apache Tomcat/8.0.32 logs.</u></p><hr
class="line"><h3>Apache Tomcat/8.0.32</h3></body></html>
=================================================
Thanks,
--
Qnective
Alex Silva
Software Engineer
Thurgauerstrasse 54 | 8050 Zürich | Switzerland
http://www.qnective.com/ | [email protected]
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San Francisco, CA to explore cutting-edge tech and listen to tech luminaries present their vision of the future. This family event has something for everyone, including kids. Get more information and register today. http://sdm.link/attshape
_______________________________________________ Artifactory-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/artifactory-users
