googledocs block doesnt like link from google docs

Bug #856130 reported by shanen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Medium
Melissa Draper

Bug Description

I was wondering if the GoogleApps block type supports the google viewer for embedding views of PDFs?
e.g. this one:
https://docs.google.com/viewer?a=v&pid=explorer&chrome=true&srcid=0B9K03PfvoQBFYzI4NDk4OGUtMTkwNC00YmQwLTkzZjMtNWU4YTQzZTk5YTgy&hl=en

I would like the PDF to show up in Mahara, but when I put this URL in it simply doesn’t show.

Also the normal GoogleDocs block is broken because the URL google provides is BROKEN!

e.g. this: https://docs.google.com/a//document/pub?id=1BWGRmw6V8y7vkPPzOaJPh9EaCFztn7PhHEHpKfrCM0o
should be https://docs.google.com/document/pub?id=1BWGRmw6V8y7vkPPzOaJPh9EaCFztn7PhHEHpKfrCM0o
(no “a/” )

mahara 1.4.0
Windows XP SP 2
firefox 6.0.2

Cheers,
Shane.

Revision history for this message
François Marier (fmarier) wrote :

We'll look at the normal GoogleDocs block to see if we can fix that (or whether it has already been fixed in bug #843588) in 1.4.1.

The other one is more of a feature request so it would wait until the next release at least.

Changed in mahara:
milestone: none → 1.4.1
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Kristina Hoeppner (kris-hoeppner) wrote :

The Google document embeds fine for me with the fix from bug #843588 (I only tested it on master, but the fix is the same as for 1.4.1)

Revision history for this message
shanen (shane-nuessler-canberra) wrote : RE: [Bug 856130] Re: googledocs block doesnt like link from google docs

Hi Kristina,
Could you tell me where I can find the ETA for 1.4.1? or is it already out?
Thanks,
Shane.

-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of Kristina Hoeppner
Sent: Monday, 26 September 2011 2:22 PM
To: Shane.Nuessler
Subject: [Bug 856130] Re: googledocs block doesnt like link from google docs

The Google document embeds fine for me with the fix from bug #843588 (I
only tested it on master, but the fix is the same as for 1.4.1)

--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/856130

Title:
  googledocs block doesnt like link from google docs

Status in Mahara ePortfolio:
  Triaged

Bug description:
  I was wondering if the GoogleApps block type supports the google viewer for embedding views of PDFs?
  e.g. this one:
  https://docs.google.com/viewer?a=v&pid=explorer&chrome=true&srcid=0B9K03PfvoQBFYzI4NDk4OGUtMTkwNC00YmQwLTkzZjMtNWU4YTQzZTk5YTgy&hl=en

  I would like the PDF to show up in Mahara, but when I put this URL in
  it simply doesn’t show.

  Also the normal GoogleDocs block is broken because the URL google
  provides is BROKEN!

  e.g. this: https://docs.google.com/a//document/pub?id=1BWGRmw6V8y7vkPPzOaJPh9EaCFztn7PhHEHpKfrCM0o
  should be https://docs.google.com/document/pub?id=1BWGRmw6V8y7vkPPzOaJPh9EaCFztn7PhHEHpKfrCM0o
  (no “a/” )

  mahara 1.4.0
  Windows XP SP 2
  firefox 6.0.2

  Cheers,
  Shane.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/856130/+subscriptions

Revision history for this message
Melissa Draper (melissa) wrote :

The issue is that google likes to give out different formats of the docs URLs for some use cases:

For example:

I uploaded this document: https://docs.google.com/document/d/1EQUAo9tRk6QXAgS6NAl9YaawZt6DfEgcDryK2GmLjx0/edit?hl=en_US

I copied this document from somewhere on the internet and have reshared it, but I cannot republish it: https://docs.google.com/viewer?a=v&pid=explorer&chrome=true&srcid=1CIfh5ZZWUgaFitCXNjXWfkAMG8weXU9YndNXaJDwGIaNRP8jQPQKJvPy2KWj&hl=en_US (URLs for documents saved from emails also look like this).

There are also different URLs for clicking through to the document that's attached to an email someone receives with gmail, and they contain identity information.

Can you tell me more about how your document got to your docs account?

Revision history for this message
shanen (shane-nuessler-canberra) wrote :

Hi,
I believe I typed this up in the googls docs system years ago.
It seems the Collaborate->Share function gives this link:
https://docs.google.com/document/d/1BWGRmw6V8y7vkPPzOaJPh9EaCFztn7PhHEHpKfrCM0o/edit?hl=en_US

while the Collaborate->Publish to Web function (for the same doc) gives this:
https://docs.google.com/a//document/pub?id=1BWGRmw6V8y7vkPPzOaJPh9EaCFztn7PhHEHpKfrCM0o

???

-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of Melissa Draper
Sent: Monday, 26 September 2011 3:24 PM
To: Shane.Nuessler
Subject: [Bug 856130] Re: googledocs block doesnt like link from google docs

The issue is that google likes to give out different formats of the docs
URLs for some use cases:

For example:

I uploaded this document:
https://docs.google.com/document/d/1EQUAo9tRk6QXAgS6NAl9YaawZt6DfEgcDryK2GmLjx0/edit?hl=en_US

I copied this document from somewhere on the internet and have reshared
it, but I cannot republish it:
https://docs.google.com/viewer?a=v&pid=explorer&chrome=true&srcid=1CIfh5ZZWUgaFitCXNjXWfkAMG8weXU9YndNXaJDwGIaNRP8jQPQKJvPy2KWj&hl=en_US
(URLs for documents saved from emails also look like this).

There are also different URLs for clicking through to the document
that's attached to an email someone receives with gmail, and they
contain identity information.

Can you tell me more about how your document got to your docs account?

--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/856130

Title:
  googledocs block doesnt like link from google docs

Status in Mahara ePortfolio:
  Triaged

Bug description:
  I was wondering if the GoogleApps block type supports the google viewer for embedding views of PDFs?
  e.g. this one:
  https://docs.google.com/viewer?a=v&pid=explorer&chrome=true&srcid=0B9K03PfvoQBFYzI4NDk4OGUtMTkwNC00YmQwLTkzZjMtNWU4YTQzZTk5YTgy&hl=en

  I would like the PDF to show up in Mahara, but when I put this URL in
  it simply doesn’t show.

  Also the normal GoogleDocs block is broken because the URL google
  provides is BROKEN!

  e.g. this: https://docs.google.com/a//document/pub?id=1BWGRmw6V8y7vkPPzOaJPh9EaCFztn7PhHEHpKfrCM0o
  should be https://docs.google.com/document/pub?id=1BWGRmw6V8y7vkPPzOaJPh9EaCFztn7PhHEHpKfrCM0o
  (no “a/” )

  mahara 1.4.0
  Windows XP SP 2
  firefox 6.0.2

  Cheers,
  Shane.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/856130/+subscriptions

Revision history for this message
François Marier (fmarier) wrote :

There is no ETA yet for 1.4.1, but we hope to release it in the next few weeks. When we have an expected date, it will be on this page:

  https://launchpad.net/mahara/+milestone/1.4.1

Revision history for this message
shanen (shane-nuessler-canberra) wrote :

Thanks!

-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of François Marier
Sent: Monday, 26 September 2011 4:59 PM
To: Shane.Nuessler
Subject: [Bug 856130] Re: googledocs block doesnt like link from google docs

There is no ETA yet for 1.4.1, but we hope to release it in the next few
weeks. When we have an expected date, it will be on this page:

  https://launchpad.net/mahara/+milestone/1.4.1

--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/856130

Title:
  googledocs block doesnt like link from google docs

Status in Mahara ePortfolio:
  Triaged

Bug description:
  I was wondering if the GoogleApps block type supports the google viewer for embedding views of PDFs?
  e.g. this one:
  https://docs.google.com/viewer?a=v&pid=explorer&chrome=true&srcid=0B9K03PfvoQBFYzI4NDk4OGUtMTkwNC00YmQwLTkzZjMtNWU4YTQzZTk5YTgy&hl=en

  I would like the PDF to show up in Mahara, but when I put this URL in
  it simply doesn’t show.

  Also the normal GoogleDocs block is broken because the URL google
  provides is BROKEN!

  e.g. this: https://docs.google.com/a//document/pub?id=1BWGRmw6V8y7vkPPzOaJPh9EaCFztn7PhHEHpKfrCM0o
  should be https://docs.google.com/document/pub?id=1BWGRmw6V8y7vkPPzOaJPh9EaCFztn7PhHEHpKfrCM0o
  (no “a/” )

  mahara 1.4.0
  Windows XP SP 2
  firefox 6.0.2

  Cheers,
  Shane.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/856130/+subscriptions

Revision history for this message
Melissa Draper (melissa) wrote :

Shanen,

Can you confirm that https://docs.google.com/document/d/1BWGRmw6V8y7vkPPzOaJPh9EaCFztn7PhHEHpKfrCM0o/edit?hl=en_US is published, not just shared?

Additionally, Google URLs with /a/ in them are documents belonging to a non-gmail google apps hosted domain. It is expected behaviour. I have a google apps hosted domain, so I've tested with it.

If I publish a document and restrict access to it to people logged into google accounts within my google apps domain account, I get a URL looking like:

https://docs.google.com/a/meldraweb.com/document/pub?id=1ewGfdw21Xd7-pQS299C4wFJptEj_I4pgXLSlI2qKJsc

The URL you have offered looks similar:

https://docs.google.com/a//document/pub?id=1BWGRmw6V8y7vkPPzOaJPh9EaCFztn7PhHEHpKfrCM0o

Did you remove something from the URL after the "/a/" bit, or is this exactly how google gave it to you?

Thanks,
Melissa.

Changed in mahara:
status: Triaged → Incomplete
milestone: 1.4.1 → none
Revision history for this message
shanen (shane-nuessler-canberra) wrote :

Hi Melissa,
On checking the file is published, and the published link is https://docs.google.com/a//document/pub?id=1BWGRmw6V8y7vkPPzOaJPh9EaCFztn7PhHEHpKfrCM0o

This link is how Google gave it to me, and to be honest I don't remember adding it as belonging to a google apps hosted domain - I don't have one :)

So why Google gave me this address is curious.

But how about this: I just stopped publishing it, then restarted publishing it, this is the new URL:
https://docs.google.com/document/pub?id=1BWGRmw6V8y7vkPPzOaJPh9EaCFztn7PhHEHpKfrCM0o

Cheers,
Shane.

-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of Melissa Draper
Sent: Tuesday, 27 September 2011 2:21 PM
To: Shane.Nuessler
Subject: [Bug 856130] Re: googledocs block doesnt like link from google docs

Shanen,

Can you confirm that
https://docs.google.com/document/d/1BWGRmw6V8y7vkPPzOaJPh9EaCFztn7PhHEHpKfrCM0o/edit?hl=en_US
is published, not just shared?

Additionally, Google URLs with /a/ in them are documents belonging to a
non-gmail google apps hosted domain. It is expected behaviour. I have a
google apps hosted domain, so I've tested with it.

If I publish a document and restrict access to it to people logged into
google accounts within my google apps domain account, I get a URL
looking like:

https://docs.google.com/a/meldraweb.com/document/pub?id=1ewGfdw21Xd7-pQS299C4wFJptEj_I4pgXLSlI2qKJsc

The URL you have offered looks similar:

https://docs.google.com/a//document/pub?id=1BWGRmw6V8y7vkPPzOaJPh9EaCFztn7PhHEHpKfrCM0o

Did you remove something from the URL after the "/a/" bit, or is this
exactly how google gave it to you?

Thanks,
Melissa.

--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/856130

Title:
  googledocs block doesnt like link from google docs

Status in Mahara ePortfolio:
  Triaged

Bug description:
  I was wondering if the GoogleApps block type supports the google viewer for embedding views of PDFs?
  e.g. this one:
  https://docs.google.com/viewer?a=v&pid=explorer&chrome=true&srcid=0B9K03PfvoQBFYzI4NDk4OGUtMTkwNC00YmQwLTkzZjMtNWU4YTQzZTk5YTgy&hl=en

  I would like the PDF to show up in Mahara, but when I put this URL in
  it simply doesn’t show.

  Also the normal GoogleDocs block is broken because the URL google
  provides is BROKEN!

  e.g. this: https://docs.google.com/a//document/pub?id=1BWGRmw6V8y7vkPPzOaJPh9EaCFztn7PhHEHpKfrCM0o
  should be https://docs.google.com/document/pub?id=1BWGRmw6V8y7vkPPzOaJPh9EaCFztn7PhHEHpKfrCM0o
  (no “a/” )

  mahara 1.4.0
  Windows XP SP 2
  firefox 6.0.2

  Cheers,
  Shane.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/856130/+subscriptions

Revision history for this message
shanen (shane-nuessler-canberra) wrote :

Maybe when I originally published it years ago Google had a bug in it's publishing link maker code.

-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of Melissa Draper
Sent: Tuesday, 27 September 2011 2:21 PM
To: Shane.Nuessler
Subject: [Bug 856130] Re: googledocs block doesnt like link from google docs

Shanen,

Can you confirm that
https://docs.google.com/document/d/1BWGRmw6V8y7vkPPzOaJPh9EaCFztn7PhHEHpKfrCM0o/edit?hl=en_US
is published, not just shared?

Additionally, Google URLs with /a/ in them are documents belonging to a
non-gmail google apps hosted domain. It is expected behaviour. I have a
google apps hosted domain, so I've tested with it.

If I publish a document and restrict access to it to people logged into
google accounts within my google apps domain account, I get a URL
looking like:

https://docs.google.com/a/meldraweb.com/document/pub?id=1ewGfdw21Xd7-pQS299C4wFJptEj_I4pgXLSlI2qKJsc

The URL you have offered looks similar:

https://docs.google.com/a//document/pub?id=1BWGRmw6V8y7vkPPzOaJPh9EaCFztn7PhHEHpKfrCM0o

Did you remove something from the URL after the "/a/" bit, or is this
exactly how google gave it to you?

Thanks,
Melissa.

--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/856130

Title:
  googledocs block doesnt like link from google docs

Status in Mahara ePortfolio:
  Triaged

Bug description:
  I was wondering if the GoogleApps block type supports the google viewer for embedding views of PDFs?
  e.g. this one:
  https://docs.google.com/viewer?a=v&pid=explorer&chrome=true&srcid=0B9K03PfvoQBFYzI4NDk4OGUtMTkwNC00YmQwLTkzZjMtNWU4YTQzZTk5YTgy&hl=en

  I would like the PDF to show up in Mahara, but when I put this URL in
  it simply doesn’t show.

  Also the normal GoogleDocs block is broken because the URL google
  provides is BROKEN!

  e.g. this: https://docs.google.com/a//document/pub?id=1BWGRmw6V8y7vkPPzOaJPh9EaCFztn7PhHEHpKfrCM0o
  should be https://docs.google.com/document/pub?id=1BWGRmw6V8y7vkPPzOaJPh9EaCFztn7PhHEHpKfrCM0o
  (no “a/” )

  mahara 1.4.0
  Windows XP SP 2
  firefox 6.0.2

  Cheers,
  Shane.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/856130/+subscriptions

Revision history for this message
François Marier (fmarier) wrote :
Changed in mahara:
status: Incomplete → Confirmed
assignee: nobody → Melissa Draper (melissa)
status: Confirmed → In Progress
Revision history for this message
Kristina Hoeppner (kris-hoeppner) wrote :

Additional information: When you upload a PDF document to share it, you need to enable the conversion into Google Docs in order to be able to publish it on the web.

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/750
Committed: http://gitorious.org/mahara/mahara/commit/908a2341ab95bd7e7a33413655b75481101f6411
Submitter: Francois Marier (<email address hidden>)
Branch: master

commit 908a2341ab95bd7e7a33413655b75481101f6411
Author: Melissa Draper <email address hidden>
Date: Thu Sep 29 12:55:32 2011 +1300

    Add another new google doc url formats (bug #856130)

    Google keeps spitting out different urls to their users. Our users
    aren't going to understand how to massage these to the correct
    format, so we have to try keep up. Bad google, bad.

    Change-Id: I06901c142da5db179ef5361d9939ae9a03ead14e
    Signed-off-by: Melissa Draper <email address hidden>

Revision history for this message
Mahara Bot (dev-mahara) wrote :

Reviewed: https://reviews.mahara.org/751
Committed: http://gitorious.org/mahara/mahara/commit/a46359a1b12d55a10160b3ff018c9d5bef40adba
Submitter: Francois Marier (<email address hidden>)
Branch: 1.4_STABLE

commit a46359a1b12d55a10160b3ff018c9d5bef40adba
Author: Melissa Draper <email address hidden>
Date: Thu Sep 29 12:55:32 2011 +1300

    Add another new google doc url formats (bug #856130)

    Google keeps spitting out different urls to their users. Our users
    aren't going to understand how to massage these to the correct
    format, so we have to try keep up. Bad google, bad.

    Cherry picked from 908a2341ab95bd7e7a33413655b75481101f6411

    Change-Id: I06901c142da5db179ef5361d9939ae9a03ead14e
    Signed-off-by: Melissa Draper <email address hidden>

Changed in mahara:
status: In Progress → Fix Committed
milestone: none → 1.4.1
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

Remote bug watches

Bug watches keep track of this bug in other bug trackers.