View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0008141 | mantisbt | bugtracker | public | 2007-07-12 00:11 | 2022-06-12 08:48 |
Reporter | exkludge | Assigned To | atrol | ||
Priority | normal | Severity | feature | Reproducibility | always |
Status | assigned | Resolution | open | ||
Product Version | 1.0.8 | ||||
Target Version | 2.26.0 | ||||
Summary | 0008141: Issue reporters should be able to update their own issues | ||||
Description | I notice that the reporter of a particular issue cannot update his/her <b>own</b> reported issue. I think it will be better if Mantis will allow the reporter of a particular issue to edit / update his <b>own</b> reported issue. This will lessen the work of UPDATER in correcting those (wrong) information entered by the reporter. Please direct me if this can be done though configuration. Thanks | ||||
Tags | patch | ||||
Attached Files | allow_reporter_update-1.2.12.patch (2,608 bytes)
diff -aur ../mantisbt-1.2.12/bug_update_advanced_page.php ./bug_update_advanced_page.php --- bug_update_advanced_page.php 2012-11-11 23:10:40.000000000 +0000 +++ bug_update_advanced_page.php 2013-04-06 19:33:11.931150001 +0000 @@ -49,7 +49,12 @@ trigger_error( ERROR_BUG_READ_ONLY_ACTION_DENIED, ERROR ); } -access_ensure_bug_level( config_get( 'update_bug_threshold' ), $f_bug_id ); +if ( ON == config_get( 'allow_reporter_update' ) ) { + if( bug_is_user_reporter( $f_bug_id, auth_get_current_user_id() ) ) { + access_ensure_bug_level( config_get( 'report_bug_threshold' ), $f_bug_id ); + } +} +else access_ensure_bug_level( config_get( 'update_bug_threshold' ), $f_bug_id ); html_page_top( bug_format_summary( $f_bug_id, SUMMARY_CAPTION ) ); diff -aur ../mantisbt-1.2.12/bug_update.php ./bug_update.php --- bug_update.php 2012-11-11 23:10:40.000000000 +0000 +++ bug_update.php 2013-04-06 19:24:54.943149999 +0000 @@ -53,6 +53,7 @@ && access_has_bug_level( config_get( 'report_bug_threshold' ), $f_bug_id, $t_user ) && ( ON == config_get( 'allow_reporter_reopen' ) || ON == config_get( 'allow_reporter_close' ) + || ON == config_get( 'allow_reporter_update' ) ) ) ) diff -aur ../mantisbt-1.2.12/config_defaults_inc.php ./config_defaults_inc.php --- config_defaults_inc.php 2012-11-11 23:10:40.000000000 +0000 +++ config_defaults_inc.php 2013-04-06 19:46:50.403150021 +0000 @@ -2575,6 +2575,13 @@ $g_allow_reporter_reopen = ON; /** + * reporter can update + * Allow reporters to update the bugs they reported, without being able to update any other bugs. + * @global int $g_allow_reporter_update + */ + $g_allow_reporter_update = OFF; + + /** * reporter can upload * Allow reporters to upload attachments to bugs they reported. * @global int $g_allow_reporter_upload diff -aur ../mantisbt-1.2.12/core/html_api.php ./core/html_api.php --- core/html_api.php 2012-11-11 23:10:40.000000000 +0000 +++ core/html_api.php 2013-04-06 19:14:43.679150001 +0000 @@ -1370,7 +1370,12 @@ * @return null */ function html_button_bug_update( $p_bug_id ) { - if( access_has_bug_level( config_get( 'update_bug_threshold' ), $p_bug_id ) ) { + if( access_has_bug_level( config_get( 'update_bug_threshold' ), $p_bug_id ) || + ( access_has_bug_level( config_get( 'report_bug_threshold' ), $p_bug_id ) && + bug_is_user_reporter( $p_bug_id, auth_get_current_user_id() ) && + ON == config_get( 'allow_reporter_update' ) + ) + ) { html_button( string_get_bug_update_page(), lang_get( 'update_bug_button' ), array( 'bug_id' => $p_bug_id ) ); } } | ||||
related to | 0005248 | confirmed | Restrict Handler (Developper) and Reporter to modify only their OWN issues | |
has duplicate | 0008143 | closed | ryandesign | Issue reporter can update own reported issue |
has duplicate | 0008142 | closed | ryandesign | Issue reporter can update own reported issue |
has duplicate | 0012349 | closed | atrol | A reporter must be able to update his own issue (status, assigned, all details...) while not being to update others' issues |
has duplicate | 0014038 | closed | atrol | A reporter should have the right to edit his/her own issues as long they have status New |
has duplicate | 0007225 | closed | dregad | Reporters can override their permissions if they have access to the "Update Issue" button |
has duplicate | 0030147 | closed | dregad | It should be possible to give reporter permission to edit own reports |
hmmm... just what i was trying to say. i missed the closing tag for "bold" (in 0008141) and i can't edit my own reported issue. I tried to "back" my browser to complete the "bold" tag and tried to submit my "issue" without thinking that it will create another "ISSUE ID" (0008142, 0008143)... kindly relate these issues 0008141, 0008142, 0008143 (because i guess it cannot be deleted...sorry about that) |
|
don't know about in your version, but in mantis 1.2.0rc2 (and i think 1.1.8) you can go Manage -->Manage Configuration --> Workflow Threshold and in the "update" row add a check for "reporter" column. |
|
so this request has been added 3 years ago, and it is still set as NEW! Any plans on dealing with this? If not, at least let us know. |
|
This would be nice to have ! |
|
Warning, squarebox's method will make Reports able to update all issues, including other person's issues. It has the same effect as setting the person to an "updater". That is wrong. Do not do that. A real solution is needed. |
|
sorry i didn't catch that point about updating one's own reports. Bbufo is correct that my suggested change would allow all tickets to be updatable by reporters. @elias: the mantis team, in particular Atrol, has been doing a review of all open bugs for the past few months. There is something like over 5k open bug reports and they are slowly, but surely working through them. |
|
Well yeah, such option where reporters can edit only their reported issues would be very handy. Now there is only to allow all reporters to edit each others issues that isnt really usable. Would be great to have such feature or atleast some workaround. |
|
Yep, this would be a nice feature. I think it is a fundamental possibility anywhere on the Internet for anybody to review and correct her/his own submit if there is a mistake in it. I really don't understand how can this little issue survive so many years without a fix. Now we have to use permissions similar to the Updaters just because of this. (just as squarebox hinted :)) |
|
the reporter should be able to update his/her own issue. it would be better and user friendly. |
|
I have attached an experimental patch for Mantis 1.2.12 and 1.2.14 that enables reporters to update their own issues only if the allow_reporter_update setting is enabled. This setting defaults to OFF, so Mantis will behave as normal unless the setting is changed. Like other settings it can also be changed on a per-project and/or per-user basis. |
|
Was this patch (or similar functionality) ever implemented? I.e. is this still an issue? |
|
Can this please be looked at for feature inclusion in 2.0? |
|
Could this be implemented, please? It bugs me as a bug reporter a lot. P.S. The bug is almost a decade already, that's crazy, I would consider this a basic functionality. |
|
This is still a problem for us and would be great to see it changed |
|
Hi @dregad is this ticket on the radar? Is there a way to set this functionality in MantisBT 2.21.0/2.22.0 ? |
|
There are no plans to implement it at the moment, but if someone would send us a pull request with a working patch, we would gladly reviewed it for eventual inclusion in a later release. |
|
Actually, it does look possible |
|
@Kunda This setting will allow reporters to update ALL issues, not just their own... |
|
@dregad bummer |
|
Not aware that this issue already exists, I just created a duplicate (0030147). While my duplicate was closed, I would like to preserve this addition: Personally, I'd even go a step further in making a permission that has further dependencies. While an issue is being discussed (i.e. while the status is one of new, feedback, or acknowledged), the reporter should have the possibility to correct his issue description. But after the status has been set to confirmed, which usually means that someone is going to work on it, changes should no longer be possible. |
|
@vic-t the following existing options might be enough to cover your addition |
|
@atrol Indeed, thanks! Maybe this is not the right place but can I ask why this request has not been resolved in over a decade? It seems there is enough interest out there. Is it maybe too complex, would too many places in the software have to be rewritten for this? |
|
Because nobody has judged this feature important enough to justify investing time and effort in developing it yet... As for complexity TBH I don't know as I never looked into it in detail, but as it is touching security it might be a bit tricky. If you have the skills and resources to do it, then by all means do submit a pull request, we'll gladly review and merge it. |
|
@dregad I started to work on that, but while looking at it I found some bugs around affected code that should be fixed first, e.g. 0030178 and 0030182 |
|
Hi @atrol, in 2013 I attached a patch file that I believed could resolve this issue. Would this be of any help to you? |
|
Sorry @TerrorBite seems that nobody was really aware of the patch. In general it's the way to go and similar to what I started. |
|
It's open source, no expectation, just a lot of appreciation for the work you guys do. :-) |
|
I will probably not have time for the next months to go on working on this and to enhance the current PR draft. I guess it's better to review/merge the current state of the PR instead of waiting another 15 years for progress. |
|