Proposal
It is not possible to modify the root_dir using win11 because the attribute "--root-dir" contains "=" like an extra character and when this character is used to run wiremock-standalone the mappings file and __files file are created in "C:/" and not in the expected path.
| cmd.append("--root-dir=") |
Python Script to reproduce the bug:
importrequestsfrompathlibimportPathfromwiremock.server.serverimportWireMockServerfromwiremock.constantsimportConfigwithWireMockServer(port=8080, root_dir=Path('wiremock_demo').absolute()) aswm:
Config.base_url='http://localhost:{}'.format(wm.port)
response=requests.get(Config.base_url+"/users")
print(response.status_code)
print(response.json())Expected command:

Reproduction steps
- Run this command
java -jar wiremock-standalone-3.1.0.jar --root-dir= "C:\<some path>" - Verify that the mappings and __files files are not created in the expected path
- Verify that the mappings and __files files are created in
C:/
References
No response
Proposal
It is not possible to modify the root_dir using win11 because the attribute "--root-dir" contains "=" like an extra character and when this character is used to run wiremock-standalone the mappings file and __files file are created in "C:/" and not in the expected path.
python-wiremock/wiremock/server/server.py
Line 64 in 20442b2
Python Script to reproduce the bug:
Expected command:

Reproduction steps
java -jar wiremock-standalone-3.1.0.jar --root-dir= "C:\<some path>"C:/References
No response