android-library icon indicating copy to clipboard operation
android-library copied to clipboard

Inability to work with cloud using OwnCloudBasicCredentials only (not android.accounts.Account)

Open Den-Rimus opened this issue 4 years ago • 8 comments

When executing operations (e.g. ReadRemoteFolderOperation) - logic always ends up attempting to use mAccount.getSavedAccount() inside client, which is always null for OwnCloudAccount instance if constructor public OwnCloudAccount(Uri baseUri, OwnCloudCredentials credentials) used for creation.

Is it even possible to work with plain username&password pair?

P. S.: is this even actual library to attempt to use for accessing ownCloud? It really looks like you gave up on implementing it in the middle of development and somehow gave it 'stable' status (at least I'm trying to use that branch). Even your own sample app does not work (and it is, in fact, the only source of documentation for this library - every page related to Android client development redirects users to it).

Den-Rimus avatar Aug 16 '19 09:08 Den-Rimus

@Den-Rimus please check master.

Here you can find an overview of the branches: https://github.com/owncloud/android-library/network

For stable, maybe check the releases: https://github.com/owncloud/android-library/releases

michaelstingl avatar Aug 16 '19 10:08 michaelstingl

@davigonz update docs/README about stable?

michaelstingl avatar Aug 16 '19 10:08 michaelstingl

@Den-Rimus please check master.

Same. It cannot work.

Den-Rimus avatar Aug 16 '19 12:08 Den-Rimus

Let me have a look...

davigonz avatar Aug 19 '19 06:08 davigonz

@Den-Rimus Yes, I can reproduce what you say and it should be fixed, this library suffered significant changes when we switched to a new network library so it's normal that this kind of things appear, thanks for reporting it.

@michaelstingl since ownCloudClient and ownCloudAccount are much related with authentication and that's the next topic in terms of new architecture, I would address this issue there, what do you think?

davigonz avatar Aug 19 '19 08:08 davigonz

@michaelstingl since ownCloudClient and ownCloudAccount are much related with authentication and that's the next topic in terms of new architecture, I would address this issue there, what do you think?

👍

michaelstingl avatar Aug 19 '19 12:08 michaelstingl

Any news on this issue? it fails on me.

lawer avatar Jan 17 '21 18:01 lawer

Hi @lawer, can you still reproduce this? Let us know, please! 👍

JuancaG05 avatar May 30 '23 15:05 JuancaG05