-
Notifications
You must be signed in to change notification settings - Fork 309
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
Replay not using AUTHORIZATION TOKEN from token_refresh_command #848
Comments
Tried to debug and in
This results in the following
|
I also encountered the same problem. |
Hi, Same here. Did you find where the pb is ? |
Replay is also supposed to support --settings but if you are passing authentication token via the engine_settings.json file it does not work either on my side |
… during replay Replace execute_token_refresh_cmd with execute_token_refresh to ensure the token is refreshed and set as latest_token_value.
…eplay Replace execute_token_refresh_cmd with execute_token_refresh to ensure the token is refreshed and set as latest_token_value.
Description
It appears that the replay of bugs doesn't use the
AUTHORIZATION TOKEN
, when the token is provided using--token_refresh_command
and--token_refresh_interval
parameters.The token is used as expected, and confirmed to be valid, when the
bug_buckets/*.replay.txt
is modified by hand to replaceAUTHORIZATION TOKEN
byAuthorization: Bearer RealTokenHere
.Steps to reproduce
These are not really reproduction steps, I hope someone will be able to confirm this using a project with
Authorization: Bearer
token.I'm running a replay of a bug found by the fuzzer
The main contents of
Fuzz/RestlerResults/experiment525/bug_buckets/PayloadBodyChecker_500_1.replay.txt
isThe contents of
/usr/src/restler-fuzzer/authentication_token.sh
isIf I replace
AUTHORIZATION TOKEN
withAuthorization: Bearer RealTokenHere
in thebug_buckets/*.replay.txt
, then the bug replays as expected.Expected results
Starting task Replay...
Using python: 'python3' (Python 3.11.6)
Task Replay succeeded.
Collecting logs...
Actual results
When using
AUTHORIZATION TOKEN
with--token_refresh_command
and--token_refresh_interval
, the fuzzer logs the following on screenand
/usr/src/restler-fuzzer/Replay/EngineStdOut.txt
containsEnvironment details
PRETTY_NAME="Alpine Linux v3.18"; Python 3.11.6; No .NET SDKs were found; RESTler version: 9.2.3; aef01a5
The text was updated successfully, but these errors were encountered: