Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

External Storage Mounting - Issue with Google Drive #1221

Closed
henrynopo opened this issue Jan 18, 2013 · 9 comments
Closed

External Storage Mounting - Issue with Google Drive #1221

henrynopo opened this issue Jan 18, 2013 · 9 comments
Labels

Comments

@henrynopo
Copy link

By mistake, my Google-Drive was unmounted from the external storage. Then I tried to mount it again, but always without success.

After trying search in Owncloud.org forum, I found the same issues happening to a lot of people.

The failure seems due to two issues:

  • Cookie: before clear the necessary cookie, the mounting after authorisation on Google will return nothing in the OwnCloud, i.e. nothing shows in the mounting line, or no corresponding folder (such as "GoogleDrive") will be created in the "Files".
  • Previously mounted: it seems that the google account which has already be used for mounting into owncloud cannot be re-mounted. I am not professional for programming but it seems there is something wrong in the file \apps\files_external\ajax\google.php which cannot deal with such a re-mount case.

Also, is it possible to update the auth version to the latest, i.e. to use the API access?

Thanks.

@MTGap
Copy link
Contributor

MTGap commented Jan 19, 2013

What is the cookie? What auth version?

I'm having trouble understanding what you're saying, can you provide exact steps to reproduce. This is also a good branch to test on with external storage: #1031

@henrynopo
Copy link
Author

I got the same problem as reflected in the OwnCloud Forum. The topic is "Using external storage Dropbox GDrive with owncloud 4.5", refer to : http://forum.owncloud.org/viewtopic.php?f=3&t=3696

The issue due to unmounting Google Drive from external storage are reflected inside, such as by "topedia". It seems a lot of people got the same issue too. Your post #400 seems similar.

The issue unable to mount Google Drive even for the first time was also reflected. I tried by myself as advised in that topic that by clearing all the cookies of Internet Explorer the google drive can be mounted into the "Files" even though access may not be granted successfully.

For OAuth version, my understanding it that the Owncloud 4.5 is using google OAuth 1.0 or 2.0 which are recommended by Google to be updated to the latest by using API access. When I check the scope of access requested by the App, it seems requesting for the previous Google Docs instead of the actual Google Drive.

Anyway, I am not IT guy but just curious with the External Storage function provided by OwnCloud. Thanks.

@torlasz
Copy link

torlasz commented Jan 28, 2013

I am not able to mount a Google Drive with a freshly installed 4.5.6. I get to google page where you can push the "Grant access" button, then OC comes back with no drive attached. No mount.php files gets generated, nothing in the database, nothing in the log file. That's what I get in the ssl_access log file:

193.6.210.35 - - [28/Jan/2013:15:32:59 +0100] "POST /net-tar2/?app=files_external&getfile=ajax/google.php HTTP/1.1" 200 237
193.6.210.35 - - [28/Jan/2013:15:33:17 +0100] "GET /net-tar2/settings/personal.php?oauth_verifier=xprhA2NdmEMY_6RAX1VPhN4t&oauth_token=4%2FIS0rhBYRz1TQKJRm1bwv1rgteLPt HTTP/1.1" 200 13425
193.6.210.35 - - [28/Jan/2013:15:33:17 +0100] "GET /net-tar2/?app=files_external&getfile=css%2Fsettings.css HTTP/1.1" 304 -

I am in the process of intoducing OC at our local university, so I am doing lots of tests. I wasn't able to mount Google drive with 4.5.4, I had success with 4.5.5, now I did a fresh install with 4.5.6 and nothing again. I went to my google account, revoked the access to my own service thinking that was the problem. But that didn't help either.

What can be the problem?

@MTGap
Copy link
Contributor

MTGap commented Jan 28, 2013

@torlasz Everything should be fixed in this pull request #1031

Please test it, I'm still waiting for approval to merge.

@torlasz
Copy link

torlasz commented Jan 28, 2013

I'm not familiar with git, that's what I did:
git clone https://github.com/owncloud/core ./owncloud
git clone https://github.com/owncloud/apps
git clone https://github.com/owncloud/3rdparty
cd owncloud
git branch --track external_storage_ui_feedback remotes/origin/external_storage_ui_feedback
git checkout external_storage_ui_feedback
I set up the alias, db, permissions etc. Enabled the external storage app.
My problem is that I cannot test attaching Gdrive, because selecting anything from drop down boxes doesn't do anything. I cannot even change the language. Version is 4.91.2 in config.php. What am I doing wrong?
I would be happy to test it, but I am stuck.

@torlasz
Copy link

torlasz commented Jan 28, 2013

Sorry, for the trouble, I got it, the 3rd party directory was not set up properly. Now attaching a Google Drive works as expected!

@MTGap
Copy link
Contributor

MTGap commented Jan 28, 2013

@torlasz Great! Could you add a 👍 to #1031

@torlasz
Copy link

torlasz commented Jan 29, 2013

Sure. I am really impressed by the speed developers respond here to issues raised! Keep up the good work!

@torlasz
Copy link

torlasz commented Mar 4, 2013

Since pull request #1031 has been merged into OC 5 RC1 this issue can be regarded as fixed in OC 5

@lock lock bot locked as resolved and limited conversation to collaborators Aug 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants