Project

General

Profile

Actions

Defect #7300

open

Subversion integration with blank password

Added by Christof Graf almost 14 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
SCM
Target version:
-
Start date:
2011-01-11
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

Redmine: 1.1.0.devel (MySQL)
SVN: 1.6.15 (r1038135) by CollabNet.

If the subversion user has a blank (empty) password, redmine does not add the --password parameter to the command line and it will be impossible to access the repository.

The following command:
svn list [URL] --username redmine --no-auth-cache --non-interactive

Will result in:
svn: OPTIONS of '[URL]': authorization failed: Could not authenticate to server: rejected Basic challenge ([URL])

It works when I manually add: --password "" to the command.

To completely correct this problem I had to edit line 228 of lib/redmine/scm/adapters/subversion_adapter.rb

From

str << " --password #{shell_quote(@password)}" unless @login.blank? || @password.blank?

To
str << " --password #{shell_quote(@password)}" unless @login.blank?

No data to display

Actions

Also available in: Atom PDF