View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0033248 | mantisbt | custom fields | public | 2023-11-13 06:09 | 2024-02-20 16:58 |
Reporter | keessonnema | Assigned To | dregad | ||
Priority | normal | Severity | block | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 2.26.0 | ||||
Target Version | 2.26.1 | Fixed in Version | 2.26.1 | ||
Summary | 0033248: APPLICATION ERROR 2800 Invalid form security token when trying to delete custom field | ||||
Description | After upgrading to v2.26.0 I get the infamous 2800 error. APPLICATION ERROR #2800 Invalid form security token. This could be caused by a session timeout, or accidentally submitting the form twice. Full path: /var/www/websites/mantisbt-base/core/form_api.php
I'm not sure if this is due to my PHP configuration, but I'd love to hear what to change to fix this. | ||||
Steps To Reproduce | Do the following:
| ||||
Additional Information | Running on Ubuntu 20.04 with PHP 7.4.3-4ubuntu2.19 (cli) | ||||
Tags | No tags attached. | ||||
Sorry I can't reproduce this. |
|
@dregad do you recognize this error? If so, how could I isolate this problem? I'm not sure where to look. |
|
Well obviously I recognize error 2800... But I'm not sure I correctly understand what you expect from me when you ask that though... As to how to isolate it, since I can't reproduce the problem and you did not provide much details or context, it's kind of hard for me to tell. If it is indeed consistently reproducible (you said always) then you should be able to trace code execution. |
|
@dregad I'll try to do a git diff on the files that throw an error.
|
|
I'm having the same issue. Upgraded from 2.25.6 to 2.26, when I create a new custom field and then I try to delete it, I'm getting 2800 error message. I can't delete existing or new custom fields. Running on Wamp Server 3.2.6 - 64bit / PHP 8.1.0 / Windows Server R2 Standard |
|
@dregad looks like a regression introduced when implementing 0027274 |
|
I get it now - I had form_security_validation disabled on my dev box for some tests, and forgot to turn it back on... Fix should be quite simple, just need to declare the security token for deletion in the form. |
|
Thanks @haxxemm and @atrol for the help on finding the issue. |
|
MantisBT: master 8116b5e3 2022-06-02 09:14 Details Diff |
Move Delete Custom Field button to form footer Using the HTML5 button's `formaction` property we can get rid of the separate form that caused the button to be displayed below the Edit box, and put the Delete button in the main form's footer Fixes 0027274 |
Affected Issues 0027274, 0033248 |
|
mod - manage_custom_field_edit_page.php | Diff File | ||
MantisBT: master-2.26 fe404e16 2023-12-01 19:03 Details Diff |
Fix error 2800 when deleting custom field This error is a regression introduced by fix for issue 0027274. Changing security token name in manage_custom_field_delete.php from manage_custom_field_delete to manage_custom_field_update resolves the problem. It makes more sense to reuse the existing token rather than generate a new, specific one in manage_custom_field_edit_page.php since we're using the same form data for update and delete operations. Fixes 0033248 |
Affected Issues 0027274, 0033248 |
|
mod - manage_custom_field_delete.php | Diff File |