プロジェクト

全般

プロフィール

Vote #80134

完了

View switches from gantt to list after editing an issue

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

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

0%

予定工数:
category_id:
34
version_id:
153
issue_org_id:
31552
author_id:
308290
assigned_to_id:
332
comments:
7
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

The view is only affected if a custom filter is applied. If there's
no filter applied the view works as expected.

Steps to reproduce

Open the gantt view.

Modify and apply the filter.

Edit an issue with the right click menu

Result

The view switches to the issues list view

Expected result

The view stays on the gantt view


journals

--------------------------------------------------------------------------------
I have confirmed that the changes below fix this problem.
<pre><code class="diff">
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index 06e2d702c1..afbb30f3ee 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -440,7 +440,7 @@ class ApplicationController < ActionController::Base
end

begin
- uri = URI.parse(back_url)
+ uri = URI.parse(URI.encode(back_url))
rescue URI::InvalidURIError
return false
end

</code></pre>

However, I am concerned that this change will cause other problems.
ApplicationController#validate_back_url is a method that includes security changes(#19577), so it needs to be corrected carefully.
--------------------------------------------------------------------------------
I think that the patch attached is better than the correction method suggested in #31552#note-2.

The issues/_list also make the back_url parameter in the same way.
The same problem occurred with the calendar, so we fix it together.
--------------------------------------------------------------------------------
Mizuki ISHIKAWA wrote:
> The issues/_list also make the back_url parameter in the same way.

source:tags/4.0.4/app/views/issues/_list.html.erb#L5 and source:tags/4.0.4/app/views/timelog/_list.html.erb#L2.

Setting the target version to 4.0.5.
--------------------------------------------------------------------------------
Committed the patch. Thank you all for reporting and fixing this issue.
--------------------------------------------------------------------------------

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

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


related_issues

relates,New,31831,Back url parse in validation

Admin Redmine さんが3年以上前に更新

  • カテゴリGantt_34 にセット
  • 対象バージョン4.0.5_153 にセット

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

いいね!0
いいね!0