Attachment is not display when empty note

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
Théon
Posts: 3
Joined: 29 Jan 2025, 09:40

Attachment is not display when empty note

Post by Théon »

To contextualize, I migrated my mantis with a 1.1.8 version on an old Linux OS to an Ubuntu 24.04.01 LTS with a MANTIS in version 2.27.0

I found all my files, note and project but I have a problem with the note in my anomalies.

When I add a note with an image without text this one appears well in my notes however the notes with only images or files that I migrated from my old Mantis to the new do not appear in the notes on the other hand In the attachments they are well displayed.

From what I read the images or files in the notes without text were stored and displayed differently in old mantis.
image025.png
image025.png (157.83 KiB) Viewed 19978 times
I tried to update the SQL base to tackle images and files without text to their original but without success.

Is there someone who has already been concerned?
Théon
Posts: 3
Joined: 29 Jan 2025, 09:40

Re: Attachment is not display when empty note

Post by Théon »

Hello,

Someone have face this type of issue ?

Thanks.
dregad
Developer
Posts: 94
Joined: 26 Jul 2010, 14:24

Re: Attachment is not display when empty note

Post by dregad »

Can you explain the difference between your gray "MANTIS" and the green "MANTIS POC" ?

Starting with 2.23.0, attachments are either linked to the issue (if mantis_bug_file_table.bugnote_id == null), or to a note (if mantis_bug_file_table.bugnote_id == {bugnote id}).

Mantis tries to associate older attachments (i.e. created before the upgrade to 2.23.0 or later) with a bugnote, based on user id and timestamp matching (within $g_issue_activity_note_attachments_seconds_threshold). If a match is found then the attachment will be associated with the note and displayed inline, if not it will be considered as an issue-level attachment (and displayed a the top).

I hope this clarifies.
Théon
Posts: 3
Joined: 29 Jan 2025, 09:40

Re: Attachment is not display when empty note

Post by Théon »

hello,

I know that since MantisBT 2.26, there have been changes in the display of attachments. In particular, attachments added without comment are no longer always visible in the timeline (activity history), but only in the attachment file section. I'm looking for a way to get back to the old display before version 2.26 because we lose the name and timestamp of the notes.

Thanks,
TF
Post Reply