プロジェクト

全般

プロフィール

Vote #67283

完了

SVN Repository: Can not list content of a folder which includes square brackets.

Admin Redmine さんがほぼ2年前に追加. ほぼ2年前に更新.

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

100%

予定工数:
category_id:
3
version_id:
14
issue_org_id:
5548
author_id:
15656
assigned_to_id:
5
comments:
11
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

Operation:

  1. Create a folder in SVN's repository. The folder's name includes square brackets, such as [dir1].
  2. Add something (files and/or folders) into the folder created above.
  3. Confirm them can be displayed correctly by SVN's client.
  4. In Redmine's repository, click [dir1] to display its content.

After step4, the The entry or revision was not found in the repository. is displayed.

Environment:

  1. Client(WinXP):TortoiseSVN
  2. Server(RHEL5):CollabNet Subversion(1.6.6) + redmine(0.9.4) + Postgresql(8.4.3)

journals

I was able to reproduce this.
--------------------------------------------------------------------------------
I have same problem.

SCM: Subversion
URL: http://10.121.120.15/svn/ChoSEE/src/mkend/src/
Login: wwyhy
Password: 123456

I got below error:

The entry or revision was not found in the repository.
--------------------------------------------------------------------------------
ww yhy wrote:
> I have same problem.
>
> SCM: Subversion
> URL: http://ip/svn/test/src/md/src/
> Login: wwyhy
> Password: 123456
>
> I got below error:
>
> The entry or revision was not found in the repository.

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
The basic problem seems to be an incompatibility of the URL RFC1738 and Ruby's URI.escape. The former assumes square brackets unsafe, the latter treats them as safe characters. Therefore they are not properly escaped when building the SVN URL.

I will try to add a failing test and add the necessary escaping.
--------------------------------------------------------------------------------
In the mean time I have added a "bug report to Ruby":http://redmine.ruby-lang.org/issues/show/3457.
--------------------------------------------------------------------------------
Attached you may find a patch adding a test case and a possible fix.

I had to change the svn test repository, so please regenerate it after applying the patch with

rm -fr tmp/test/subversion_repository
rake test:scm:setup:subversion
--------------------------------------------------------------------------------
For those prefering git, here is the same patch in gits format-patch format.
--------------------------------------------------------------------------------
Please note, that the fix breaks support for IPv6-Urls. But I think those are currently less likely to occur than square brackets.

IPv6 support may be fixed once "Ruby issue #3457":http://redmine.ruby-lang.org/issues/show/3457 is solved.
--------------------------------------------------------------------------------
Another functional test was affected by the change in the test repository. Attached are updated patch files.
--------------------------------------------------------------------------------
Committed in r3800, thank you for the bug report and patch.
--------------------------------------------------------------------------------

Admin Redmine さんがほぼ2年前に更新

  • カテゴリSCM_3 にセット
  • 対象バージョン1.0.0 (RC)_14 にセット

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

いいね!0
いいね!0