owncloud / ios-legacy

:iphone: iOS app for ownCloud
https://itunes.apple.com/app/owncloud/id543672169
GNU General Public License v3.0
623 stars 687 forks source link

Fail getting the credentials #371

Closed caraldel closed 9 years ago

caraldel commented 9 years ago

I'm using the app to connect with my owncloud server. I can do it, but when it's loading the files that I have in my account y show this log error:

2015-05-22 16:10:40.571 Owncloud iOs Client[10275:60b] <0x3ab874 UtilsDtos.m:(53)> Server URL is: owncloud 2015-05-22 16:10:40.574 Owncloud iOs Client[10275:60b] cookieStorage: ( "<NSHTTPCookie version:0 name:\"oc451b7b02c4\" value:\"v9l25i24u9bvbhpvifmncrc6v0\" expiresDate:(null) created:2015-05-22 14:10:40 +0000 (4.53997e+08) sessionOnly:TRUE domain:\"xxxx.yy.es\" path:\"/owncloud\" isSecure:TRUE>" ) 2015-05-22 16:10:40.580 Owncloud iOs Client[10275:6c5f] <0x3ab61c ManageUsersDB.m:(183)> getUserByIdUser:(int) idUser 2015-05-22 16:10:40.589 Owncloud iOs Client[10275:6c5f] <0x3ab504 OCKeychain.m:(74)> keychainItem: { acct = 29; agrp = "KT98P9F9QS.group.xx.yy.appmovil.owncloud"; class = genp; pdmn = ck; "r_Attributes" = 1; "r_Data" = 1; } 2015-05-22 16:10:40.593 Owncloud iOs Client[10275:6c5f] <0x3ab504 OCKeychain.m:(78)> (getCredentials)Error Code -25300 2015-05-22 16:10:40.595 Owncloud iOs Client[10275:6c5f] Unable to get the item with id =29 2015-05-22 16:10:40.629 Owncloud iOs Client[10275:60b] cookies: ( )

caraldel commented 9 years ago

I have this issue because it can`t set the credential:

2015-05-22 17:26:31.250 Owncloud iOs Client[275:60b] Finish xml directory list parse 2015-05-22 17:26:31.252 Owncloud iOs Client[275:60b] <0x182b7200 LoginViewController.m:(2067)> Operation response code: 207 2015-05-22 17:26:31.253 Owncloud iOs Client[275:60b] <0x182b7200 LoginViewController.m:(1737)> byURL: |https://xxxx.yy.es/owncloud| 2015-05-22 17:26:31.255 Owncloud iOs Client[275:60b] <0x182b7200 LoginViewController.m:(1745)> URL with /: https://xxxx.yy.es/owncloud/ 2015-05-22 17:26:31.256 Owncloud iOs Client[275:60b] <0x2e862c ManageUsersDB.m:(46)> Insert user: url:https://xxxx.yy.es/owncloud/ / username:XXXXX / password:ZZZZ / ssl:1 / activeaccount:1 2015-05-22 17:26:31.282 Owncloud iOs Client275:60bError Code: -25243 2015-05-22 17:26:31.284 Owncloud iOs Client[275:60b] <0x2e862c ManageUsersDB.m:(77)> Failed setting credentials for user <UserDto: 0x175d6f70> 2015-05-22 17:26:31.285 Owncloud iOs Client[275:60b] <0x2e862c ManageUsersDB.m:(89)> getActiveUser

Why I get this error ?

javiergonzper commented 9 years ago

Because you can not open the keychain to save the credentials. http://stackoverflow.com/questions/7989258/ios-keychain-secitemadd-returns-25243

rperezb commented 9 years ago

Closed for inactivity, if needed, please reopen