View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0028173 | mantisbt | api rest | public | 2021-04-06 14:53 | 2021-05-12 09:34 |
Reporter | KaosSpectrum | Assigned To | atrol | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | unable to reproduce | ||
Summary | 0028173: Auth key always returns "me" as anonymous user. | ||||
Description | When i access the rest api, it always returns Anonymous for "me", even tho I am supplying the correct Auth key. [test@vmi354440 restcore]# curl --location -g --request GET 'http://XXXX.dev/api/rest/users/me' --header 'Authorization: XXXXXXXX' [test@vmi354440 restcore]# Not sure what else to do, but it really seems odd. | ||||
Tags | No tags attached. | ||||
I am not able to reproduce on https://www.mantisbt.org/bugs |
|
No your version returns me just fine, so what could be causing this? |
|
Are you using latest released version (2.25.0 at the moment)? |
|
I am yes |
|
Did you create any API Token for user anonymous? What do you see on the My Accoount > API Tokens page of the "me" user? |
|
Says it is never used, And i don't know if anonymous has any API tokens, nor do I know how to give it one. |
|
Maybe someone created the token when the user was created before the user has been set as the As I am not able to reproduce, a complete and detailed description is required for the support team to get a clear understanding of the problem. You should provide detailed, step-by-step instructions to reproduce the issue starting from a fresh install; the additional information listed below may also be useful:
|
|
General php73 7.3.27-1centos.7.210304.1553 The anonymous account was created and set straight as the anonymous account No changes to source code for mantis. $g_hostname = 'localhost'; $g_db_table_prefix = 'iwman'; $g_default_timezone = 'UTC'; $g_crypto_master_salt = 'XXXXXXX'; $g_window_title = 'Ironward Bug Tracker'; $g_logo_image = 'images/mantis_logo.png'; $g_show_realname = ON; $g_allow_anonymous_login = ON; $g_max_file_size = 33554432; |
|
Pretty much a fresh mantis install. Maybe its linked to PHP-FPM? I don't know. WIll try with a fresh mantis install. |
|
Fresh install still does not allow me to use the API, now I am curious if its some setup that plesk does. |
|
You mean that the API does not work at all? Run also admin/check/index.php and fix any errors / warnings you might get. |
|
KaosSpectrum, You did not provide more feedback; I am therefore resolving this issue as "unable to reproduce". Feel free to reopen the issue at a later time and provide steps to reproduce the issue starting from a fresh install. |
|