https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292010-05-18T13:49:37ZRedmineRedmine - Defect #5548: SVN Repository: Can not list content of a folder which includes square brackets.https://www.redmine.org/issues/5548?journal_id=168432010-05-18T13:49:37ZFelix Schäfer
<ul><li><strong>Assignee</strong> deleted (<del><i>Felix Schäfer</i></del>)</li></ul><p>I was able to reproduce this.</p> Redmine - Defect #5548: SVN Repository: Can not list content of a folder which includes square brackets.https://www.redmine.org/issues/5548?journal_id=170852010-06-01T08:24:28Zww yhy
<ul></ul><p>I have same problem.</p>
<p>SCM: Subversion<br />URL: <a class="external" href="http://10.121.120.15/svn/ChoSEE/src/mkend/src/">http://10.121.120.15/svn/ChoSEE/src/mkend/src/</a><br />Login: wwyhy<br />Password: 123456</p>
<p>I got below error:</p>
<p>The entry or revision was not found in the repository.</p> Redmine - Defect #5548: SVN Repository: Can not list content of a folder which includes square brackets.https://www.redmine.org/issues/5548?journal_id=170862010-06-01T08:25:04Zww yhy
<ul></ul><p>ww yhy wrote:</p>
<blockquote>
<p>I have same problem.</p>
<p>SCM: Subversion<br />URL: <a class="external" href="http://ip/svn/test/src/md/src/">http://ip/svn/test/src/md/src/</a><br />Login: wwyhy<br />Password: 123456</p>
<p>I got below error:</p>
<p>The entry or revision was not found in the repository.</p>
</blockquote> Redmine - Defect #5548: SVN Repository: Can not list content of a folder which includes square brackets.https://www.redmine.org/issues/5548?journal_id=174872010-06-19T21:20:51ZFelix Schäfer
<ul><li><strong>Target version</strong> set to <i>1.0.0 (RC)</i></li></ul> Redmine - Defect #5548: SVN Repository: Can not list content of a folder which includes square brackets.https://www.redmine.org/issues/5548?journal_id=175212010-06-20T09:26:37ZGregor Schmidtschmidt@nach-vorne.eu
<ul></ul><p>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.</p>
<p>I will try to add a failing test and add the necessary escaping.</p> Redmine - Defect #5548: SVN Repository: Can not list content of a folder which includes square brackets.https://www.redmine.org/issues/5548?journal_id=175232010-06-20T09:54:40ZGregor Schmidtschmidt@nach-vorne.eu
<ul></ul><p>In the mean time I have added a <a href="http://redmine.ruby-lang.org/issues/show/3457" class="external">bug report to Ruby</a>.</p> Redmine - Defect #5548: SVN Repository: Can not list content of a folder which includes square brackets.https://www.redmine.org/issues/5548?journal_id=175252010-06-20T13:14:34ZGregor Schmidtschmidt@nach-vorne.eu
<ul><li><strong>File</strong> <a href="/attachments/3995">patch.diff</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/3995/patch.diff">patch.diff</a> added</li></ul><p>Attached you may find a patch adding a test case and a possible fix.</p>
<p>I had to change the svn test repository, so please regenerate it after applying the patch with </p>
<pre><code>rm -fr tmp/test/subversion_repository<br />rake test:scm:setup:subversion</code></pre> Redmine - Defect #5548: SVN Repository: Can not list content of a folder which includes square brackets.https://www.redmine.org/issues/5548?journal_id=175262010-06-20T13:15:15ZGregor Schmidtschmidt@nach-vorne.eu
<ul><li><strong>File</strong> <a href="/attachments/3996">0001-adding-test-for-5548-square-brackets-in-svn-paths.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/3996/0001-adding-test-for-5548-square-brackets-in-svn-paths.patch">0001-adding-test-for-5548-square-brackets-in-svn-paths.patch</a> added</li><li><strong>File</strong> <a href="/attachments/3997">0002-fix-for-5548-escaping-in-svn-urls.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/3997/0002-fix-for-5548-escaping-in-svn-urls.patch">0002-fix-for-5548-escaping-in-svn-urls.patch</a> added</li></ul><p>For those prefering git, here is the same patch in gits format-patch format.</p> Redmine - Defect #5548: SVN Repository: Can not list content of a folder which includes square brackets.https://www.redmine.org/issues/5548?journal_id=175272010-06-20T13:23:39ZGregor Schmidtschmidt@nach-vorne.eu
<ul></ul><p>Please note, that the fix breaks support for IPv6-Urls. But I think those are currently less likely to occur than square brackets.</p>
<p>IPv6 support may be fixed once <a href="http://redmine.ruby-lang.org/issues/show/3457" class="external">Ruby issue #3457</a> is solved.</p> Redmine - Defect #5548: SVN Repository: Can not list content of a folder which includes square brackets.https://www.redmine.org/issues/5548?journal_id=175282010-06-20T13:40:41ZGregor Schmidtschmidt@nach-vorne.eu
<ul><li><strong>File</strong> <a href="/attachments/3999">0003-updating-test-case-to-work-with-updated-svn-test-rep.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/3999/0003-updating-test-case-to-work-with-updated-svn-test-rep.patch">0003-updating-test-case-to-work-with-updated-svn-test-rep.patch</a> added</li><li><strong>File</strong> <a href="/attachments/4000">patch.diff</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/4000/patch.diff">patch.diff</a> added</li></ul><p>Another functional test was affected by the change in the test repository. Attached are updated patch files.</p> Redmine - Defect #5548: SVN Repository: Can not list content of a folder which includes square brackets.https://www.redmine.org/issues/5548?journal_id=175362010-06-20T16:01:04ZEric Davis
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li><li><strong>Assignee</strong> set to <i>Eric Davis</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li><li><strong>Resolution</strong> set to <i>Fixed</i></li></ul><p>Committed in <a class="changeset" title="Support listing directories in svn which include square brackets. #5548 Contributed by Gregor Sc..." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/3800">r3800</a>, thank you for the bug report and patch.</p>