-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
feat(FilenameValidator): allow to sanitize filenames #52688
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
811ea36 to
d293c7a
Compare
Share the filename sanitizing with the OCP filename validator. Signed-off-by: Ferdinand Thiessen <[email protected]>
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