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

Replace default delete dlist action when synchronizing missing files #4896

Open
Zcooger opened this issue Feb 26, 2023 · 1 comment
Open

Comments

@Zcooger
Copy link

Zcooger commented Feb 26, 2023

Hello, I write this ticket to suggest adding possibility to replace default action that deletes dlist files with "move to" (GDrive Team Shared Drive) trash or another folder of choice.
Due to permission restrictions (I am content manager, nor manager) I am unable to synchronize changes to missing files (due to 403 error) and I'm required to put unnecessary files to a dedicated folder instead so the manager removes/reviews them manually.
With other software (AirLive Drive/Air Explorer/RaiDrive) I am able to actually delete the files.
I tried using full access OAuth token but I was unsuccessful with it, it made no difference.
Topic(s) that I'm familiar with: https://forum.duplicati.com/t/the-remote-server-returned-an-error-403-forbidden-with-google-drive/723

delete duplicati-20230226TXXXXXXZ.dlist.zip.aes:

System.Net.WebException: The remote server returned an error: (403) Forbidden.

   w Duplicati.Library.Utility.AsyncHttpRequest.AsyncWrapper.GetResponseOrStream()

   w Duplicati.Library.Utility.AsyncHttpRequest.GetResponse()

   w Duplicati.Library.JSONWebHelper.GetResponse(AsyncHttpRequest req, Object requestdata)

   w Duplicati.Library.JSONWebHelper.ReadJSONResponse[T](AsyncHttpRequest req, Object requestdata)

   w Duplicati.Library.Backend.GoogleDrive.GoogleDrive.Delete(String remotename)

   w Duplicati.Library.Main.BackendManager.DoDelete(FileEntryItem item)
@Xavron
Copy link

Xavron commented Feb 27, 2023

It is indeed nice to move to trash instead. I would guess they don't have that function coded. Its easy enough if it can be used without additional changes.

Looks like it might be a quick change since it looks like the query disregards trashed files. Although, I only did a quick look.

Edit...

Looking into it slightly further, someone would probably want to also do various checks and settings at the same time and get that out of the way too. So it would take a bit longer.

Since I probably won't touch this myself unless I felt like setting it all up just to do it when I don't use it with Duplicati and that's just not to be expected here.

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

No branches or pull requests

3 participants