View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0022817||mantisbt||bugtracker||public||2017-04-26 11:01||2019-04-15 09:14|
|Reporter||n - i - i||Assigned To|
|Target Version||Fixed in Version|
|Summary||0022817: "private bugnotes" as default setting prevents uploading further attachments|
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.
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.
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.
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).
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.
We would also like to get this attachment feature in private bugnotes but only accessible for users with a certain level of access.
Is it possible to have visibility about the implementation of this feature ?
|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|
|2018-03-15 12:17||atrol||Relationship added||has duplicate 0024123|
|2018-04-25 09:39||jeromedl||Note Added: 0059684|
|2018-04-25 09:42||jeromedl||Note Edited: 0059684||View Revisions|
|2018-06-29 05:27||atrol||Relationship added||related to 0024573|
|2019-04-15 09:13||apokorski||Note Added: 0061939|
|2019-04-15 09:14||apokorski||Note Edited: 0061939||View Revisions|