After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 607272 - Support automatic upload resuming
Support automatic upload resuming
Status: RESOLVED OBSOLETE
Product: libgdata
Classification: Platform
Component: Google Documents service
git master
Other All
: Normal enhancement
: Drive API
Assigned To: libgdata-maint
libgdata-maint
Depends on:
Blocks: 593537 607616
 
 
Reported: 2010-01-18 00:09 UTC by Philip Withnall
Modified: 2018-09-21 16:13 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Philip Withnall 2010-01-18 00:09:17 UTC
http://code.google.com/apis/documents/docs/3.0/developers_guide_protocol.html#ResumableUpload

If the connection is dropped while uploading, libgdata should automatically resume until the file is successfully uploaded. Might want to be able to impose a limit on the number of attempts, though.
Comment 1 Philip Withnall 2011-11-06 23:24:31 UTC
Resumable upload documents have moved here: http://code.google.com/apis/gdata/docs/resumable_upload.html
Comment 2 Philip Withnall 2012-04-02 14:37:40 UTC
Basic support for resumable uploads/updates of documents is now in place. However, support for automatically retrying failed chunks isn't done yet. Keeping the bug open for that.

commit 6e8499dfbdb6029b7797ae31957b87f688a88482
Author: Philip Withnall <philip@tecnocode.co.uk>
Date:   Mon Apr 2 15:12:35 2012 +0100

    documents: Add support for resumable uploads and updates
    
    This adds support for resumable uploads and updates to the Documents API. In
    doing so, it was necessary to wade through a sea of bugs and documentation
    inadequacies in the GData protocol (thanks, Google). In the end, it all seems
    to work (ignoring the pile of hacks to handle differences between
    non-resumable and resumable uploads’ handling of metadata; and the bugs in
    content-only uploads).
    
    It’s worth noting that this is only a basic implementation of resumable
    upload/update. It does not, for example, automatically retry chunks of
    uploads which fail. That can come later.
    
    A new, expanded set of test cases for uploads/updates is included.
    
    New API:
     • gdata_documents_service_upload_document_resumable()
     • gdata_documents_service_update_document_resumable()
    
    Helps: https://bugzilla.gnome.org/show_bug.cgi?id=607272
    Helps: https://bugzilla.gnome.org/show_bug.cgi?id=593537

 docs/reference/gdata-sections.txt                  |    2 +
 gdata/gdata-upload-stream.c                        |   26 +-
 gdata/gdata.symbols                                |    2 +
 gdata/services/documents/gdata-documents-service.c |  289 +++++++-
 gdata/services/documents/gdata-documents-service.h |    8 +
 gdata/tests/documents.c                            |  807 +++++++++++---------
 6 files changed, 742 insertions(+), 392 deletions(-)

commit f91c994f0f6f5f96ea7765e75ecc1ce393f9b61b
Author: Philip Withnall <philip@tecnocode.co.uk>
Date:   Tue Dec 20 20:40:16 2011 +0000

    core: Extend GDataUploadStream with support for resumable uploads
    
    This adds the following API:
     • gdata_upload_stream_new_resumable()
     • GDataUploadStream:content-length, gdata_upload_stream_get_content_length()
    
    Helps: https://bugzilla.gnome.org/show_bug.cgi?id=607272

 docs/reference/gdata-sections.txt |    4 +
 gdata/gdata-upload-stream.c       |  515 ++++++++++++++++++++++++++++++-------
 gdata/gdata-upload-stream.h       |   30 +++
 gdata/gdata.symbols               |    2 +
 gdata/tests/common.c              |   19 +-
 gdata/tests/common.h              |    1 +
 gdata/tests/streams.c             |  443 +++++++++++++++++++++++++++++++
 7 files changed, 920 insertions(+), 94 deletions(-)
Comment 3 André Klapper 2012-04-02 14:55:16 UTC
http://git.gnome.org/browse/libgdata/commit/?id=f91c994f0f6f5f96ea7765e75ecc1ce393f9b61b maybe broke the string freeze, however not sure as libgdata does not use the "gnome-3-x" branch scheme.

String is:
"Error received from server after uploading a resumable upload chunk."
Comment 4 Philip Withnall 2012-04-02 15:42:19 UTC
(In reply to comment #3)
> http://git.gnome.org/browse/libgdata/commit/?id=f91c994f0f6f5f96ea7765e75ecc1ce393f9b61b
> maybe broke the string freeze, however not sure as libgdata does not use the
> "gnome-3-x" branch scheme.
> 
> String is:
> "Error received from server after uploading a resumable upload chunk."

(Resolved by branching for libgdata-0-12 before these commits. These commits will now be released in libgdata 0.13.0.)
Comment 5 Philip Withnall 2014-08-13 23:25:01 UTC
Latest documentation (Drive API): https://developers.google.com/drive/web/manage-uploads#resumable
Comment 6 GNOME Infrastructure Team 2018-09-21 16:13:14 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/libgdata/issues/3.