プロジェクト

全般

プロフィール

Vote #68959

未完了

Subversion integration with blank password

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
SCM_3
対象バージョン:
-
開始日:
2011/01/11
期日:
進捗率:

0%

予定工数:
category_id:
3
version_id:
0
issue_org_id:
7300
author_id:
26438
assigned_to_id:
0
comments:
0
status_id:
1
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

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?

Admin Redmine さんが約4年前に更新

  • カテゴリSCM_3 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0