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

Files disappear when overwriting due to GD revisions #32

Open
mmattel opened this issue Jun 14, 2019 · 1 comment
Open

Files disappear when overwriting due to GD revisions #32

mmattel opened this issue Jun 14, 2019 · 1 comment
Labels

Comments

@mmattel
Copy link

mmattel commented Jun 14, 2019

Initial copy a file via oC to a GD mount.
Then change the content of the file by editing it on your local computer.
Re-upload the file, the name is the same.

What happens is, that the files gets deleted in oC, but is present in GD as actual and older revision.

When you delete the revisions in GD, refresh, the file appears and is synced again.

oC can´t manage multiple files with the same name, therefore they are "deleted".

It seems that the API access currently used is not managing revisions.
https://developers.google.com/drive/api/v3/manage-revisions
https://developers.google.com/drive/api/v3/manage-changes

Background:
Mounting a GD
Syncing it with the client
Regular dropping existing content with updates into that mount.
As more changed files you have, as less files you see via oC 💥
But they are present as revsions in GD itself.

@DeepDiver1975 (pls assign to someone who can fix that, I do not know whom to add)

@mmattel mmattel added the bug label Jun 14, 2019
@mmattel
Copy link
Author

mmattel commented Jun 24, 2019

I digged a bit in the code.
https://github.com/owncloud/files_external_gdrive/blob/master/lib/Storage/Google.php
There is a mechanism to check if filenames are present multiple times in a folder.
This mechanism can be improved to take only that file with the youngest date vs to reject all files having the same name. Then it would behave like a normal filesystem for oC.

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

1 participant