Based on Couple of questions regarding filename length and filename encoding thread it became apparent that crypt remote regardless of files' names encoding used does not allow all unicode characters.
Steps to reproduce:
Create crypt remote on top of physical remote supporting base32768
encoding, e.g.: onedrive, dropbox, iDrive, Box
[remote]
...
[remote-crypt]
type = crypt
remote = remote:test
filename_encoding = [base32,base64,base32768]
...
- Unzip locally base32768.zip file - it contains set of files with every single unicode character used by
base32768
- Copy files to remote -
rclone copy . remote:
- works OK - Copy files to crypt remote -
rclone copy . remote-crypt:
- always ERROR
I have tested it using iDrive and onedrive - both remotes support all base32768
characters.
But when using crypt things get weird as some error codes do not make sense...
Problematic character is in 0062-␀␁␂␃␄␅␆␇␈␉␊␋␌␍␎␏␐␑␒␓␔␕␖␗␘␙␚␛␜␝␞␟.txt
file - it is enough to copy only this file to get below results.
- iDrive - crypt with
base64
2023/09/24 20:06:18 ERROR : 0062-␀‛␁‛␂‛␃‛␄‛␅‛␆‛␇‛␈‛␉‛␊‛␋‛␌‛␍‛␎‛␏‛␐‛␑‛␒‛␓‛␔‛␕‛␖‛␗‛␘‛␙‛␚‛␛‛␜‛␝‛␞‛␟.txt: Failed to copy: XMinioInvalidObjectName: Object name contains unsupported characters
- iDrive - crypt with
base32768
3>ERROR : 0062-␀‛␁‛␂‛␃‛␄‛␅‛␆‛␇‛␈‛␉‛␊‛␋‛␌‛␍‛␎‛␏‛␐‛␑‛␒‛␓‛␔‛␕‛␖‛␗‛␘‛␙‛␚‛␛‛␜‛␝‛␞‛␟.txt: Failed to copy: SlowDown: Resource requested is unreadable, please reduce your request rate
- onedrive - crypt with
base32
2023/09/24 19:50:56 ERROR : 0062-␀‛␁‛␂‛␃‛␄‛␅‛␆‛␇‛␈‛␉‛␊‛␋‛␌‛␍‛␎‛␏‛␐‛␑‛␒‛␓‛␔‛␕‛␖‛␗‛␘‛␙‛␚‛␛‛␜‛␝‛␞‛␟.txt: Failed to copy: invalidRequest: parameterIsTooLong: Parameter Exceeds Maximum Length
2023/09/24 19:50:56 ERROR : Attempt 1/3 failed with 1 errors and: invalidRequest: parameterIsTooLong: Parameter Exceeds Maximum Length
It is either a bug or crypt has limitations we do not documented.