Cyberduck Mountain Duck CLI

Opened 6 months ago

Last modified 5 months ago

#10191 new defect

Cannot upload a directory if its name contains a single quote

Reported by: Vh1F8t3vYxtu Owned by:
Priority: high Milestone:
Component: googledrive Version: 6.3.3
Severity: major Keywords: single quote directory folder name
Cc: Architecture:
Platform: Windows 7

Description

This issue is specifically about Google Drive. I tried the same scenario on a FTP server and it worked.

  • On local computer, create a directory containing a single quote in its name (e.g. foo'bar)
  • Put some file in the directory. There is no issue if the directory is empty.
  • Drag'n'drop the directory to your Google Drive.

Here is the encountered error:

Listing directory failed (/My Drive/Music backups).
Invalid Value. Bad Request. Please contact your web hosting service provider for assistance.
Continue

The directory itself is created, but not its contents. I can also navigate into the directory (but of course it is empty).

Cyberduck 6.3.3 / Windows 7 64-bit

Change History (5)

comment:1 Changed 6 months ago by dkocher

Related to #9792.

comment:2 Changed 6 months ago by Vh1F8t3vYxtu

I have just encountered the same issue with character "À". Interestingly, it works with e.g. "é", so it's about accentuated uppercase. Also note the error message is different:

File not found
/My Drive/Music backups/foo À bar. Please contact your web hosting service provider for assistance.
Continue

Also, I have the setting "Uploads: Preserve modification date" enabled (which btw doesn't affect the issue) and I just noticed files with quotes or "À", etc. in their names don't have their timestamp corrected.

comment:3 follow-up: Changed 5 months ago by Vh1F8t3vYxtu

Last edited 5 months ago by Vh1F8t3vYxtu (previous) (diff)

comment:4 in reply to: ↑ 3 Changed 5 months ago by dkocher

Replying to Vh1F8t3vYxtu:

I searched a bit about this, and it's a known issue in Google Drive...

Then I found, more interesting:

Which links to:

Thanks for digging into this!

Last edited 5 months ago by Vh1F8t3vYxtu (previous) (diff)

comment:5 Changed 5 months ago by Vh1F8t3vYxtu

I guess the first part of the workaround would go to https://g.iterate.ch/projects/ITERATE/repos/cyberduck/browse/googledrive/src/main/java/ch/cyberduck/core/googledrive/FileidDriveListService.java#35.

But I haven't figured out how to add the subsequent "filter false positives" part.

Probably, a developer of Cyberduck could easily solve this :)

Note: See TracTickets for help on using tickets.
swiss made software