microsoft/restler-fuzzer

Inconsistent Auth Error Logs from Docker Image v9.1.0 to v9.1.1

Aperta

#726 aperta il 3 apr 2023

 (0 commenti) (0 reazioni) (0 assegnatari)Python (329 fork)auto 404
authhelp wanted

Metriche repository

Star
 (2929 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

Description

When supplying my own settings file that had an incorrect path to my auth script, I am seeing different error messages between the two Docker images. The v9.1.0 was descriptive and showed me the error was due to not being able to find the file supplied in my settings.json: image

The v9.1.1 error for the same issue was a bit harder to debug. The logs pointed to an unterminated string literal instead: image

Steps to reproduce

  1. Pull and compile the RESTler Docker image for v9.1.0
  2. Supply a custom settings file with an incorrect path to an auth script such as: { "per_resource_settings": {}, "max_combinations": 20, "token_refresh_cmd": "/some-wrong-path/auth_script.sh", "token_refresh_interval": 600, "target_port": 443 }
  3. Run the container in Test mode and view the network.testing logs
  4. Repeat steps 1-3 for Docker image v9.1.1

Expected results

Container from v9.1.1 fails to generate token due wrong path specified from settings file.

Actual results

Container from v9.1.1 fails to generate token due to an unterminated string literal.

Environment details

OS: Linux

Guida contributor