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)
  • Maven SCM
  • SCM-334

Faulty svn commandline is generated for passwords containing special chars

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: 1.0
  • Fix Version/s: 1.1
  • Component/s: maven-scm-provider-svn
  • Labels:
    None
  • Environment:
    All
  • Complexity:
    Intermediate
  • Patch Submitted:
    Yes

Description

If i use a svn password containing a semicolon with the maven-scm-provider-svnexe, the commandline generated by SvnCommandlineUtils is faulty, because
the password is not quoted. Passwords containing other special chars might cause problems too.

Solution: Enclosing the password for the commandline in single quotes solves this problem.
I have attached a patch for SvnCommandlineUtils that fixes this issue.

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Text File
    patch.txt
    08/Aug/07 9:42 AM
    1.0 kB
    Jan Lisse

Issue Links

depends upon

Bug - A problem which impairs or prevents the functions of the product. PLXUTILS-78 BourneShell doesn't quote arguments containing ; and &

  • 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.
is duplicated by

Bug - A problem which impairs or prevents the functions of the product. CONTINUUM-1360 Prepended semicolon in svn password does not work

  • Major - Major loss of function.
  • 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
Rahul Thakur added a comment - 03/Apr/08 9:53 PM

I haven't tried this but shouldn't this be escaped with a backslash '\' character rather than using single quotes.

What happens if the password itself contains a single quote?

Show
Rahul Thakur added a comment - 03/Apr/08 9:53 PM I haven't tried this but shouldn't this be escaped with a backslash '\' character rather than using single quotes. What happens if the password itself contains a single quote?
Hide
Permalink
Michael Koch added a comment - 11/Jun/08 7:15 AM

Single quoting the whole password is easier that checking for special chars and quoting them individually. Nevertheless, as you probably assumed, any single quotes in the password will still need to be quoted.

I guess that this problem also applies to the user name. Perhaps all arguments should be quoted to be on the safe side.

Show
Michael Koch added a comment - 11/Jun/08 7:15 AM Single quoting the whole password is easier that checking for special chars and quoting them individually. Nevertheless, as you probably assumed, any single quotes in the password will still need to be quoted. I guess that this problem also applies to the user name. Perhaps all arguments should be quoted to be on the safe side.
Hide
Permalink
Michael Koch added a comment - 11/Jun/08 7:43 AM

The class org.codehaus.plexus.util.cli.Commandline, which is used by SvnCommandLineUtils, has a method quoteArgument which could be used for this.

Show
Michael Koch added a comment - 11/Jun/08 7:43 AM The class org.codehaus.plexus.util.cli.Commandline, which is used by SvnCommandLineUtils, has a method quoteArgument which could be used for this.
Hide
Permalink
Olivier Lamy added a comment - 12/Jun/08 4:45 PM

fixed in p-u, look PLXUTILS-78
Upgrade to last p-u in rev 667245

Show
Olivier Lamy added a comment - 12/Jun/08 4:45 PM fixed in p-u, look PLXUTILS-78 Upgrade to last p-u in rev 667245
Hide
Permalink
Olivier Lamy added a comment - 13/Jun/08 2:45 AM

Upgrade to last p-u fix the issue (tested on solaris env)

Show
Olivier Lamy added a comment - 13/Jun/08 2:45 AM Upgrade to last p-u fix the issue (tested on solaris env)

People

  • Assignee:
    Olivier Lamy
    Reporter:
    Jan Lisse
Vote (2)
Watch (2)

Dates

  • Created:
    08/Aug/07 9:42 AM
    Updated:
    13/Jun/08 2:45 AM
    Resolved:
    13/Jun/08 2:45 AM
  • 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.