Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

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

Open
Den-Rimus opened this issue Aug 16, 2019 · 8 comments

Comments

@Den-Rimus
Copy link

Den-Rimus commented Aug 16, 2019

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).

@michaelstingl
Copy link
Contributor

@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
Copy link
Contributor

@davigonz update docs/README about stable?

@Den-Rimus
Copy link
Author

@Den-Rimus please check master.

Same. It cannot work.

@davigonz
Copy link
Contributor

Let me have a look...

@davigonz
Copy link
Contributor

@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?

@michaelstingl
Copy link
Contributor

@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?

👍

@lawer
Copy link

lawer commented Jan 17, 2021

Any news on this issue? it fails on me.

@JuancaG05
Copy link
Contributor

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

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

No branches or pull requests

5 participants