-
Notifications
You must be signed in to change notification settings - Fork 356
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
Do not store console popups in session #3842
Do not store console popups in session #3842
Conversation
@@ -1872,6 +1872,10 @@ def remember_tab | |||
|
|||
url = URI.parse(request.url).path | |||
|
|||
if (url.include? "launch_vmware_console") || (url.include? "launch_html5_console") |
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.
What do you think about?
return if %w(launch_vmware_console launch_html5_console).any? { |i| url.include?(i) }
This would also solve the rubocop issues...
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.
Also a comment about why do we need this line would be nice.
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.
Thanks, I will apply your suggestions
Checked commit evertmulder@c97a3ff with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 |
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.
@miq-bot assign @martinpovolny |
gaprindashvili? |
I think we need a BZ for that. |
@miq-bot add_label gaprindashvili/yes, fine/yes |
The console popup windows update the user session data (session[:tab_url][sid]). This data is used falsely by the dashboard_controller.rb in redirect_to_remembered, method that tries to redirect the console in the main ManageIQ UI. This leads to a exception in the manageiq ui. See #3833.
This PR is a really ugly fix that mitigates the issue for VMWARE WebMKS and HTML5 console. I think this PR must be improved to fix it for all possible popup windows... Suggestions are welcome.
Links