-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Removes unnecessary header x-miq-group #1360
Removes unnecessary header x-miq-group #1360
Conversation
In the past, was used for group switching: http://manageiq.org/docs/reference/latest/api/overview/authorization This is now done through the api, this code is no longer needed and in fact creates the issue here: https://bugzilla.redhat.com/show_bug.cgi?id=1531626 tl;dr - special characters in headers are bad
Checked commit AllenBW@d49cab3 with ruby 2.3.3, rubocop 0.52.0, haml-lint 0.20.0, and yamllint 1.10.0 |
I really like this approach, thanks @AllenBW for doing this / testing! If this is removed from the SUI, i think it will be a good idea to revisit the group header at all in the API. |
@jntullo does this mean ManageIQ/manageiq-api#287 should be closed |
@h-kataria no, we will still fix the API issue, in the event that users are still using this and have a special character in the group name |
Well ... the good thing is, this looks like it fixes the accent bug, and definitely doesn't make things worse :). Given this is a blocker, merging. The bad thing is: group switching is completely broken in SUI. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
…oval Removes unnecessary header x-miq-group (cherry picked from commit 9c9a5d8) Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1536047
Gaprindashvili backport details:
|
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1531626
The sister has been slain, no longer a blocker, this pr is the winner ⚔️
This pr has a sister, ManageIQ/manageiq-api#287 , another way to solve the above bzIn the past, was used for group switching: http://manageiq.org/docs/reference/latest/api/overview/authorization
This is now done through the api, this code is no longer needed and in fact creates the issue (bz above), tl;dr - special characters in headers are bad and not to spec
PS: Totally tested group switching and logging in with invalid groups, everything behaves identical to master