Skip to content

Rclone panics when creating gdrive shortcut to native Google document #8990

Closed

Description

@vholer

What is the problem you are having with rclone?

Rclone Google Drive backend panics when trying to create a shortcut on a native Google document.

It works, if the referred .docx is a Word document stored in Google Drive, but fails if it's a native Google document. A little weird thing here is that the file needs to be reffered to with .docx extension even if it's a native Google Document. I.e., the source file is XXX/styl_verze1.docx even though it's a native document.

What is your rclone version (output from rclone version)

rclone v1.72.0
- os/version: fedora 42 (64 bit)
- os/kernel: 6.17.8-200.fc42.x86_64 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.25.4
- go/linking: static
- go/tags: none

(but, happens also with 1.71.0)

Which OS you are using and how many bits (e.g. Windows 7, 64 bit)

Linux, Fedora 42 amd64

Which cloud storage system are you using? (e.g. Google Drive)

Google Drive

The command you were trying to run (e.g. rclone copy /tmp remote:tmp)

$ rclone backend shortcut -vvv --drive-team-drive YYY gdrive-om:/ 'XXX/styl_verze1.docx' 'XXX/Vizuální styl - 2. verze - 2' 

A log from the command with the -vv flag (e.g. output from rclone -vv copy /tmp remote:tmp)

2025/11/23 16:55:42 DEBUG : rclone: Version "v1.72.0" starting with parameters ["rclone" "backend" "shortcut" "-vvv" "--drive-team-drive" "YYY" "gdrive-om:/" "XXX/styl_verze1.docx" "XXX/Vizuální styl - 2. verze - 2"]
2025/11/23 16:55:42 DEBUG : Using config file from "/home/holer/.config/rclone/rclone.conf"
panic: interface conversion: fs.Object is *drive.documentObject, not *drive.Object

goroutine 1 [running]:
github.com/rclone/rclone/backend/drive.(*Fs).makeShortcut(0xc000a90008, {0x3249800, 0x4a46260}, {0x7ffdf3d299ff, 0x70}, 0xc000a90008, {0x7ffdf3d29a70, 0x7e})
	github.com/rclone/rclone/backend/drive/drive.go:3401 +0x94d
github.com/rclone/rclone/backend/drive.(*Fs).Command(0xc000a90008, {0x3249800, 0x4a46260}, {0x7ffdf3d299be?, 0x2cdbde8?}, {0xc000410100, 0x7ffdf3d299fd?, 0xc000545720?}, 0xc0003830b0?)
	github.com/rclone/rclone/backend/drive/drive.go:4001 +0xebc
github.com/rclone/rclone/cmd/backend.init.func1.1()
	github.com/rclone/rclone/cmd/backend/backend.go:105 +0x24d
github.com/rclone/rclone/cmd.Run(0x0, 0x0, 0x49d61a0, 0xc000807bd8)
	github.com/rclone/rclone/cmd/cmd.go:255 +0x125
github.com/rclone/rclone/cmd/backend.init.func1(0x49d61a0, {0xc0004100e0, 0x4, 0x7})
	github.com/rclone/rclone/cmd/backend/backend.go:74 +0xe6
github.com/spf13/cobra.(*Command).execute(0x49d61a0, {0xc000410000, 0x7, 0x7})
	github.com/spf13/[email protected]/command.go:1015 +0xb02
github.com/spf13/cobra.(*Command).ExecuteC(0x49d4200)
	github.com/spf13/[email protected]/command.go:1148 +0x465
github.com/spf13/cobra.(*Command).Execute(...)
	github.com/spf13/[email protected]/command.go:1071
github.com/rclone/rclone/cmd.Main()
	github.com/rclone/rclone/cmd/cmd.go:541 +0x31
main.main()
	github.com/rclone/rclone/rclone.go:14 +0xf

Activity

  1. added a commit that references this issue on Nov 24, 2025
    0b4e582
  2. ncw commented on Nov 24, 2025

    @ncw
    Member

    That was sloppy coding (my fault!)

    Can you give this a try please?

    v1.73.0-beta.9325.0b4e58228.fix-8990-drive-crash on branch fix-8990-drive-crash (uploaded in 15-30 mins)

  3. added theissue type on Nov 24, 2025
  4. added this to the v1.73 milestone on Nov 24, 2025
  5. ncw commented on Jan 30, 2026

    @ncw
    Member

    I've merged this to master now which means it will be in the latest beta in 15-30 minutes and released in v1.73

  6. added a commit that references this issue on Jan 30, 2026
    40f2e84
  7. added a commit that references this issue on Feb 14, 2026
    d9de6c5
  8. added a commit that references this issue on Jul 20, 2026
    0af84ef
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions