P
P
programmerjava2015-07-17 12:09:07
JavaScript
programmerjava, 2015-07-17 12:09:07

Google drive transfer ownership fails?

Greetings!!!
The essence of the problem is simple. Can anyone come across this ..
There is my application in Java. Which transfers the specified file
to another user after certain processing.
I will not show the code. it works well. Everything is right there.
Everything is correct with the settings. The problem arises
when I transfer the use rights to the folder to the user [email protected]@gmail.com.
An error either occurs during transmission, or it is not shown at all, while the folder is not created in any case. With other Google users, it works correctly with the same Google Drive access settings. A cry for help, friends, I have .. I'm
showing an error

com.google.api.client.googleapis.json.GoogleJsonResponseException: 400 Bad Request
{
  "code" : 400,
  "errors" : [ {
    "domain" : "global",
    "location" : "permission.value",
    "locationType" : "other",
    "message" : "Invalid permission value",
    "reason" : "invalid"
  } ],
  "message" : "Invalid permission value"
}

I repeat that the code works correctly.
What are the tips friends? Maybe some application connected to Google drive spoils the weather? Maybe the username doesn't match Google? After all, the error does not show user not found . Maybe somewhere there are advanced google drive settings to receive files from other users ??? What can be?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question