プロジェクト

全般

プロフィール

Vote #77111

未完了

Preview does not work on non-ascii data input

Admin Redmine さんが約2年前に追加.

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

0%

予定工数:
category_id:
0
version_id:
0
issue_org_id:
21770
author_id:
4
assigned_to_id:
0
comments:
5
status_id:
1
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
109
ステータス-->[New]

説明

The following content will break the preview option.

insert content of non-ascii_content.txt here

When opening the debug console in chrome, I can see the following:

4 jquery-1.11.1-ui-1.11.0-ujs-3.1.3.js:4 Uncaught URIError: URI malformed
39 jquery-1.11.1-ui-1.11.0-ujs-3.1.3.js:4 Uncaught URIError: URI malformede
 @ jquery-1.11.1-ui-1.11.0-ujs-3.1.3.js:4(anonymous function)
 @ jquery-1.11.1-ui-1.11.0-ujs-3.1.3.js:4m.extend.each
 @ jquery-1.11.1-ui-1.11.0-ujs-3.1.3.js:2m.param
 @ jquery-1.11.1-ui-1.11.0-ujs-3.1.3.js:4m.fn.extend.serialize
 @ jquery-1.11.1-ui-1.11.0-ujs-3.1.3.js:4submitPreview
 @ application.js:414onclick
 @ new:320

Looks dangerous to me when user-content breaks the javascript. Obviously some parsing problems. There is probably some 0x00 in the content.


journals

Even creating issues will fail with error code 422.
--------------------------------------------------------------------------------
I can see preview on IE11 and Firefox ESR 38.
--------------------------------------------------------------------------------
No problem with Chrome 47 for previewing or creating the issue.
--------------------------------------------------------------------------------
This issue happened with chrome 47.0.2526.111 m and Firefox 43.0.4 on Windows 7 32 bit.

Note: use Notepad++ for opening and copy-pasting the content of non-ascii_content.txt. Other text-editors might omit the non-ascii characters when opening the file. Eg. Notepad2 (delivered with git for windows) will also reformat the binary data to some ascii values.
--------------------------------------------------------------------------------
OK, damn it. I retried with the attached file. Looks like the binary data was converted to some ascii values on saving. Well, that's it, the test-data is lost.
--------------------------------------------------------------------------------

表示するデータがありません

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

いいね!0