-
Notifications
You must be signed in to change notification settings - Fork 45
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
GDrive share doesn't load properly #255
Comments
It seems the GIF got trimmed. Here's the full version: https://www.dropbox.com/s/xlflw36456ukomj/Peek%202017-11-25%2018-15.mp4 |
Ugh. This is almost certainly more horrible-ness with the way Drive
requires that you _don't_ include credentials for requests to public files.
This is failing only for #share links for logged in users (if you visit the
link in an incognito tab, it'll work fine).
Thanks.
…On Sat, Nov 25, 2017 at 3:50 PM, sorawee ***@***.***> wrote:
It seems the GIF got trimmed. Here's the full version:
https://www.dropbox.com/s/xlflw36456ukomj/Peek%202017-11-25%2018-15.mp4
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#255 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAHUU6qCUu8OYIiCNBZw701XlESOhHFSks5s6KepgaJpZM4QqmH4>
.
|
Yeah this is in direct conflict with a fix I made earlier this fall and pushed out recently. Here's the crux of the issue:
As a result of 1-5, the two obvious ideas don't work:
Now I'm thinking that using a |
- Add a parameter "scopes" to /login, which can be "full" to indicate using the full set - Add a session parameter "scopes" to remember which set of scopes the user is using - Set the default set to just email, drive.file, and drive.connect - As a consequence of the smaller set, tell load-spreadsheet to *not* include auth information for logged in users, for the same reasons as #255. That is, logged in users without the spreadsheet scope can't see public spreadsheets, but our API key can if we don't include the access_token - Add a menu item to trigger the new /login logic via a call to reauth() with an extra parameter to ask for full scopes - Rearrange the Bonnie menu and add a View menu; the Bonnie menu was getting huge and unweildy. View now contains the keyboard shortcuts, theme, and font, Bonnie has everything else.
This is a pretty long GIF, but it describes what happens best.
https://giphy.com/gifs/xT0xeyfEG85YhRTy24/fullscreen
That is, a shared file (not the original code file) is occasionally loaded as a blank file in
#editor
mode. But it is always loaded as a blank file in#share
mode. The permission of the file is correct. The console doesn't have any error. This happens across browsers (Firefox 57 and Vivaldi / Chrome 62)The problematic URL: https://code.pyret.org/editor#share=0Bxr4FfLa3goORTBQSmRfOEk3eHM
Note that this link is the stencil file for the interp assignment that we gave to students two months ago, so it definitely used to work.
The text was updated successfully, but these errors were encountered: