-
Notifications
You must be signed in to change notification settings - Fork 35
Feature: Do not add nullbytes when persisting Long Filename #122
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
overheadhunter
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe we can broaden this fix for further unprintable chars. And simplify the check. And rename some methods. 😉
src/main/java/org/cryptomator/cryptofs/health/shortened/ShortenedNamesCheck.java
Outdated
Show resolved
Hide resolved
src/main/java/org/cryptomator/cryptofs/health/shortened/ShortenedNamesCheck.java
Outdated
Show resolved
Hide resolved
src/main/java/org/cryptomator/cryptofs/health/shortened/ShortenedNamesCheck.java
Outdated
Show resolved
Hide resolved
src/main/java/org/cryptomator/cryptofs/health/shortened/ShortenedNamesCheck.java
Outdated
Show resolved
Hide resolved
src/main/java/org/cryptomator/cryptofs/health/shortened/ShortenedNamesCheck.java
Outdated
Show resolved
Hide resolved
src/main/java/org/cryptomator/cryptofs/health/shortened/TrailingNullBytesInNameFile.java
Outdated
Show resolved
Hide resolved
… so split string at that position, check before for base64url and after for any byte * adjust check, results and unit tests * add doc
overheadhunter
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a suggestion, but I'm fine to merge it as is.
src/main/java/org/cryptomator/cryptofs/health/shortened/ShortenedNamesCheck.java
Show resolved
Hide resolved
|
SonarCloud Quality Gate failed. |








This closes #121.
It adds two additional results to the shortend health check:
NotDecodableLongNameif the long filename ist not base64url encodedTrailingNullBytesif the stored string in name.c9s is affected by issue Long filesnames are persisted with NULL Bytes at the end #121