Task #11636 (new)
API for file path sanitization
|Reported by:||mtbcarroll||Owned by:||mtbcarroll|
Since https://github.com/openmicroscopy/openmicroscopy/pull/1109 the rules for how file paths must be sanitized for import are a server configuration option. However, ImportLibrary.createImport just guesses at what the server will accept.
One could add a server API method that actually tells what the rules are, and then the client could query and apply them in creating the proposed FilesetEntrys, thus sanitizing exactly as much as necessary for the current setting of omero.fs.repo.path_rules.
(Or, if preferred, the client could attempt without sanitization, and use the detail of the resulting FilePathNamingException from importFileset to fix accordingly in iterative attempts.)