プロジェクト

全般

プロフィール

Vote #81115

未完了

Creating mutliple attachments at the same time results in 422s

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

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

0%

予定工数:
category_id:
32
version_id:
0
issue_org_id:
34175
author_id:
462355
assigned_to_id:
0
comments:
0
status_id:
1
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
159
ステータス-->[New]

説明

Updating an issue with multiple uploads (attachments POSTed to /uploads.xml) in a very short time will likely (1) result in only one of them being accepted. The rest will fail with 422 Unprocessable Entity response and no error information in the response body (empty body).

I'm not sure how hard would it be to fix this, but I think documenting (2)(3) the limitation is sufficient.

In order to mitigate the limitation we synchronized our attachment creation operation so that they are no longer created in parallel but are executed sequentially.

This is probably hard to reproduce with the web UI therefore the category is "REST API".

(1) in our case, in the test we implemented, trying to upload 5 attachments at the same time was enough to make it fail reliably
(2) https://www.redmine.org/projects/redmine/wiki/Rest_Attachments
(3) https://www.redmine.org/projects/redmine/wiki/Rest_api#Attaching-files

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

  • カテゴリREST API_32 にセット

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

いいね!0
いいね!0