Dependency Graph

Dependency Graph
related to related to child of child of duplicate of duplicate of

View Issue Details

IDProjectCategoryView StatusLast Update
0037424mantisbtattachmentspublic2026-09-28 08:21
Reporterricardoalonsos Assigned Tocommunity  
PrioritynormalSeveritymajorReproducibilityalways
Status acknowledgedResolutionopen 
Product Version2.28.4 
Summary0037424: Attachments are orphaned on disk when a project's file path is changed
Description

bug_file.folder records where an attachment was written, but most readers ignore it and re-derive the path from the project's current file_path. project_update() lets an administrator repoint a project's file path without moving existing attachments, after which deleting an issue or project silently leaves files behind, file_get_content() returns false (empty XML export / print pages), and the SOAP API reports the attachment as missing.

Steps To Reproduce

with file_upload_method = DISK: create a project with file_path = /mnt/a/, attach a file to an issue, change the project's file path to /mnt/b/, delete the issue — the file remains at /mnt/a/.

TagsNo tags attached.

Relationships

related to 0037427 acknowledgedcommunity Allow attachments stored on disk to be spread over subdirectories 
related to 0037426 acknowledgedcommunity Moving an issue between projects fails or silently skips its attachments when the source project's file path has changed 

Activities