Cyberduck Mountain Duck CLI

Opened 9 months ago

Closed 3 weeks ago

#10191 closed defect (duplicate)

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 (7)

comment:1 Changed 9 months ago by dkocher

Related to #9792.

comment:2 Changed 8 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 7 months ago by Vh1F8t3vYxtu

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

comment:4 in reply to: ↑ 3 Changed 7 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 7 months ago by Vh1F8t3vYxtu (previous) (diff)

comment:5 Changed 7 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 :)

comment:6 Changed 5 weeks ago by Vh1F8t3vYxtu

On June, Google marked issue 64468406 as resolved, but it's only partially fixed:

  • fixed: folder name with accents
  • not fixed: folder name with single quotes (and folder not empty)

Thus, I'm kindly asking to consider implementing the workaround I linked to above.

This way, we wouldn't depend on Google to fix the bug on their side, waiting for months/years, if ever they fix it some day...

comment:7 Changed 3 weeks ago by dkocher

  • Resolution set to duplicate
  • Status changed from new to closed

Duplicate for #9792.

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