[ http://jira.codehaus.org/browse/CONTINUUM-866?page=comments#action_76973 ] Lars Vonk commented on CONTINUUM-866: -------------------------------------
I did some more investigation and saw that this was caused by the MungledHttpsURL.isValid in the plexus-formica dependency used by continuum. It has something to do with the HostnameVerifier that the javax.net.ssl.HttpsURLConnection uses, for more information see http://forum.java.sun.com/thread.jspa?threadID=521779&tstart=0. I noticed that in the latest SNAPSHOT version of plexus-formica (plexus-formica-1.0-beta-12-SNAPSHOT.jar) this is fixed. I upgraded continuum to use this version, but now it returns a 401. If I copy paste the same URL to the pom (in format https://uid:[EMAIL PROTECTED]) in my browser I can see the pom.xml so that means the URL is correct. > Error parsing out SCM url > ------------------------- > > Key: CONTINUUM-866 > URL: http://jira.codehaus.org/browse/CONTINUUM-866 > Project: Continuum > Issue Type: Bug > Components: SCM > Affects Versions: 1.0.3 > Environment: Continuum 1.0.3 running on CentOS 4.2 and jdk1.5.0_06 > Reporter: Marty Tremblay > > When trying to add an M2 POM URL (https://username:[EMAIL > PROTECTED]/repos/v6.x/modules.xml), > I get "[ The URL you provided doesn't exist ]" and the following in the logs: > INFO | jvm 1 | 2006/09/13 09:54:36 | 2006-09-13 09:54:36,469 > [SocketListener0-0] INFO Validator:url-source - An error is > occurred. > INFO | jvm 1 | 2006/09/13 09:54:36 | java.io.IOException: HTTPS hostname > wrong: should be <svn.corp.sitebrand.com> > INFO | jvm 1 | 2006/09/13 09:54:36 | at > sun.net.www.protocol.https.HttpsClient.checkURLSpoofing(HttpsClient.java:490) > INFO | jvm 1 | 2006/09/13 09:54:36 | at > sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:415) > INFO | jvm 1 | 2006/09/13 09:54:36 | at > sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:170) > INFO | jvm 1 | 2006/09/13 09:54:36 | at > sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:913) > INFO | jvm 1 | 2006/09/13 09:54:36 | at > sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:234) > INFO | jvm 1 | 2006/09/13 09:54:36 | at > org.codehaus.plexus.formica.util.MungedHttpsURL.isValid(MungedHttpsURL.java:111) > INFO | jvm 1 | 2006/09/13 09:54:36 | at > org.codehaus.plexus.formica.validation.UrlSourceValidator.validate(UrlSourceValidator.java:63) > INFO | jvm 1 | 2006/09/13 09:54:36 | at > org.codehaus.plexus.formica.DefaultFormManager.validateElements(DefaultFormManager.java:195) > INFO | jvm 1 | 2006/09/13 09:54:36 | at > org.codehaus.plexus.formica.DefaultFormManager.validate(DefaultFormManager.java:124) > INFO | jvm 1 | 2006/09/13 09:54:36 | at > org.codehaus.plexus.formica.DefaultFormManager.validate(DefaultFormManager.java:114) > INFO | jvm 1 | 2006/09/13 09:54:36 | at > org.codehaus.plexus.formica.action.AbstractEntityAction.execute(AbstractEntityAction.java:107) > INFO | jvm 1 | 2006/09/13 09:54:36 | at > org.codehaus.plexus.summit.pipeline.valve.ActionValve.invoke(ActionValve.java:68) > INFO | jvm 1 | 2006/09/13 09:54:36 | at > org.codehaus.plexus.summit.pipeline.AbstractPipeline.invoke(AbstractPipeline.java:70) > INFO | jvm 1 | 2006/09/13 09:54:36 | at > org.codehaus.plexus.summit.Summit.doGet(Summit.java:54) > INFO | jvm 1 | 2006/09/13 09:54:36 | at > org.codehaus.plexus.summit.Summit.doPost(Summit.java:108) > INFO | jvm 1 | 2006/09/13 09:54:36 | at > javax.servlet.http.HttpServlet.service(HttpServlet.java:615) > INFO | jvm 1 | 2006/09/13 09:54:36 | at > javax.servlet.http.HttpServlet.service(HttpServlet.java:688) > INFO | jvm 1 | 2006/09/13 09:54:36 | at > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358) > INFO | jvm 1 | 2006/09/13 09:54:36 | at > org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294) > INFO | jvm 1 | 2006/09/13 09:54:36 | at > org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567) > INFO | jvm 1 | 2006/09/13 09:54:36 | at > org.mortbay.http.HttpContext.handle(HttpContext.java:1807) > INFO | jvm 1 | 2006/09/13 09:54:36 | at > org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525) > INFO | jvm 1 | 2006/09/13 09:54:36 | at > org.mortbay.http.HttpContext.handle(HttpContext.java:1757) > INFO | jvm 1 | 2006/09/13 09:54:36 | at > org.mortbay.http.HttpServer.service(HttpServer.java:879) > INFO | jvm 1 | 2006/09/13 09:54:36 | at > org.mortbay.http.HttpConnection.service(HttpConnection.java:789) > INFO | jvm 1 | 2006/09/13 09:54:36 | at > org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:960) > INFO | jvm 1 | 2006/09/13 09:54:36 | at > org.mortbay.http.HttpConnection.handle(HttpConnection.java:806) > INFO | jvm 1 | 2006/09/13 09:54:36 | at > org.mortbay.http.SocketListener.handleConnection(SocketListener.java:218) > INFO | jvm 1 | 2006/09/13 09:54:36 | at > org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:331) > INFO | jvm 1 | 2006/09/13 09:54:36 | at > org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:520) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira