Continuum

login and password ignored in checkout operation

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Blocker Blocker
  • Resolution: Fixed
  • Affects Version/s: 1.2.2
  • Fix Version/s: 1.3.2 (Beta)
  • Component/s: SCM
  • Labels:
    None
  • Environment:
    Windows, mac, unix
  • Complexity:
    Intermediate
  • Patch Submitted:
    Yes
  • Number of attachments :
    1

Description

This is what I see in continuum.log:

2008-10-01 02:00:04,248 [pool-1-thread-1] INFO action#checkout-project - Checking out project: 'RNP', id: '6' to 'C:\apache\apache-continuum-1.3-SNAPSHOT\target\working-directory\6' with branch/tag .
2008-10-01 02:00:04,405 [pool-1-thread-1] INFO org.apache.continuum.scm.manager.Slf4jScmLogger - Executing: cmd.exe /X /C "svn --non-interactive checkout svn://server.com/RNP/trunk 6"
2008-10-01 02:00:04,405 [pool-1-thread-1] INFO org.apache.continuum.scm.manager.Slf4jScmLogger - Working directory: C:\apache\apache-continuum-1.3-SNAPSHOT\target\working-directory
2008-10-01 02:00:06,998 [pool-1-thread-1] WARN action#checkout-project - Error while checking out the code for project: 'RNP', id: '6' to 'C:\apache\apache-continuum-1.3-SNAPSHOT\target\working-directory\6' with branch/tag .
2008-10-01 02:00:06,998 [pool-1-thread-1] WARN action#checkout-project - Command output: svn: Authorization failed

Authorization failed because cmd.exe is executed with svn WITHOUT --user and --password options.

Why so?

Issue Links

Activity

Hide
Wendy Smoak added a comment -

What steps did you take to add the project to Continuum?

I wonder if the 'use cached credentials' checkbox was checked. If so, Continuum is depending on the credentials already being present.

Show
Wendy Smoak added a comment - What steps did you take to add the project to Continuum? I wonder if the 'use cached credentials' checkbox was checked. If so, Continuum is depending on the credentials already being present.
Hide
Wendy Smoak added a comment -

I can't reproduce this with 1.3-SNAPSHOT r700970 (The 'affects' version on the issue is set to 1.2.1, but the paths in your logs say 1.3-SNAPSHOT, so that's what I tried.)

I added a project by providing the url for the pom, my userid and password, and not checking the 'use cached credentials' checkbox. I see this in the log:

2008-10-01 16:58:04,918 [pool-2-thread-1] INFO org.apache.continuum.scm.manager.Slf4jScmLogger - Executing: /bin/sh -c cd /Users/wsmoak/svn/continuum/continuum/continuum-webapp/target/working-directory && svn --username wsmoak --password '*****' checkout https://example.com/svn/wsmoak/hello/trunk 1

The mailing list is better for questions – please ask on the dev list if you're working with an unreleased version. http://continuum.apache.org/mail-lists.html

Show
Wendy Smoak added a comment - I can't reproduce this with 1.3-SNAPSHOT r700970 (The 'affects' version on the issue is set to 1.2.1, but the paths in your logs say 1.3-SNAPSHOT, so that's what I tried.) I added a project by providing the url for the pom, my userid and password, and not checking the 'use cached credentials' checkbox. I see this in the log: 2008-10-01 16:58:04,918 [pool-2-thread-1] INFO org.apache.continuum.scm.manager.Slf4jScmLogger - Executing: /bin/sh -c cd /Users/wsmoak/svn/continuum/continuum/continuum-webapp/target/working-directory && svn --username wsmoak --password '*****' checkout https://example.com/svn/wsmoak/hello/trunk 1 The mailing list is better for questions – please ask on the dev list if you're working with an unreleased version. http://continuum.apache.org/mail-lists.html
Hide
Jimmy Conway added a comment -

I have Windows environment. Maybe this matters?

Show
Jimmy Conway added a comment - I have Windows environment. Maybe this matters?
Hide
Jimmy Conway added a comment -

I have this problem for all projects in Windows continuum copy. I use MS SQL Server on Windows.

I add a project with POM.xml upload as a file. It works perfectly on Linux installation. On windows it executes SVN without credentials (login/password).

Show
Jimmy Conway added a comment - I have this problem for all projects in Windows continuum copy. I use MS SQL Server on Windows. I add a project with POM.xml upload as a file. It works perfectly on Linux installation. On windows it executes SVN without credentials (login/password).
Hide
Wendy Smoak added a comment -

What version are you using? (The Affects version on the issue is 1.2.1, but the paths in the log statements you posted originally say 1.3-SNAPSHOT.)

Check the 'About' button in the left hand menu which will show the version and revision.

Show
Wendy Smoak added a comment - What version are you using? (The Affects version on the issue is 1.2.1, but the paths in the log statements you posted originally say 1.3-SNAPSHOT.) Check the 'About' button in the left hand menu which will show the version and revision.
Hide
Jimmy Conway added a comment -

1.3-SNAPSHOT, build number: 701593

This is what I see in 'About' section

Show
Jimmy Conway added a comment - 1.3-SNAPSHOT, build number: 701593 This is what I see in 'About' section
Hide
Bertrand Gressier added a comment -

I have exactly the same thing with continuum 1.2.2.

You must append your project and if you not specified the good account the first time, It doesn't save the login/password. You can change informations but it don't used.
In the command line (see in continuum.log) --username and --password aren't writed

Show
Bertrand Gressier added a comment - I have exactly the same thing with continuum 1.2.2. You must append your project and if you not specified the good account the first time, It doesn't save the login/password. You can change informations but it don't used. In the command line (see in continuum.log) --username and --password aren't writed
Hide
Carlos Sanchez added a comment -

In CONTINUUM-2006 I've found
Looking at the code, seems to me that the information in the project is ignored when checking out for all SCM implementations.

Show
Carlos Sanchez added a comment - In CONTINUUM-2006 I've found Looking at the code, seems to me that the information in the project is ignored when checking out for all SCM implementations.
Hide
Carlos Sanchez added a comment -

Reproduced for the perforce scm in continuum 1.2.2

I think the problem may happen when you add a project without user/password, project fails to checkout, edit project to add user/passwd, continuum doesnt use that information

Show
Carlos Sanchez added a comment - Reproduced for the perforce scm in continuum 1.2.2 I think the problem may happen when you add a project without user/password, project fails to checkout, edit project to add user/passwd, continuum doesnt use that information
Hide
Carlos Sanchez added a comment -

Patch against continuum 1.2.2

Show
Carlos Sanchez added a comment - Patch against continuum 1.2.2
Hide
Olivier Lamy added a comment -

Move to fix version 1.3.1 as we need here a new maven-scm version.
Carlos your patch looks correct. You don't have karma here ??

Show
Olivier Lamy added a comment - Move to fix version 1.3.1 as we need here a new maven-scm version. Carlos your patch looks correct. You don't have karma here ??
Hide
Carlos Sanchez added a comment -

i have, but not sure if it could break something else

Show
Carlos Sanchez added a comment - i have, but not sure if it could break something else
Hide
Emmanuel Venisse added a comment -

Applied in r.752948

Show
Emmanuel Venisse added a comment - Applied in r.752948

People

Vote (2)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: