[JIRA] Commented: (JENKINS-2073) SVN - Change credential does not work in project

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

[JIRA] Commented: (JENKINS-2073) SVN - Change credential does not work in project

JIRA noreply@jenkins-ci.org

    [ http://issues.jenkins-ci.org/browse/JENKINS-2073?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=145818#comment-145818 ]

Daniel TISCHER commented on JENKINS-2073:
-----------------------------------------

Our SVN server logs reports that Jenkins attempts login with username 'qaOWQ8w3-byHudson', so we created that user with full rights on the server, used it to configure the job and it worked.

In hudson.scm.SubversionSCM.xml, I then noticed the string 'QA Multisite Repository' in place of the commonly expected 'Subversion Respository'.

Now I edit hudson.scm.SubversionSCM.xml, putting there my username and password (base64 encoded) with our custom 'QA Multisite Repository' security realm (following the url in the <string> tag) and it works. So that was the problem.

Don't forget to delete the job local subversion.credentials and restart Jenkins after any change.

> SVN - Change credential does not work in project
> ------------------------------------------------
>
>                 Key: JENKINS-2073
>                 URL: http://issues.jenkins-ci.org/browse/JENKINS-2073
>             Project: Jenkins
>          Issue Type: Bug
>          Components: subversion
>    Affects Versions: current
>         Environment: Platform: All, OS: All
>            Reporter: riftware
>            Priority: Critical
>
> If  a project that has a credential that has read only access and you try to
> change the credentials for the svn repository to an alternate set with
> read/write you receive an error as below.   Please see message from Kohsuke below:
> From: Kohsuke Kawaguchi [mailto:[hidden email]]
> Sent: Monday, July 14, 2008 7:46 PM
> To: [hidden email]
> Subject: Re: Change credentials problem
> OK.
> I guess the problem is that when I ask svnkit to test the connection, it doesn't
> try anything that requires the write access, so it never gets to the point where
> it needs a credential.
> Hmm.
> Can you file this as an issue? I guess we could let Hudson store it anyway so
> that it's available when Hudson actually gets around doing some write operation.
> Andrew Chandler wrote:
> > I'm having trouble changing the login credentials in hudson for a
> > project to one that actually has write (tagging) capability to the
> > repository. Every time I follow the link in the little help text to change the
> credentials I get this error:
> > title
> > search
> >  
> >  
> >     *
> >     *
> >     *
> >     *
> >     *
> >     *
> >     *
> >     *
> >     *
> > *
> >  
> >   andy | logout
> > Hudson DISABLE AUTO REFRESH
> >  
> > Error
> >  
> > No authentication was attemped.
> > FAILED: svn: Operation cancelled
> >  
> > org.tmatesoft.svn.core.SVNCancelException: svn: Operation cancelled  
> > at
> > hudson.scm.SubversionSCM$DescriptorImpl.doPostCredential(SubversionSCM
> > .java:1173)  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > Method)  at
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j
> > ava:39)
> >  at
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
> > orImpl.java:25)  at java.lang.reflect.Method.invoke(Method.java:597)
> >  at
> > org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:103
> > )  at org.kohsuke.stapler.Function.bindAndinvoke(Function.java:57)
> >  at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:75)
> >  at
> > org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.j
> > ava:30)  at org.kohsuke.stapler.Stapler.invoke(Stapler.java:440)
> >  at org.kohsuke.stapler.MetaClass$9.doDispatch(MetaClass.java:263)
> >  at
> > org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.j
> > ava:30)  at org.kohsuke.stapler.Stapler.invoke(Stapler.java:440)
> >  at org.kohsuke.stapler.Stapler.invoke(Stapler.java:361)
> >  at org.kohsuke.stapler.Stapler.service(Stapler.java:121)
> >  at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
> >  at
> > org.apache.catalina.core.ApplicationFilterChain.servletService(Applica
> > tionFilterChain.java:411)
> >  at
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appli
> > cationFilterChain.java:317)
> >  at
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi
> > lterChain.java:198)  at
> > hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:38
> > )  at
> > hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:30)
> >  at
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appli
> > cationFilterChain.java:230)
> >  at
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi
> > lterChain.java:198)  at
> > hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.j
> > ava:52)
> >  at
> > hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityE
> > xceptionFilter.java:28)  at
> > hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.j
> > ava:55)
> >  at
> > org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTran
> > slationFilter.java:166)  at
> > hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.j
> > ava:55)
> >  at
> > org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilt
> > er(AnonymousProcessingFilter.java:125)
> >  at
> > hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.j
> > ava:55)
> >  at
> > hudson.security.BasicAuthenticationFilter.doFilter(BasicAuthentication
> > Filter.java:89)  at
> > hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.j
> > ava:55)  at
> > hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.jav
> > a:44)  at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:82)
> >  at
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appli
> > cationFilterChain.java:230)
> >  at
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi
> > lterChain.java:198)
> >  at
> > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVa
> > lve.java:288)
> >  at
> > org.apache.catalina.core.StandardContextValve.invokeInternal(StandardC
> > ontextValve.java:271)
> >  at
> > org.apache.catalina.core.StandardContextValve.invoke(StandardContextVa
> > lve.java:202)  at
> > org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.ja
> > va:632)  at
> > org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.ja
> > va:577)  at
> > com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
> >  at
> > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.ja
> > va:206)  at
> > org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.ja
> > va:632)  at
> > org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.ja
> > va:577)  at
> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java
> > :571)  at
> > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
> >  at
> > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValv
> > e.java:150)  at
> > org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.ja
> > va:632)  at
> > org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.ja
> > va:577)  at
> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java
> > :571)  at
> > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
> >  at
> > org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272
> > )
> >  at
> > com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAd
> > apter(DefaultProcessorTask.java:637)
> >  at
> > com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProces
> > s(DefaultProcessorTask.java:568)
> >  at
> > com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(
> > DefaultProcessorTask.java:813)
> >  at
> > com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProces
> > sorTask(DefaultReadTask.java:341)
> >  at
> > com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(Defaul
> > tReadTask.java:263)
> >  at
> > com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(Defaul
> > tReadTask.java:214)
> >  at
> > com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask.doTask(
> > PortUnificationPipeline.java:380)  at
> > com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:26
> > 5)
> >  at
> > com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWo
> > rkerThread.java:106)
> >  
> > Hudson ver. 1.233
> >

--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira