microsoft/restler-fuzzer

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

Open

#726 opened on Apr 3, 2023

 (0 comments) (0 reactions) (0 assignees)Python (329 forks)auto 404
authhelp wanted

Repository metrics

Stars
 (2,929 stars)
PR merge metrics
 (PR metrics pending)

Description

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

Contributor guide