Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google docs API v3: Updating a document removes it from shared folder

When I upload a new revision of a document (using the odt format), it is removed from all shared folders.

I'm using OAuth 1 and a ruby client, but it also occurs in the OAuth playground (https://developers.google.com/oauthplayground/)

The flow:

  1. (Create a text document and put it in a shared folder)

  2. Get the document entry: GET /feeds/default/private/full/<docid>.

    It should have a 'shared' label and a link to the folder in #parent

  3. Get the upload link for the document (link @rel~=#resumable-edit-media):

    PUT https://docs.google.com/feeds/upload/create-session/default/private/full/document%3A<docid>

    As I'm not changing any document meta, the body of this request is empty

  4. Upload document body to response.location

  5. The resulting document is not in the shared folder, does not have a shared label or a #parent link.

Is this by design? Any workarounds?

like image 526
Jacek Lach Avatar asked Mar 25 '26 13:03

Jacek Lach


1 Answers

I noticed this using the Java API, it didn't happen until a few days ago. It looks like a regression but since the documents list api is deprecated, I fear it might not be fixed :(

like image 188
ArgiaSbolenfi Avatar answered Mar 29 '26 16:03

ArgiaSbolenfi