Vote #68959
未完了Subversion integration with blank password
0%
説明
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":http://www.redmine.org/projects/redmine/repository/entry/trunk/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?