Ios: Dowload File Connection Failed (v2.17.6)

Created on 1 Sep 2017  Â·  55Comments  Â·  Source: nextcloud/ios

I did the update to the latest version of 2.17.6. The app is able to connect to NextCloud and browse my server. As soon as I try to download a file, I'm getting a new window that ask for credential and I'm getting a connection failed.

Here is the info from the server when I try to download files.

Warning | core | Login failed: 'A0CF2E05-00C5-4F12-AFBA-6761B8032BA1' (Remote IP: '172.xx.xx.xx') | 2017-08-31T20:55:59-0400
-- | -- | -- | --

** Beta version I tested was working.

Thanks

Most helpful comment

duc

All 55 comments

Hi @jclgs use LDAP for managed users or other system ?

Sorry. Forgot to mention.

I use LDAP.

I think that this is a non correct configuration of LDAP

I'm able to connect well via any browser on any computer/laptop. The NextCloud IOS app is also connected. I'm able to navigate, see folder on the NextCloud server, but as soon as I'm trying to download a file, a new window appear and ask for user/pass.

How can I have a non correct LDAP config if it works perfectly except when trying to download a file?

** Android app works well.

Thanks

ah sorry only download ? (upload) ?

Upload too.

This is strange. Even if I'm typing my user/pass in that new window after trying a download/upload,, the authentication failed, but I'm still able to browse my folder on the nextcloud server.

Hey, just found something.

The issue right now is only located on iPhone/iPad where we tested the beta version using TestFlight. On an iPhone who never download the beta version, it is working.

with last version ?

yes.

with same user ? (username)

Sorry, Same issue on an iphone who never got the beta version. Same or different user.

Also, if we try to upload a picutre, we are getting error 401.

Sorry for the mistake. Previously beta installed or not, same issue.

Is this possible that the user pass on the authentication process when downloading the file or uploading is no longer the same.

In my Apache log, before the update, I was seeing the PROPFIND username.
After the update to 2.17.6, I'm now seeing PROPFIND GUID of the user.

I'm not a pro and don't know how it works in background, but this is what I notice.

Before
bgauthier [27/Aug/2017:12:35:40 -0400] "PROPFIND /remote.php/dav/files/
Now
6960C4B4-5E95-4BC3-85D9-6D2EFA0EAB46 [26/Aug/2017:20:58:24 -0400] "PROPFIND /remote.php/webdav

This is unfortunately super strange, and something I guess we can also see on android cc @tobiasKaminsky @AndyScherzinger

The real issue is that it LOOKS like sometimes we need GUID (like favorite process) and sometimes we need "username" (whatever that is). But I'm certainly not an expert, so @MorrisJobke or @blizzz might be better suited to help with this.

@jclgs can you please clarify is account-wide search or favoriting work for you?

Can you explain?

What do you means by Account-Wide or favoriting ?

If you use search does it works? Can you make a file favorite?

Search works, but not favorite

shrug @marinofaggiana, you use GUID for search right?

How do we know when to use GUID or something else (also what?)? cc @blizzz and @MorrisJobke

I use for all : API (webDAV and not) + download/upload

Ok. So then we need to know when to use what, since clearly GUID works for something, and doesn't work for other things. Also username works for some things, and won't work for others.

And this now ? 🙈

The main concern for me, what change between the beta 2.17.6 and the official release? It was working good with the Beta? Something change related with GUID and username, ID ... ?

beta 2.17.6 buid ?

Yes. I tested it to test an issue with the document provider with O365 and everything was working perfectly. Now with the official release 2.17.6, not the beta, I'm getting the download/upload, Favorites issue ....

Sorry. I did not notice the build version at that time. The build that I used was around July 28th.

Se my comment on post #311

The real issue is that it LOOKS like sometimes we need GUID (like favorite process) and sometimes we need "username" (whatever that is). But I'm certainly not an expert, so @MorrisJobke or @blizzz might be better suited to help with this.

Internally we only have a userID (sadly sometimes referred to username, because it can also be a readable string). This ID is the only way to uniquely refer to a user. During the login process other attributes of a user can be valid instead of the userID as well (email address, CN in LDAP, ...). @mario I guess this is what you are referring to as GUID - in the server you will find userID in most places as name for this unique identifier for a user (for example in the (newer) code paths and the DB tables).

@MorrisJobke yes, sorry - this is indeed userID. So this is ALWAYS supposed to work for uploads/downloads/favoriting/search/etc, right? :-/ As seen above (and in some other cases), this doesn't seem to be the case :(

Exactly same problem and same logs entry of login failed with guid.

If you have crash after insert username/password, try with next version in wait for review on appstore (2.17.7)

Hi Marino.

Yes sometime when we get the popup to enter username/password, when we hit connect, the app crash when we insert username/password.

Do you know when we will be able to download it? Do I need to download it via TestFlight?
Thanks

@jclgs ..I think 2 days

I just downloaded 2.17.7 and still same problem, I don’t know what was supposed to be fixed. I see s guid than my username in the account properties in the apps.

Crash ?

A little bit better, I can browse, and photos miniatures are created but i cannot open anything. Files stayed in transfert....

The app is not crashing but authentication still does not work, even with
trying the workaround.

On Tue, Sep 5, 2017 at 5:53 PM, Marino Faggiana notifications@github.com
wrote:

https://help.nextcloud.com/t/nextcloud-ios-2-17-errors/11606/6

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/nextcloud/ios/issues/364#issuecomment-327325932, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AX8h0GswHoyqbdI2eTETfuJmzXPKTikdks5sfdD4gaJpZM4PKEsy
.

--
Success is the progressive realization of a worthy goal or ideal.- Earl
Nightingale

Just loaded the 2.17.7 and now are able to browse my files but are not able to open any File. Just get a red Triangle with with exclamation mark.
Same Situation as tomaaa

If i want to Upload a file from my iPad it seems to working but in end of this Process i get 401 Error

authentication still does not work and same Situation as tomaaa

Like I said before, the beta version of 2.17.6 that I tested around July 28th was working pretty fine. So something got change between the beta version and the official release in App Store

Please this is an emergency situation. I have a company of LDAP users who depend on the iOS app. Server is 12.0.2. LDAP was configured according to Nextcloud manual. The user sign in with their LDAP username and password. The server user folders are named according to their UUID. All this is the default behavior. The Nextcloud log lists a lot of the following error. Login failed: '12345678-90AB-CDEF-1234-567890ABCDEF'. Meaning the app is erroneously signing in with the UUID instead of the username. My users need the LDAP authentication to work as before. Can you temporarily revert the app in the store back to the previous version?

Same here as with brianbgness.

On Wed, Sep 6, 2017 at 10:59 AM, brianbgness notifications@github.com
wrote:

Please this is an emergency situation. I have a company of LDAP users who
depend on the iOS app. Server is 12.0.2. LDAP was configured according to
Nextcloud manual. The user sign in with their LDAP username and password.
The server user folders are named according to their UUID. All this is the
default behavior. The Nextcloud log lists a lot of the following error.
Login failed: '12345678-90AB-CDEF-1234-567890ABCDEF'. Meaning the app is
erroneously signing in with the UUID instead of the username. My users need
the LDAP authentication to work as before. Can you temporarily revert the
app in the store back to the previous version?

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/nextcloud/ios/issues/364#issuecomment-327530639, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AX8h0PsZQ7Z4yXYdgWaLKubxpg3tsdKwks5sfsFIgaJpZM4PKEsy
.

--
Success is the progressive realization of a worthy goal or ideal.- Earl
Nightingale

Sorry, please wait a solution. Tomorrow a new version on TestFlight 2.17.8 with a little fix but I don't think that is the solution ... please try and report here.

There is a workaround that work all the time, use Owncloud IOS App. It works on my side.

It's just bad to ask our users to download the concurrent OwnCloud APP and paying again for something that they already paid for with NextCloud IOS App.

There are probably a lot of reason why the authentication process change and I don't want to put pressure on development team.

Let's see next version.

The owncloud apps is sooooo slow compare to Nextcloud app. I don't want to put pressure on the dev team, but why not downgrading the code from a release it was working. Unfortunatly, it's complicated on iOS to restore a previous version.

Patient ... if we don't find a solution soon we make a authentication system rollback ;)

duc

Some of our field Members switched to the Owncloud App because we used it before we moved to Nextcloud. The rest of them do not want to pay for a workaround.

Please, boys,try 2.17.8 when available on TestFlight (if you don't have TestFlight send me email with your AppStore email)

@marinofaggiana
Do not know where i should send you Mail or find your Mail Address. But here is my AppStore E-Mail

oh simply, you install on your iphone TestFlight (this is the appstore for beta version test) and I add you on DataBase betatest and when the version beta is available you can install it from TestFlight

Just did it, you can add me. My AppleID you will find in my entry above.

Would like to be added to TestFlight. Where do I get your @marinofaggiana email address?

Thanks @marinofaggiana for adding me to TestFlight. Just downloaded the Beta Version 2.17.8 and for me it works. No i can download Files and also Upload a file without enter my credentials again and again.

I tested the 2.17.8 and it is working good. The issue is gone. Thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MorrisJobke picture MorrisJobke  Â·  4Comments

zigulle picture zigulle  Â·  3Comments

notmgsk picture notmgsk  Â·  4Comments

Alphakilo picture Alphakilo  Â·  3Comments

MarkusKepert picture MarkusKepert  Â·  4Comments