New Google Drive URL

Bug #1287350 reported by Kristina Hoeppner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
High
Son Nguyen
1.6
Fix Released
High
Unassigned
1.7
Fix Released
High
Unassigned
1.8
Fix Released
High
Unassigned

Bug Description

The Google Apps code is broken as Google issued new URLs. Unfortunately, they are not yet all visible to everyone. I can still see the Google Docs URL, but Ulrike Montgomery from Germany already has the new Drive one.

Here is one for a document:

https://drive.google.com/file/d/0B49bpo_XY2e_SHlfLUYzM0ZoXzg/edit?usp=sharing

Revision history for this message
Kristina Hoeppner (kris-hoeppner) wrote :

We will need the URLs and the iframe embed code for the following:

- Google Docs
- Google Spreadsheet
- Google Presentation
- Google Form (not for the Google Apps part, but good to know nevertheless)
- Google Books
- Google Calendar (just to be sure that nothing changed there as that shouldn't be Drive)

Revision history for this message
Kristina Hoeppner (kris-hoeppner) wrote :

and Google Drawing

Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "master" branch: https://reviews.mahara.org/3064

Revision history for this message
Aaron Wells (u-aaronw) wrote :

To clarify: The Google Apps block allows users to take the URL that get from Google Docs' "share" button, paste that into a text field, and our code transforms it into the correct iframe embed code. This relies on regular expressions that are able to extract the Google Doc ID from the share URL.

Google has begun changing the generated "share" URLs to use the domain name "drive.google.com" instead of "docs.google.com". This means that the regular expressions we use to extract the Google Doc ID, no longer match the provided URL, and that's why the block doesn't work.

To thoroughly test this, we will need the assistance of someone who has an account that is generating the new "drive.google.com" addresses. If you are such a person, please speak up here and let us know! :)

Aaron Wells (u-aaronw)
no longer affects: mahara/1.9
Robert Lyon (robertl-9)
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers