View Issue Details

IDProjectCategoryView StatusLast Update
0022817mantisbtbugtrackerpublic2017-11-20 06:45
Reportern - i - iAssigned To 
PrioritynormalSeverityminorReproducibilityalways
Status confirmedResolutionopen 
Product Version2.3.0 
Target VersionFixed in Version 
Summary0022817: "private bugnotes" as default setting prevents uploading further attachments
Description

Changing the config option

$g_default_bugnote_view_status = VS_PUBLIC;

to VS_PRIVATE blocks the possibility to add further attachments to an existing issue for users, who can't see private notes, because the checkbox(!) for setting bugnotes to private/public is also used to toggle the display-settings of the dropzone for attachments (which is hidden when the checkbox is checked, because there is no such thing as private attachments).

Since bugnotes for users, who can't see private notes, are (set later on to) public anyway, the checkbox isn't displayed. That means there's no way for those users to toggle the checkbox and therefore make the dropzone visible.

Tested in Mantis version 2.0.0 and 2.3.0.

Additional Information

The problem lies in bugnote_add_inc.php somewhere around line 151 (2.3.0):

$t_attach_style = ( $t_default_bugnote_view_status != VS_PUBLIC ) ? 'display: none;' : '';

This is the initial (and without the checkbox only) part where the display settings for the attachment dropzone is set.

Tagsmantishub

Relationships

related to 0009802 acknowledged Private attachments 

Activities

vboctor

vboctor

2017-04-26 11:22

manager   ~0056722

If you remove this line you will be able to attach files, but even though the note will be private, the attachment will be public and available to users who can't see the private note. I have added a relation to 0009802 for private attachments support.

Kurlvink

Kurlvink

2017-11-14 07:21

reporter   ~0058197

Even when you comment that line out it won't work in every case. I noticed that you have to type in a note and then add the attachment, during it the other way the attachment is lost (after it got uploaded).

Kurlvink

Kurlvink

2017-11-20 06:45

reporter   ~0058226

This bug is a blocker which prevents us from upgrading from Mantis 1.3.11 to Mantis 2.8.0. This bugs results in reporters being not able to upload attachments when the default bugnote view status is set to private.

Issue History

Date Modified Username Field Change
2017-04-26 11:01 n - i - i New Issue
2017-04-26 11:17 atrol Status new => confirmed
2017-04-26 11:20 vboctor Relationship added related to 0009802
2017-04-26 11:22 vboctor Note Added: 0056722
2017-10-25 21:28 vboctor Tag Attached: mantishub
2017-11-14 07:21 Kurlvink Note Added: 0058197
2017-11-20 06:45 Kurlvink Note Added: 0058226