プロジェクト

全般

プロフィール

Vote #72838

完了

Error in Textile conversion of HTTP links, containing russian letters

Admin Redmine さんが約4年前に追加. 約4年前に更新.

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

0%

予定工数:
category_id:
26
version_id:
56
issue_org_id:
12397
author_id:
67077
assigned_to_id:
1
comments:
4
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
58
ステータス-->[Closed]

説明

I've just upgraded to the latest Redmine version and got this error:
when I try to write links using "Title":URL notation and I use russian letters in the URL part, my links become broken.
The same error I've got on your demo.redmine.org page.

Let's try it right here:
in Russian:
"ТЕСТ":http://www.test.ru/тест

in English:
"Test":http://www.test.ru/test

Redmine version 2.1.2.stable
Ruby version 1.9.3 (i686-linux)
Rails version 3.2.8


journals

Yes! The same error is on your site.
In Redmine 1.4 version everything was OK.
Again, the problem in the links like this (in this example I'm going to put some spaces to prevent it to convert to URL link with title):
"ТЕСТ" : http :// www.test.ru / Тест
--------------------------------------------------------------------------------
By the way, when I add some english chars at the end of the url, it works fine. see below:

@http://www.redmine.org/тест@
http://www.redmine.org/тест

@http://www.redmine.org/тестABC@
http://www.redmine.org/тестABC

@http://www.redmine.org/тест123@
http://www.redmine.org/тест123

Specially:
@http://www.redmine.org/тест/@
http://www.redmine.org/тест/

So add a "/" at the end could be a workaround.
--------------------------------------------------------------------------------
Yes, I know that. I've done a lot of experiments. The error appears when the LAST LETTER in the URL is Russian letter.
Unfortunatly, adding a slash to the end is not an option for me. My links refer to wiki pages (to another site, not Redmine wiki), so URL with a "/" at the end isn't correct.
--------------------------------------------------------------------------------
It's fixed in r10879 with tests. Only works with ruby1.9.
--------------------------------------------------------------------------------


related_issues

relates,Closed,12077,Links ending with non-english letters don't parse completely

Admin Redmine さんが約4年前に更新

  • カテゴリText formatting_26 にセット
  • 対象バージョン2.2.0_56 にセット

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

いいね!0
いいね!0