jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Continuum
  • CONTINUUM-2006

password is required for the perforce scm plugin error

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Duplicate
  • Affects Version/s: 1.2.2
  • Fix Version/s: None
  • Component/s: SCM
  • Labels:
    None
  • Complexity:
    Intermediate
  • Patch Submitted:
    Yes

Description

Trying to checkout a perforce project I get the "password is required for the perforce scm plugin."

Editing the project info and adding the username and password doesn't help. Looking at the code, seems to me that the information in the project is ignored when checking out for all SCM implementations.

org.apache.maven.scm.ScmException: Exception while executing SCM command.
        at org.apache.maven.scm.command.AbstractCommand.execute(AbstractCommand.java:63)
        at org.apache.maven.scm.provider.perforce.PerforceScmProvider.login(PerforceScmProvider.java:212)
        at org.apache.maven.scm.provider.AbstractScmProvider.login(AbstractScmProvider.java:597)
        at org.apache.maven.scm.provider.AbstractScmProvider.checkOut(AbstractScmProvider.java:403)
        at org.apache.maven.scm.provider.AbstractScmProvider.checkOut(AbstractScmProvider.java:388)
        at org.apache.maven.scm.manager.AbstractScmManager.checkOut(AbstractScmManager.java:395)
        at org.apache.continuum.scm.DefaultContinuumScm.checkout(DefaultContinuumScm.java:79)
        at org.apache.maven.continuum.core.action.CheckoutProjectContinuumAction.execute(CheckoutProjectContinuumAction.java:108)
        at org.apache.maven.continuum.buildcontroller.DefaultBuildController.performAction(DefaultBuildController.java:435)
        at org.apache.maven.continuum.buildcontroller.DefaultBuildController.updateWorkingDirectory(DefaultBuildController.java:418)
        at org.apache.maven.continuum.buildcontroller.DefaultBuildController.build(DefaultBuildController.java:133)
        at org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.executeTask(BuildProjectTaskExecutor.java:50)
        at org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable$1.run(ThreadedTaskQueueExecutor.java:116)
        at edu.emory.mathcs.backport.java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:442)
        at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask.java:178)
        at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1061)
        at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:575)
        at java.lang.Thread.run(Thread.java:619)
Caused by: org.apache.maven.scm.ScmException: password is required for the perforce scm plugin.
        at org.apache.maven.scm.provider.perforce.command.login.PerforceLoginCommand.executeLoginCommand(PerforceLoginCommand.java:63)
        at org.apache.maven.scm.command.login.AbstractLoginCommand.executeCommand(AbstractLoginCommand.java:45)
        at org.apache.maven.scm.command.AbstractCommand.execute(AbstractCommand.java:59)
        ... 17 more

patch to come

Issue Links

duplicates

Bug - A problem which impairs or prevents the functions of the product. CONTINUUM-1909 login and password ignored in checkout operation

  • Blocker - Blocks development and/or testing work, production could not run
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Bug - A problem which impairs or prevents the functions of the product. SCM-415 1.1 requires setting a Perforce password breaking Perforce setup for external authentication

  • Blocker - Blocks development and/or testing work, production could not run
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Carlos Sanchez added a comment - 02/Dec/08 10:26 PM

now I'm stuck because after I got continuum to pass the password the p4 command is failing anyway

p4 -d /Users/csanchez/dev/continuum/continuum-webapp/data/working-directory/1 -u username -P password login username

Perforce password (P4PASSWD) invalid or unset.

If I set P4PASSWD environment variable the command fails anyway

Show
Carlos Sanchez added a comment - 02/Dec/08 10:26 PM now I'm stuck because after I got continuum to pass the password the p4 command is failing anyway
p4 -d /Users/csanchez/dev/continuum/continuum-webapp/data/working-directory/1 -u username -P password login username
Perforce password (P4PASSWD) invalid or unset. If I set P4PASSWD environment variable the command fails anyway
Hide
Permalink
Emmanuel Venisse added a comment - 03/Dec/08 8:44 AM

Carlos,

Is it related to SCM-415 ?

Show
Emmanuel Venisse added a comment - 03/Dec/08 8:44 AM Carlos, Is it related to SCM-415 ?
Hide
Permalink
Carlos Sanchez added a comment - 03/Dec/08 12:18 PM

it may be related but doesnt seem to be the same

Show
Carlos Sanchez added a comment - 03/Dec/08 12:18 PM it may be related but doesnt seem to be the same
Hide
Permalink
Carlos Sanchez added a comment - 04/Dec/08 2:27 PM

this issue has two parts

  • a dupe of CONTINUUM-1909 scm user and passwd not being passed
  • a dupe of SCM-415 maven perforce scm implementation requires password always
Show
Carlos Sanchez added a comment - 04/Dec/08 2:27 PM this issue has two parts
  • a dupe of CONTINUUM-1909 scm user and passwd not being passed
  • a dupe of SCM-415 maven perforce scm implementation requires password always
Hide
Permalink
Olivier Lamy added a comment - 06/Dec/08 3:38 PM

I'm tempted to move to fix version 1.3.x because we need a new scm version here.

Show
Olivier Lamy added a comment - 06/Dec/08 3:38 PM I'm tempted to move to fix version 1.3.x because we need a new scm version here.
Hide
Permalink
Carlos Sanchez added a comment - 06/Dec/08 4:22 PM

Forgot to close as duplicate, please track with the other issues

Show
Carlos Sanchez added a comment - 06/Dec/08 4:22 PM Forgot to close as duplicate, please track with the other issues

People

  • Assignee:
    Carlos Sanchez
    Reporter:
    Carlos Sanchez
Vote (0)
Watch (0)

Dates

  • Created:
    02/Dec/08 9:57 PM
    Updated:
    06/Dec/08 4:22 PM
    Resolved:
    06/Dec/08 4:22 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.