You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some apps (at least Chrome, SpeedTest, List My Apps, FeedMe, GMail, Google+, Google Keep, Twitter, Moon+ Reader, GTasks) return an error when try to share with ownCloud (see attached)
Picking chrome for example: what do you expect to happen?
I guess that the current url is transferred to owncloud app. How should this text string be handled? Saved as a new file? That is the reason why it is not "accepted".
Then I guess, yes.
Is there something in logcat? I experienced same behaviour in beta, which is due to a missing column "file size" in upload table. The current workaround is to uninstall and reinstall.
Do you have tried it with a fresh version or use an "old" version which is upgraded?
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. <<<<< cc @rperezb , @MTRichards , @cmonteroluque
The apps causing the error dialog that @jesmrec mentioned are sharing just text content instead of files, and the creation of new files with the shared text is a feature not implemented yet.
In fact, there is already an issue covering this feature: #104
Currently sending files from external apps is working better on Pull Request #1493 , but is still not working perfectly
With the current knowledge about this issue: all the apps listed in the description are sending text to the OC app, instead of files. The right issue to track the feature of uploading that text as a new file to OC is #104, and will not be fixed now, as said previously.
What we can do in the context of this issue for release 2 is using a better error message so that the user knows exactly what happens.
Another option we are exploring is prevent that other apps may send text to the OC app, but seems it's not possible without affecting the capability to send any type of files to the OC app.
The other problems to send files to the OC app will be fixed for release 2 also, but in the context of issue #1514 .
Should be improved (this is: better error message) in #1595.
We also tried to change the intent-filter of the Uploader Activity so that the OC app is not included by the system in the list of files that want to share a piece of text with other apps.
But it's not possible, AFAIK. The only option to get it is filter by mime-type, preventing the text/plain is acceptable by our app. But that would prevent that file texts could be shared with the OC app also, and that's not acceptable.
The key here is that the difference between both kind of shares-between-apps is in the usage of EXTRA_STREAM (for files) or EXTRA_TEXT (for raw text) in the Intent created by the sender app. But filtering upon EXTRAs in AndroidManifest.xml is not possible.
For a better UX, the next step would be implementing #104. But that's another issue.
Activity
jesmrec commentedon Mar 17, 2016
@LukasReschke right, this is the same.
tobiasKaminsky commentedon Mar 17, 2016
Picking chrome for example: what do you expect to happen?
I guess that the current url is transferred to owncloud app. How should this text string be handled? Saved as a new file? That is the reason why it is not "accepted".
tobiasKaminsky commentedon Mar 17, 2016
@LukeOwncloud What branch are you trying where uploading (share file from another app) is not working?
tobiasKaminsky commentedon Mar 17, 2016
Then I guess, yes.
Is there something in logcat? I experienced same behaviour in beta, which is due to a missing column "file size" in upload table. The current workaround is to uninstall and reinstall.
Do you have tried it with a fresh version or use an "old" version which is upgraded?
davivel commentedon 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 anelsepath for the conditionif (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. <<<<< cc @rperezb , @MTRichards , @cmonteroluque
rperezb commentedon Mar 22, 2016
👍
davivel commentedon Mar 22, 2016
Some clarifications:
Intentswith http://developer.android.com/intl/es/reference/android/content/Intent.html#EXTRA_STREAM . That's what was working before, and what needs to work better.Intentswith http://developer.android.com/intl/es/reference/android/content/Intent.html#EXTRA_TEXT . That is to share a piece of text with other apps, which makes sense to create a new text file in OC on the fly, but that's a new feature that the app doesn't offer (there is an issue about it somewhere).malkomich commentedon Mar 29, 2016
The apps causing the error dialog that @jesmrec mentioned are sharing just text content instead of files, and the creation of new files with the shared text is a feature not implemented yet.
In fact, there is already an issue covering this feature: #104
Currently sending files from external apps is working better on Pull Request #1493 , but is still not working perfectly
davivel commentedon Mar 31, 2016
With the current knowledge about this issue: all the apps listed in the description are sending text to the OC app, instead of files. The right issue to track the feature of uploading that text as a new file to OC is #104, and will not be fixed now, as said previously.
What we can do in the context of this issue for release 2 is using a better error message so that the user knows exactly what happens.
Another option we are exploring is prevent that other apps may send text to the OC app, but seems it's not possible without affecting the capability to send any type of files to the OC app.
The other problems to send files to the OC app will be fixed for release 2 also, but in the context of issue #1514 .
davivel commentedon Apr 13, 2016
Should be improved (this is: better error message) in #1595.
We also tried to change the intent-filter of the Uploader Activity so that the OC app is not included by the system in the list of files that want to share a piece of text with other apps.
But it's not possible, AFAIK. The only option to get it is filter by mime-type, preventing the text/plain is acceptable by our app. But that would prevent that file texts could be shared with the OC app also, and that's not acceptable.
The key here is that the difference between both kind of shares-between-apps is in the usage of EXTRA_STREAM (for files) or EXTRA_TEXT (for raw text) in the Intent created by the sender app. But filtering upon EXTRAs in AndroidManifest.xml is not possible.
For a better UX, the next step would be implementing #104. But that's another issue.
davivel commentedon Apr 14, 2016
Merged and ready now :)