Closed ghost closed 1 year ago
Probably a version of this: https://stackoverflow.com/a/41458542
That "secure" cookie with no name is invalid because it has no name, it's also not set by openHAB. (neither are the others) You need to somehow figure out which other app is setting it, and prevent it from being sent to openHAB.
How should I do that? I am running multiple applications on different ports on the same server.
IMHO, OH should be able to handle this case.
The complete headers are needed to decide if this is an openHAB issue. If the problem still persists, please post that. From my understanding, openHAB is behaving correctly here and some other applications sets invalid cookies.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
@sidamos commented on Nov 21, 2020, 10:01 AM UTC:
The problem
This happened on 2 client machines (Linux+Chrome, ChromeOS). At first login (either directly after the very first startup of OH and first user creation or later, when admin user is already created), I get HTTP 500 after entering user and password and just a grey screen.
I have these cookies for this server:
Clearing all cookies for this server resolves the issue.
Expected behavior
Login should work.
Steps to reproduce
Your environment
Browser console
Browser network traffic
Response body: "{"error":{"message":"Cookie is malformed : secure","http-code":500,"exception":{"class":"java.lang.IllegalArgumentException","message":"Cookie is malformed : secure","localized-message":"Cookie is malformed : secure"}}}"
Additional information
This issue was moved by ghys from openhab/openhab-webui#545.