nextcloud / integration_dropbox

🧊 Dropbox integration into Nextcloud
GNU Affero General Public License v3.0
24 stars 10 forks source link

Sync problems with case sensitive Nextcloud host #9

Closed normen closed 4 months ago

normen commented 3 years ago

Hey,

first of all thanks for this software!

I noticed that there seem to be some issues when the NextCloud instance has a filesystem with case sensitivity enabled. I am getting double folders which in turn won't sync properly with clients that don't have case sensitivity support. The latter is probably more of a problem of NextCloud however I don't see any double folders in DropBox so I suppose the flattening should happen at the stage of this plugin already.

Cheers, Normen

Roshak commented 3 years ago

Same here,

i have duplicated folders one with a capitalized first letter and the other one with a lowercase first letter.

In my dropbox folders the folder is just one with a capitalized first letter.

thanks!

feenstaub-lb commented 2 years ago

I have exactly the same problem: the sync works fine, only the thing with the case sensitive folder names (as described above), would be great if there was a solution here.

feenstaub-lb commented 2 years ago

@johnnyasantoss @vitormattos @eneiluj could this maybe the solution?

Also, while Dropbox is case-insensitive, it makes efforts to be case-preserving. Metadata.name will contain the correct case. Metadata.path_display usually will contain the correct case, but sometimes only in the last path component. If your app needs the correct case for all path components, it can get it from the Metadata.name or last path component of each relevant Metadata.path_display entry.

source: [https://www.dropbox.com/developers/documentation/http/documentation]

johnnyasantoss commented 2 years ago

In my use case, I was trying to export all my data from Dropbox. So what I did was:

1) Export everything from Dropbox, zipping all of it. 2) Unzipped all of my data to a vfat fs (link) overwriting files (in my case they were all the same) and merging folders with the same name 3) Synced all of my files from that fs to Nextcloud and voilà

WARNING: This probably will lead to data loss - in my case it was fine, so analyze your own yourself.

I know this doesn't help the extension, but, to me, I wanted the files in my Nextcloud instance and this did it. 🤷🏾‍♂️

feenstaub-lb commented 2 years ago

I know this doesn't help the extension, but, to me, I wanted the files in my Nextcloud instance and this did it. 🤷🏾‍♂️

Hey, that's not the solution for your nextcloud extension - but though very helpful. Thank you very much for your response!

hvisage commented 2 years ago

In my use case, I was trying to export all my data from Dropbox. So what I did was:

2. Unzipped all of my data to a vfat fs ([link](https://unix.stackexchange.com/a/195354/256002)) overwriting files (in my case they were all the same) and merging folders with the same name

The VFAT extraction step is technically not needed, just extract inside the NextCloud folder - but that is NOT the issue/problem we try to solve, but rather to have the user import from their dropbox "seamlessly" which is the case this case preserving fails with - also had multiple duplicates (case sensitive duplicates that is) from a non-uplicate DropBox once imported into NC 24.

Wish there was a "Case Insensitive" option for NC

marcelklehr commented 4 months ago

This is an issue with Nextcloud, not this app.