Bug 1276599
| Summary: | Basic Auth does not work with passwords that contain a colon (:) | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Josep 'Pep' Turro Mauri <pep> |
| Component: | Node | Assignee: | Jordan Liggitt <jliggitt> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | weiwei jiang <wjiang> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 3.0.0 | CC: | aos-bugs, jokerman, mmccomas, swasthan, wsun, xtian |
| Target Milestone: | --- | Keywords: | NeedsTestCase |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | atomic-openshift-3.0.2.905-0.git.0.85d6f88.el7aos | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-11-23 14:43:30 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: | 1267746 | ||
https://github.com/openshift/origin/pull/5518 in the merge queue Commit pushed to master at https://github.com/openshift/origin https://github.com/openshift/origin/commit/9505cfcd2f76fcf10c37ac10cafc613f2228549d Handle passwords with colon in basic auth Split the Basic auth header in only two parts. Fixes bug 1276599 Checked by devenv_rhel7_2658, and this issue has been fixed, so verify this. |
Description of problem: "oc login" fails if the user's password contains a colon (":") Version-Release number of selected component (if applicable): openshift v3.0.2.0-20-g656dc3e How reproducible: Always Steps to Reproduce: $ oc login Authentication required for https://ose-master-63bf3.example.com:8443 (openshift) Username: joe Password: type a password that contains a colon, e.g.: a:b Actual results: Error from server: Internal error occurred: unexpected response: 500 In the master logs: oct 30 04:26:28 ose-master-63bf3.example.com openshift-master[2414]: E1030 04:26:28.871321 2414 empties.go:28] AuthenticationError: Invalid Authorization header Expected results: Login successful. Additional info: usernames are not allowed to contain a colon, but passwords can: http://tools.ietf.org/html/rfc2617#section-2