Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload via "share with owncloud" from third party app does not work #1514

Closed
LukeOwlclaw opened this issue Mar 15, 2016 · 8 comments
Closed

Comments

@LukeOwlclaw
Copy link

Open third party app (e.g. Gallery), open file/photo, choose "Share with" ... ownCloud. Nothing happens.

Logcat:

03-15 19:59:58.482 4911-4911/com.owncloud.android D/Uploader: Uploading file to dir /InstantUpload/
03-15 19:59:58.652 4911-4911/com.owncloud.android D/Uploader: onPause() ending
03-15 19:59:59.203 4911-4911/com.owncloud.android D/Uploader: onStop() ending
03-15 19:59:59.213 4911-4911/com.owncloud.android D/Uploader: onDestroy() ending
03-15 19:59:59.223 4911-4911/com.owncloud.android V/OperationsService: Destroying service
@LukeOwlclaw
Copy link
Author

@davivel @masensio @tobiasKaminsky
How is upload supposed to work? And how can it work for anybody?

Please check here. Upload only takes place if (data == null):
https://github.com/owncloud/android/blob/master/src/com/owncloud/android/ui/activity/Uploader.java#L593

But in most of the above branches data is set. And whatismore, it seems that data is not used at all for the actual uploading process (only uri is passed).

❓ ❓ ❓

@davivel
Copy link
Contributor

davivel commented Mar 18, 2016

Checking this.

@davivel
Copy link
Contributor

davivel commented Mar 18, 2016

OK, I changed this code recently in the branch for uploads view also. Try there if the functionality works better, please.

That block is really messy. The idea is that there are two paths to upload the file, one that copies it temporary in this block, and other that doesn't (though FileUploaderdoes later :S ) . This is probably the result of bad merges.

Let's just be sure that the function works well enough in #1493.

@LukeOwlclaw
Copy link
Author

No, unfortunately it doesn't. Same problem there: https://github.com/owncloud/android/blob/reliable_uploads_actions_uploads_view/src/com/owncloud/android/ui/activity/Uploader.java#L593

I think variable data can just be removed completely. Then it should work fine.

@davivel
Copy link
Contributor

davivel commented Mar 22, 2016

I applied a fast patch ignoring data (as @LukeOwncloud suggested) in #1493. That should help, but I can't grant it's enough to fix all the problems detected for this feature (receive files sent from other apps). We have reports of problems for certain apps in version 1.9.1, where there is an else path for the condition if (data == null), that is missed at this point.

So, we need a well-thought code rewrite, and specific QA time for this feature, what is out the scope of #1493.

But nevertheless, should be fixed for 1.9.2, or the feature could be really broken in the new release.

@LukeOwncloud , if you don't mind let's continue the tracking of this bug in #1529, where @jesmrec is considering more apps that will be important for the test cases.

@davivel
Copy link
Contributor

davivel commented Mar 31, 2016

With the current knowledge about #1529: the problems to send files (not text) to the OC app are better represented here; and this is being fixed for release 2.

cc @malkomich

@davivel davivel added this to the 2-current milestone Mar 31, 2016
@davivel
Copy link
Contributor

davivel commented Apr 13, 2016

Should be fixed in #1595

@davivel
Copy link
Contributor

davivel commented Apr 14, 2016

Ready to release now :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants