Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
This project is now read‑only. Starting Monday, February 2, please use https://ibm-ceph.atlassian.net/ for all bug tracking management.

Bug 1913580

Summary: [Ceph dashboard] Unable to login to ceph dashboard until clearing cookies
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Sunil Angadi <sangadi>
Component: Ceph-DashboardAssignee: Ernesto Puerta <epuertat>
Status: CLOSED CANTFIX QA Contact: Sunil Angadi <sangadi>
Severity: high Docs Contact: Ranjini M N <rmandyam>
Priority: medium    
Version: 5.0CC: asakthiv, athakkar, ceph-eng-bugs, epuertat, gsitlani, nia, pasik, rmandyam, tserlin, vereddy
Target Milestone: ---Keywords: Reopened
Target Release: 5.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-16.2.0-8.el8cp Doc Type: Known Issue
Doc Text:
.Users cannot log in to the {storage-product} Dashboard with chrome extensions or plugins Users cannot log into the {storage-product} Dashboard if there are Chrome extensions for the plugins used in the browser. To work around this issue, either clear the cookies for a specific domain name in use or use the Incognito mode to access the {storage-product} Dashboard.
Story Points: ---
Clone Of:
: 1962133 (view as bug list) Environment:
Last Closed: 2021-10-06 11:04:53 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1959686, 1962133    

Comment 16 Veera Raghava Reddy 2021-05-24 16:59:37 UTC
Having challenge accessing Dashboard for second time in Google chrome, incognito mode.
When trying to login using correct credentials, get login page.
Also it does not give any hint that this may be issue with cookies.
This is an Usability issue.

Comment 17 avan 2021-05-25 12:46:22 UTC
(In reply to Veera Raghava Reddy from comment #16)
> Having challenge accessing Dashboard for second time in Google chrome,
> incognito mode.
> When trying to login using correct credentials, get login page.
> Also it does not give any hint that this may be issue with cookies.
> This is an Usability issue.

I was successfully able to login using magna081 cluster provided by Sunil in Chrome, incognito mode.

Comment 19 Veera Raghava Reddy 2021-05-26 06:00:59 UTC
https://extensa003.ceph.redhat.com:8443/#/login
admin/admin@123

Comment 21 Veera Raghava Reddy 2021-05-26 06:58:27 UTC
Crome browser Version 90.0.4430.93 (Official Build) (64-bit)

Just speculating, is the issue because in the same browser we have launched previous version of dashboard in the previous release?

Comment 27 Ernesto Puerta 2021-10-04 17:48:21 UTC
Reproduced and debugged.

The issue has to do with a malformed cookie `cmapi_cookie_privacy=permit 1 required` which contains whitespaces in the cookie-value (see RFC 6265 2.2). This is reported to Python 3.6 http.cookies SimpleCookie (https://bugs.python.org/issue31456).

Reproduced:
```py
>>> from http.cookies import SimpleCookie

>>> SimpleCookie('cmapi_cookie_privacy=permit 1 required')
<SimpleCookie: >

>>> SimpleCookie('cmapi_cookie_privacy=permit 1')
<SimpleCookie: >

>>> SimpleCookie('cmapi_cookie_privacy=permit')
<SimpleCookie: cmapi_cookie_privacy='permit'>
```

A work-around would consist on deleting that specific cookie "cmapi_cookie_privacy" or all cookies for the problematic domain.