odeke-em / drive

Google Drive client for the commandline
Apache License 2.0
6.68k stars 428 forks source link

drive share --with-link leads to "googleapi: Error 400: Permission value field required" #995

Open jean-christophe-manciot opened 6 years ago

jean-christophe-manciot commented 6 years ago

Ubuntu 17.10 drive commit a2467472dd1d52e5a64a9cf688a7fb0f2b338cb2

drive share --with-link -no-prompt -verbose 'Issues/Ubuntu/Libvirt/qemu-system-xxx processes started by libvirtd.png'
successful share for qemu-system-xxx processes started by libvirtd.png with email "", role "reader" accountType "anyone"

share err qemu-system-xxx processes started by libvirtd.png: googleapi: Error 400: Permission value field required, required

The file is shared online but the only way to get the URL is to reshare it from a web browser..

odeke-em commented 6 years ago

Hello @jean-christophe-manciot, thank you for reporting this and happy 2018!

I can reproduce this too. I'd bet you the Googleapis changed as this previously worked, I have been able to reproduce the same issue offline

$ drive share --with-link "a1/b2/c3/d4/hello"
Provide access for accountType(s)
    user
    anyone

For roles(s)
    reader

Addressees:
    + Anyone with the link

File(s) to share:
    + hello

Proceed with the changes? [Y/n]: y
successful share for hello with email "", role "reader" accountType "anyone"

share err hello: googleapi: Error 400: Permission value field required, required