プロジェクト

全般

プロフィール

Vote #77532

完了

Custom field List Link values to URL breaks on entries with spaces

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

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

0%

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

説明

+Situation+:
You have a custom field of the type "List".
In your list are entries which run like "entry" and "second entry".

While "entry" will generate a link with the "Link values to URL" using %value%, "second entry" will not be clickable.
If I'd use "second+entry", it'll very well work though.

+Suggested solution+:
Redmine is to parse blanks and substitute plusses for them automatically before outputting the link.
It will present the list entry in the custom field as a clickable link.

+System info+:
Environment:
Redmine version 3.2.3.stable
Ruby version 2.0.0-p647 (2015-08-18) [x86_64-linux]
Rails version 4.2.5.2
Environment production
Database adapter Mysql2
SCM:
Subversion 1.8.13
Git 2.6.1
Filesystem

Redmine plugins:
no plugin installed


journals

Fix committed in r15539, thanks for pointing this out.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Thank you very much for the swift fix, Jean-Philippe :)
--------------------------------------------------------------------------------
This breaks pretty much any url which has fragments. You should never encode the complete url, just the parameters.
Example: Try to link to
@http://example.com#test=%m1%@
The link will now be
@http://example.com%23test=%m1%@
--------------------------------------------------------------------------------

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


related_issues

relates,Closed,23841,Custom field URL spaces not decoded properly

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

  • カテゴリCustom fields_14 にセット
  • 対象バージョン3.1.7_120 にセット

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

いいね!0
いいね!0