プロジェクト

全般

プロフィール

Vote #67778

完了

Repository file Diff view sometimes shows more than selected file

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

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

100%

予定工数:
category_id:
3
version_id:
21
issue_org_id:
6045
author_id:
3584
assigned_to_id:
1188
comments:
6
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

I think this is related to issue #4186
You can actually reproduce by using issue #4186:


journals

Just to be more specific, this is due to the wrong URI in the action= of the <form> around the inline/side-by-side selection. It is missing the file pathname part.
--------------------------------------------------------------------------------
Here's a patch for it...
--------------------------------------------------------------------------------
@ Marc: Thanks for your contribution. Sadly the patch-file seems to be broken somehow but nevertheless I have extracted the change locally...

It includes a one-line change of source:/trunk/app/views/repositories/diff.rhtml@3938#L4

from:

<pre><code class="rhtml"><% form_tag({}, :method => 'get') do %></code></pre>

to

<pre><code class="rhtml"><% form_tag(request.request_uri, :method => 'get') do %></code></pre>

I have tested this tiny patch and it fixed the issue for me too. Dunno for sure though if this is the right way to fix this issue most effectively. I'll leave that up to the commiters.

I've targetted this issue for Redmine version#21 since it seems it can be fixed easily. Please retarget if time is missing to include this for version#21...
I've also set the affected version to devel since it's still broken in the trunk too.
--------------------------------------------------------------------------------
I don't really like the idea of using request.request_uri, it could introduce weird bugs, but I'll take a look at this one. I confirm it could be the kind of defect we want to address in 1.0.1, but I don't know when Eric wants to stop adding issues for this one (due date is in 7 days!).

Thanks for the patch and your investigations on that.
--------------------------------------------------------------------------------
It was just missing path information, fixed in r3939
--------------------------------------------------------------------------------
Merged to 1.0-stable for release in 1.0.1.
--------------------------------------------------------------------------------

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

  • カテゴリSCM_3 にセット
  • 対象バージョン1.0.1_21 にセット

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

いいね!0
いいね!0