Skip to content

Reliable uploads #762

Closed
Closed

Description

@davivel and @jabarros

I finished my proposal first reliable uploads -> https://github.com/owncloud/android/tree/reliable_uploads

I find it works quite reliably. Unfortunately, the changes are substantial. Please review and add to backlog (conflicts are expected with each new commit).

Details:

I renamed FileUploader to FileUploaderService because it is now much more than a simple uploader but a real service; this should be reflected in the name, I think.

I reused the DbHandler and called it UploadDbHandler (the old name was a little misleading).

Further I replaced some Intent KEYS which where ints with enums (e.g., LocalBehaviour in FileUploadService). This avoids using untyped KEYS and will help avoiding mistakes.

OCFiles is now serializable as it is stored persistently.

ConnectivityActionReceiver is now responsible for detecting connectivity changes. It calls FileUploaderService.

Due to these changes, the branch reliable_uploads is a little bloated. But actually there is not much new there.

Activity

  1. vip9 commented on Jan 3, 2015

    @vip9

    As I see, there are two problems

    1. on both, develop and reliable_uploads, the upload process sometimes returns (ssl) Socket timeout exception, but, sometimes the file is uploaded just fine (sometimes not).
      The situation exists when uploading videos and also small images (~5MB), over mobile connection.
      There is no way to distinguish "real" failure other than checking in the app.
      Apache access/error logs are clear and fine.
    2. on reliable_uploads, the success (i suppose) notification shows and dissapeares, there's no ability to read it; the failed notification shows correctly
  2. ghost closed this as completedon Jul 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions