-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Description
Describe the bug
When saving an long integer in attribute of a user, an error Failed to fetch objects will raise.
After checking the docker logs, I find the error Integer exceeds 64-bit range from renderers.py. (Detailed logs are below.) I believe this is a known issue or feature from the orjson lib, that it only supports 64-bit range integer. I did not intend to define an extremely long integer ID. In most cases, my IDs contain letters, so they are parsed as strings without any problem. When an ID happens to contain no letters, it is interpreted as an integer by default (if I do not use quotation marks by mistake), which causes the system to crash and the issue cannot be fixed through the UI.
One possible solution would be to validate the YAML before saving the attributes, for example checking whether it contains unsupported extremely long integers.
How to reproduce
- Go do
Directory-Users-New Users. - Set attributes and save.
longid: 123654789123654800000000000
Expected behavior
I hope the longid is saved as a string if I forget to use quotation marks. Or a better way might be, when I click update, just throw a pop-up to indicate that this attribute cannot be saved, instead of the system crashing.
Screenshots
No response
Additional context
No response
Deployment Method
Docker
Version
2026.2.1
Relevant log output
{
"event": "Internal Server Error: /auth/api/v3/core/users/",
"exception": [
{
"exc_notes": [],
"exc_type": "TypeError",
"exc_value": "Integer exceeds 64-bit range",
"exceptions": [],
"frames": [
{
"filename": "/ak-root/.venv/lib/python3.14/site-packages/asgiref/sync.py",
"lineno": 555,
"name": "thread_handler"
},
{
"filename": "/ak-root/.venv/lib/python3.14/site-packages/django/core/handlers/exception.py",
"lineno": 42,
"name": "inner"
},
{
"filename": "/ak-root/.venv/lib/python3.14/site-packages/asgiref/sync.py",
"lineno": 555,
"name": "thread_handler"
},
{
"filename": "/ak-root/.venv/lib/python3.14/site-packages/django/core/handlers/base.py",
"lineno": 284,
"name": "_get_response_async"
},
{
"filename": "/ak-root/.venv/lib/python3.14/site-packages/asgiref/sync.py",
"lineno": 504,
"name": "__call__"
},
{
"filename": "/ak-root/.venv/lib/python3.14/site-packages/asgiref/current_thread_executor.py",
"lineno": 40,
"name": "run"
},
{
"filename": "/ak-root/.venv/lib/python3.14/site-packages/asgiref/sync.py",
"lineno": 559,
"name": "thread_handler"
},
{
"filename": "/ak-root/.venv/lib/python3.14/site-packages/django/template/response.py",
"lineno": 114,
"name": "render"
},
{
"filename": "/ak-root/.venv/lib/python3.14/site-packages/rest_framework/response.py",
"lineno": 74,
"name": "rendered_content"
},
{
"filename": "/ak-root/.venv/lib/python3.14/site-packages/drf_orjson_renderer/renderers.py",
"lineno": 121,
"name": "render"
}
],
"is_cause": false,
"is_group": false,
"syntax_error": null
}
],
"level": "error",
"logger": "django.request",
"timestamp": "2026-03-12T17:05:27.699795"
}Metadata
Metadata
Assignees
Labels
Type
Projects
Status