Bug 15173 - "nice" error messages contain unexpanded % placeholders
Summary: "nice" error messages contain unexpanded % placeholders
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Tools (show other bugs)
Version: unspecified
Hardware: All All
: P5 enhancement (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
Depends on:
Reported: 2022-09-14 01:06 UTC by Douglas Bagnall
Modified: 2022-09-14 01:06 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Douglas Bagnall 2022-09-14 01:06:52 UTC
We *could* fill out these in many cases, in the outer layers. 

For example, when `samba-tool dns` gets NT_STATUS_IO_TIMEOUT and says 

"{Device Timeout} The specified I/O operation on %hs was not completed before the time-out period expired."

the %hs is probably the server name, as it likely is for any NT_STATUS error from dnsserver rpc. So dns_connect() in python/samba/netcmd/dns.py could do the substitution in the error path.

But we'd need to check against windows, and it is not currently a priority.