Skip to content
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

Switch Instance does not work. (KuduLite 1.0.0.7) #219

Open
fukasawah opened this issue Jul 19, 2021 · 0 comments
Open

Switch Instance does not work. (KuduLite 1.0.0.7) #219

fukasawah opened this issue Jul 19, 2021 · 0 comments

Comments

@fukasawah
Copy link

  • Webapps for linux
  • KuduLite 1.0.0.7

Reproduction

  • Run of 2 instances or many
  • Select any instances from switch instances dropdown.
  • Redirect to /newui. But it will be a different instance than the one you selected.

expected/actual

Expected: Selected instance ID page.
Actual: Not the selected instance ID page. (randomly)

When redirecting to /newui, a cookie header like this is added...

image

Send cookie header:

Cookie: ARRAffinity=[object HTMLElement]; LoginNonce_405edcea=...; FedAuth1=....; ARRAffinity=34c46695ee21dee374a8022dd9e40334ed71886d093d06e62f05cd45b369eac5; ARRAffinitySameSite=34c46695ee21dee374a8022dd9e40334ed71886d093d06e62f05cd45b369eac5

There are two ARRAffinity cookies being sent, which I think is causing unexpected results.

Problem code

Maybe, this code is wrong.

document.getElementById("curr-instance") +

Before the redirect, Set the NavigateToInstance function in ajax to a cookie.
So clickLink function should be unnecessary.

The proof is that It works if you overwrite the clickLink function before the operation.

// from Chrome DevTools Console
function clickLink(){ }; // overwrite
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant