-
Type: Bug
-
Status: Resolved
-
Priority: Blocker
-
Resolution: Won't Fix
-
Affects Version/s: 7.3-SNAPSHOT
-
Fix Version/s: 7.4
-
Component/s: Live Connect (Google Drive, Dropbox, OneDrive...)
-
Tags:
-
Sprint:nxNag Sprint 7.3.6
-
Story Points:3
Unless I'm doing something wrong, Blob Reference Versioning (NXP-17109) does not seem to be working with the Google native types (e.g. Google Doc). I updated my VM with the latest snapshot build this morning (Distribution date 201506010309).
I'm using a Nuxeo File document linked to a "Google Docs" document. I created the File manually and linked to Google Drive during creation.
When viewing an archived version, if I click the link to download the document from the Nuxeo Application, I get an empty file and this error in the logs:
[org.nuxeo.ecm.webapp.contentbrowser.DocumentActionsBean] Error while redirecting to blob provider's uri com.google.api.client.googleapis.json.GoogleJsonResponseException: 404 Not Found { "code" : 404, "errors" : [ { "domain" : "global", "location" : "revision", "locationType" : "other", "message" : "Revision not found: 5", "reason" : "notFound" } ], "message" : "Revision not found: 5" }
In fact I get a bunch of these errors when I click the "View Archived Version" from the history tab as well.
This appears to be because Google only exposes "major" revisions for the native types. For example if you open a document in the Drive GUI and open "Show revision history" you will see some versions, but not all the versions. If you click the button that says "show more detailed revisions" you will probably find all the versions from every save. It appears that Google does not expose these revisions via the API (unconfirmed).
The "Open with Google Docs" button takes me to the live version (maybe this is a separate issue).
I will attach the full stack trace.
I will add my instance info as a comment.