The sanitize option gained two values - replace spaces, and replace "/"
and spaces - and "/" is now documented as always surviving in
user-supplied names. Results are unchanged for the values 0.1.0 accepted:
"/" and "" both reduce the new named-path character set to the empty
tuple 0.1.0 hardcoded, and the auto branches build the same tuple either
way. The bump is for the input form, which now offers options an older
job was never able to pick.
export_remote.xml carries 0.2.0 and the untouched 0.1.0 is frozen as
export_remote_0.1.0.xml, with both registered in tool_conf.xml.sample and
the framework sample_tool_conf.xml.
Note this inverts the convention used by the bundled collection
operation tools, where the bare filename holds the old version and the
new one carries the version suffix.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Use descriptive variable names and explain the named-path slash exception. Align the tool labels and help text with the sanitizer behavior of replacing characters with underscores.
Reworks the space-sanitizing option from #18455.
The select value is now the set of characters to strip, so splitting it
yields the individual characters. Drops the "space" sentinel and its
tripled #if/#else, and adds a "/ and spaces" option - the old select
forced an either/or.
Fixes two bugs:
- "Don't sanitize values" passed [""] to filesystem_safe_string, and
str.replace("", "_") inserts at every position, so that option mangled
every path it touched.
- The invalid_chars select was ignored entirely for datasets_named,
which the PR author correctly reported.
Honoring the select for named datasets is what surfaces the underlying
contradiction: "/" is both the documented subdirectory syntax for that
field and the default sanitize target. "/" is now always kept for
user-supplied names, stated in the help text for both params rather
than leaving the control silently dead.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
We were passing 'false' to --export-metadata-files, but it was
considered True (non-zero length string), and the metadata was
always included in the export.
Co-authored-by: Marius van den Beek <m.vandenbeek@gmail.com>