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

Unable to add Favorites with iPhone or iPad #223

Closed
svyates opened this issue May 4, 2017 · 28 comments
Closed

Unable to add Favorites with iPhone or iPad #223

svyates opened this issue May 4, 2017 · 28 comments
Labels

Comments

@svyates
Copy link

svyates commented May 4, 2017

With latest iOS version I get a connection error when trying to add a favorite with the iPad and the iPhone apps. Previous favorite folders now come up empty.
fullsizeoutput_65a3

@marinofaggiana
Copy link
Member

mmm reload dir ?

@randybock
Copy link

I have the same issue. In my case, it seems to be related only to LDAP logins. Locally created users work just fine. It also seems to affect the ability for the "Favorites available offline" option. Even if I set a folder to be a favorite on the web gui, they still are not made available offline on the app. Once again, this problem is only for LDAP users, it works fine for locally created users.

@svyates
Copy link
Author

svyates commented May 8, 2017

I am seeing the same thing. Just LDAP users, which all of my users are.

@marinofaggiana
Copy link
Member

please, create a account for me with the issue for remote debug, send credential at ios@nextcloud.com

Thanks a lot

@marinofaggiana
Copy link
Member

@randybock @svyates close this issue ?

@svyates
Copy link
Author

svyates commented May 10, 2017 via email

@randybock
Copy link

@marinofaggiana, I'll create the account and send credential info soon. It may take a bit as it will need to be an LDAP account for you to see the issue.

@svyates
Copy link
Author

svyates commented May 10, 2017 via email

@sippnex
Copy link

sippnex commented May 11, 2017

I had the same problem, if I write the username at the login not exactly like the ldap username is, for example "smith" instead of "Smith", (case sensitive) I got the 404 error.

@marinofaggiana
Copy link
Member

marinofaggiana commented May 11, 2017

@nickvergessen ??? see @sippnex issue ... [ cc @mario @MorrisJobke ]

@randybock
Copy link

@sippnex, I have tested using the exact case with my username and I still received the 404 error when attempting to add a folder to favorites.

@nickvergessen
Copy link
Member

not sure what's wrong, but it works for me on localhost:

curl --request PROPPATCH -k --user admin:admin --header "Content-Type: text/xml" --data "<d:propertyupdate xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns\"><d:set><d:prop>oc:favorite1</oc:favorite></d:prop></d:set></d:propertyupdate>" https://nextcloud12.local/remote.php/dav/files/admin/test

curl --request PROPPATCH -k --user admin:admin --header "Content-Type: text/xml" --data "<d:propertyupdate xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns\"><d:set><d:prop>oc:favorite0</oc:favorite></d:prop></d:set></d:propertyupdate>" https://nextcloud12.local/remote.php/dav/files/admin/test

Works pretty fine for me. But I also see that it fails for the instance you sent.
Since everything on dav seems to not work, I checked via the OCS api and it seems to be a problem with their LDAP config:

curl -u mfaggiana:***** https://nextcloud.cepc.coop/ocs/v2.php/cloud/user -H "OCS-APIRequest: true"

<?xml version="1.0"?>
<ocs>
 <meta>
  <status>ok</status>
  <statuscode>200</statuscode>
  <message>OK</message>
 </meta>
 <data>
  <id>B6FEACC7-42BE-486F-9E47-******</id>
  <quota>
   <free>488100319232</free>
   <used>7533739</used>
   <total>488107852971</total>
   <relative>0</relative>
   <quota>-3</quota>
  </quota>
  <email/>
  <phone></phone>
  <address></address>
  <webpage></webpage>
  <twitter></twitter>
  <display-name>...</display-name>
 </data>
</ocs>

id is the LDAP id, instead of mfaggiana, so this is not related to the iOS app, but to your LDAP configuration.

@svyates
Copy link
Author

svyates commented May 11, 2017

I'm don't think I understand this comment. @nickvergessen When connecting, the iOS app uses LDAP authentication and the other functions of the app work just fine. How can it be a LDAP issue if it works for connecting, downloading, uploading and other functions, but then doesn't work for favorites? Thanks!

@randybock
Copy link

So, due to my setup, my internal usernames look like this:
usersnames
This maps to the "objectGUID" attribute in AD. When the user logs on, they user either their email or userID and I suppose Nextcloud keeps a cross reference to the objectGUID. @nickvergessen, are you saying that I need to use something other than objectGUID for the internal username? Would you do that using on of the below options?
ldapoptions

@nickvergessen
Copy link
Member

Sorry I have not really a lot of knowledge on ldap. Just create an issue in the server repository.

@randybock
Copy link

randybock commented Jun 12, 2017

I have done further testing with this and have found a work around. I setup a test server and in the LDAP config, changed the "internal user name" to email address (AD mail attribute) under the expert tab.
image
Then, in the App, you need to be signed in with the same exact email address (case sensitive) and everything works - you can add a folder to favorites and favorite folders are automatically available offline (if that option is selected). So basically, the internal username needs to exactly match the userID used to sign into the App.

I still think this is a bug that should be fixed.

@stobias123
Copy link

I have this same issue. We pay for enterprise support - not sure who we can contact to escalate.

@svyates
Copy link
Author

svyates commented Aug 1, 2017 via email

@MorrisJobke
Copy link
Member

@stobias123 @svyates As you already mentioned it in the support ticket, we will take care of it over there. If there are support requests, always mention it in the support system and not on github, because we are not following all comments on github in a timely manner.

@mario is currently looking into this and already replied to you.

@MorrisJobke MorrisJobke added the bug label Aug 2, 2017
@svyates
Copy link
Author

svyates commented Aug 2, 2017 via email

@svyates
Copy link
Author

svyates commented Sep 8, 2017

Still an issue in 2.17.8.

@MorrisJobke
Copy link
Member

Still an issue in 2.17.8.

cc @marinofaggiana @mario

@nursoda
Copy link

nursoda commented Nov 17, 2019

This bug should either be closed or fixed.

@unnilennium
Copy link

unnilennium commented Jan 20, 2020

still an issue
unable to remove or add the favorite tag with a ldap user
nextcloud 17.0.2
ios 2.25.3.6 app

@ebuhl
Copy link

ebuhl commented Feb 3, 2020

issue exist
ios app 2.25.5.1
nextcloud 17.0.2 and 17.0.3

it works in the past... but not now

@bnavigator
Copy link

The fact that this almost 3 year issue is still open and that the symptoms spread to other features as described in #1159, is a shame.

The iOS apps's way to deal with usernames, uids, uuids an so on needs to be revised.

@marinofaggiana
Copy link
Member

@bnavigator
Copy link

@marinofaggiana What is your intention by linking that issue? That one is "open" although a "fix" is mentioned. Meanwhile you close this bug here while there are reports, that it still happens.

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

No branches or pull requests