Inconsistent Auth Error Logs from Docker Image v9.1.0 to v9.1.1
#726 aberto em 3 de abr. de 2023
Métricas do repositório
- Stars
- (2.929 estrelas)
- Métricas de merge de PR
- (Métricas PR pendentes)
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:

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

Steps to reproduce
- Pull and compile the RESTler Docker image for v9.1.0
- 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 }
- Run the container in Test mode and view the network.testing logs
- 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