Skip to content
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

Renaming of files to a different case leads to file duplication. #33

Open
SergioBertolinSG opened this issue Feb 16, 2018 · 3 comments
Open
Labels

Comments

@SergioBertolinSG
Copy link

Steps to reproduce

  1. Enable dropbox app. (release/1.0.1).
  2. Set up dropbox mount point, grant access and so on. (all ok).
  3. Upload a file for example perrito.jpg.
  4. Rename it to a different case combination for example PERRITO.jpg.
  5. See the warning and refresh the page.

Expected behaviour

There is a warning informing that you cannot rename the file because it is already in use. (Maybe this should be more clear, saying that you are in a case-sensitive storage)

And only one file remains.

Actual behaviour

There is a warning

The name "perrito.jpg" is already used in the folder "/DropboxAPINUEVA/MAYUSCULAS2". Please choose a different name.

But it creates a second file:

screen shot 2018-01-10 at 18 19 09

Server configuration

Operating system:
Ubuntu 16.04

Web server:
Apache

Database:
MySQL

PHP version:
7.0

Cache
DB

ownCloud version: (see ownCloud admin page)
{"installed":true,"maintenance":false,"needsDbUpgrade":false,"version":"10.0.4.4","versionstring":"10.0.4","edition":"Community","productname":"ownCloud"}

Updated from an older ownCloud or fresh install:
Fresh

The content of config/config.php:


Are you using external storage, if yes which one: local/smb/sftp/...
Yes, dropbox.

Are you using encryption:
No.

Logs
Nothing appears in the logs as warnings or errors.

Client configuration

Browser
Chrome

@Hemant-Mann
Copy link
Collaborator

@SergioBertolinSG Not sure what this could be fixed in dropbox

I'll try to keep it simple

  • Consider Your file ABC.txt exists in dropbox and then you try to upload abc.txt (same file different name casing)
  • ownCloud then asks the dropbox whether this file -> abc.txt exists which it does
  • then ownCloud sees that this file is not present in oc_filecache but exists in dropbox so it thinks that file cache is outdated and it updates that (the reason for duplicate file)

@SergioBertolinSG
Copy link
Author

@jvillafanez how does WND solves this problem?

@PVince81
Copy link
Contributor

PVince81 commented Feb 5, 2019

See #52 for a new flysystem option.

I doubt this will fully solve the issue but might be worth a try

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants