feat(FilenameValidator): allow to sanitize filenames#52688
Conversation
811ea36 to
d293c7a
Compare
Share the filename sanitizing with the OCP filename validator. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
d293c7a to
6cf1870
Compare
|
@susnux during a test it was figured out, that the wrong default replacement is being used. As per "standard", the "" should be the default and not the " ". @AndyScherzinger as discussed... |
|
Not sure I understand this comment, which standard? |
|
@susnux the default is the underscore, for reference see https://support.microsoft.com/en-us/office/why-has-my-filename-changed-f14307b4-e9ff-4cd9-be79-9524bb323744 |
Hi, this means, if you run the occ without any parameters, it will use " " as the replacement - but it needs to be "_" unless the user chooses differently |
|
Ah ok, makes sense. The |
|
@susnux Do you have a clever idea if this could also be covered in a cleanup run? |
We excluded case issues when implementing as Windows (at least since Windows 10). Otherwise we need to also implement this which is much deeper in the server code than filename validation, probably somewhere on storage level like we do for some SAMBA storages where case sensitivity was not enabled. |

Summary
Share the filename sanitizing with the OCP filename validator.
Checklist