View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0023712 | mantisbt | authentication | public | 2017-12-08 13:32 | 2019-01-02 17:25 |
Reporter | SL-Gundam | Assigned To | vboctor | ||
Priority | normal | Severity | tweak | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 2.9.0 | ||||
Target Version | 2.19.0 | Fixed in Version | 2.19.0 | ||
Summary | 0023712: auth_get_current_user_id can return strings while that is not expected | ||||
Description | I'm using auth_attempt_script_login in my plugin This difference in variable type is an issue when core code like this is used which expects both sides to be of the same variable type | ||||
Tags | No tags attached. | ||||
related to | 0023708 | closed | SL-Gundam | Plugin - EmailReporting | change the status of existing ticket fails |
related to | 0024877 | closed | vboctor | mantisbt | IssueNoteAddCommand: reassign_on_feedback doesn't work if reporter is not specified |
related to | 0024931 | closed | atrol | mantisbt | PHP warnings and errors when trying to signup existing user |
Could be related http://www.mantisbt.org/forums/viewtopic.php?f=3&t=25080 |
|
I believe the two are the same issue as you reference here: http://www.mantisbt.org/forums/viewtopic.php?p=63726&sid=1c99a6ef9ca7772d3a198e5d19a9e848#p63726 Based on what i've seen the issue is that
Easiest fix would be to make sure the cached value in auth_get_current_user_id() is also cast to int. |
|
MantisBT: master 183a4a94 2018-10-20 20:32 Details Diff |
Fix IssueNoteAddCommand re-assign on feedback The issue was caused by logged in user id being returned as a string. Fixes 0024877, 0023712 |
Affected Issues 0023712, 0024877 |
|
mod - core/authentication_api.php | Diff File | ||
mod - core/current_user_api.php | Diff File | ||
mod - core/user_api.php | Diff File |