You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a issue while using rubrik plugin with token management.
The problem is located in request_api function where the token could be renewed when it expire but the cleanning/renew part is never called.
In request_api_paginate function, there is an "$self->{output}->option_exit()" called when authentication is not good and it bypass the second part of request_api function
" if (defined($self->{token}) && $self->{http}->get_code() < 200 || $self->{http}->get_code() >= 300) { ...."
To bypass the problem, I've just comment the "$self->{output}->option_exit()" and it works but it's not really clean.
The text was updated successfully, but these errors were encountered:
Hello @brice-automatizit , @OlivierKuziemko
Thanks again for your feedback.
I think the proper way to fix this is to quit request_api_paginate() if the server don't send back any data.
I made a pr for this : #5344
We don't have any environment available to test this. Can you check on your's if this work correctly ?
Can you also run the plugin with the option --debug and give us an anonymized version ? This will allow us to make automated test for this.
lucie-dubrunfaut
changed the title
[apps::backup::rubrik::restapi::plugin] Token not clean and renewed
[apps::backup::rubrik::restapi::plugin] - custom: Token not clean and renewed
Dec 13, 2024
Hi there,
I have a issue while using rubrik plugin with token management.
The problem is located in request_api function where the token could be renewed when it expire but the cleanning/renew part is never called.
In request_api_paginate function, there is an "$self->{output}->option_exit()" called when authentication is not good and it bypass the second part of request_api function
" if (defined($self->{token}) && $self->{http}->get_code() < 200 || $self->{http}->get_code() >= 300) { ...."
To bypass the problem, I've just comment the "$self->{output}->option_exit()" and it works but it's not really clean.
The text was updated successfully, but these errors were encountered: