Closed SergeoLacruz closed 6 months ago
I can actually reproduce that. Just updated my dev env to test out the py 3.12 changes (now still on 3.11) and when trying to login in CUI I get redirected to the login screen again. I already found out, that this only happens when using safari. In chrome I cannot reproduce that bug.
I now bisected it and #6970 seems to have broken the login on safari.
Seems like that when disabeling SESSION_COOKIE_SECURE
in the settings.py
it starts working again in safari:
# Additional CSRF settings
CSRF_HEADER_NAME = 'HTTP_X_CSRFTOKEN'
CSRF_COOKIE_NAME = 'csrftoken'
CSRF_COOKIE_SAMESITE = 'Lax'
-SESSION_COOKIE_SECURE = True
+SESSION_COOKIE_SECURE = False
SESSION_COOKIE_SAMESITE = 'Lax'
But I have not enough insights on how to properly fix this issue. Effectively the sessionid
cookie gets not stored and that's why the login screen is showed again.
version from... good question. Some commit about a week ago. I use the classical interface. When a try the platform interface, it sees that I am logged in, but I do not see any data. I can reproduce the problem with Edge. I have no Chrome or Safari Browser. Changing SESSION_COOKIE_SECURE to False solves the problem
Odd that the problem does not exhibit on the demo site. In any case, there is no real issue with setting SESSION_COOKIE_SECURE=False
- this setting was only introduced in https://github.com/inventree/InvenTree/pull/6970
Please verify that this bug has NOT been raised before.
Describe the bug*
I enter username and password and end up in the login screen again. No message "wrong password is shown". what I tried: I ran a git pull I ran a invoke update, downloaded the frontend.zip and installed it using invoke frontend-download --file I created a new superuser using invoke superuser. Even this one cannot login. The installation worked fine until some days ago. No error messages are shown in the logs
Steps to Reproduce
cd src invoke server -a 192.168.1.40:8123' Firefox: http://192.168.1.40:8123/accounts/login/?next=/
Expected behaviour
start page shall be shown
Deployment Method
Version Information
Inventree latest commit from master UIbuntu 22.4 LTS Firefox 124.0.2 ls-lR.txt
Please verify if you can reproduce this bug on the demo site.
Relevant log output