Defect #7300

Subversion integration with blank password

Added by Christof Graf about 12 years ago.

Status:NewStart date:2011-01-11
Priority:NormalDue date:
Assignee:-% Done:


Target version:-
Resolution: Affected version:


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


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

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

Also available in: Atom PDF