Closed zabojad closed 7 years ago
One other thing is that it seems to keep the FTP url, login and pass in cookie or session ? I'm not sure it should do that...
@lexoyo Any news about this ?
I'm still having issue when logging out simultaneously from several services:
logout
/api/1.0/dropbox
=> {"success":true,"message":"Now logged out."}
logout
/api/1.0/www
=> {"success":true,"message":"Now logged out."}
list
/api/1.0/services
=> [{"name":"dropbox","display_name":"Dropbox","image_small":"unifile-assets/services/dropbox.png","description":"Edit html files from your Dropbox.","visible":true,"isLoggedIn":true,"isConnected":true,"isOAuth":true,"user":{"display_name":"Thomas Fétiveau","quota_info":{"available":113279762432,"used":9157457865}}},{"name":"www","display_name":"Web server","image_small":"unifile-assets/services/www.png","description":"Edit files on the server where Silex is installed.","visible":true,"isLoggedIn":false,"isConnected":false,"isOAuth":false},{"name":"ftp","display_name":"FTP","image_small":"unifile-assets/services/ftp.png","description":"Edit files on a web server.","visible":true,"isLoggedIn":false,"isConnected":false,"isOAuth":false}]
The above network snapshop shows that requesting unifile to log out from 2 services result in being looged out from only one of them... This problem is affecting CE's logoutAll functionnality.
oups, I was not aware of that i'll fix it soon
I think I've spotted some issue with logging out from services:
Here is a network call snapshot from my web browser:
The problem here is that we expect the call to services/list to return the services with LoggedIn set to false. And it appears to be true for Dropbox... The last ls call should return 401 forbidden. It seems logging out from DB did not succeed whereas it returned true...
Note that the calls after the logout calls (ls, list, ...) happened when logout calls already returned to my browser.