プロジェクト

全般

プロフィール

Vote #79935

完了

Deleting a version silently deletes its attachments

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

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

0%

予定工数:
category_id:
52
version_id:
149
issue_org_id:
31087
author_id:
332
assigned_to_id:
332
comments:
6
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

Deleting a version which has one or more attachments unexpectedly succeeds if no issues are associated with the version.

You can reproduce the problem with the following steps:

  1. Create a new version
  2. Open the "Files" tab in the project menu
  3. Attach a file to the version
  4. Delete the version. Attached files are deleted along with the version without warning

I think Redmine should not allow deleting a version with attachments.

The problem was originally reported by Karel Pičman in #1265#note-6. He also provided a "patch":https://www.redmine.org/attachments/download/22618/versioned_files.patch.


journals

--------------------------------------------------------------------------------
Go MAEDA wrote:
> You can reproduce the problem with the following steps:
>
> 1. Create a new version
> 2. Open the "Files" tab in the project menu
> 3. Attach a file to the version
> 4. Delete the version. Attached files are deleted along with the version without warning
>
> I think Redmine should not allow deleting a version with attachments.
>

I could reproduce this problem on my environment. I also think that Redmine should not allow deleting the version with attachments.
I made a patch that added test code to the Karel Pičman's patch.

--------------------------------------------------------------------------------
Setting the target version to 3.4.10.
--------------------------------------------------------------------------------
Committed the patch. Thank you.
--------------------------------------------------------------------------------

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

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

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

  • カテゴリFiles_52 にセット
  • 対象バージョン3.4.10_149 にセット

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

いいね!0
いいね!0