You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Deleting an account does not clear the current uploads #1499
As discussed offline, the current behaviour is the really expected behaviour, with the exception of the error cause, that needs to be "Credentials error". The client can't distinguish the deletion of the account in the server with from the modification of the password in the server.
Deleting the account from the server, set all pending uploads for this account to "Credential Error" except the current in progress that it is setting as "UNKNOWN"
I debugged this, and there's no much we can do to improve it:
The upload interrupted with the deletion ends because the server responses with HTTP code 400 (unspecific client error) to the chunk in progress; from this error code we can't deduce nothing too specific, and definitely can't conclude that the user account was deleted.
The rest of the uploads fail with an HTTP code 401, as expected, since the user is not available anymore, so its credentials are not valid.
The message for unknown errors now is "Unknown error", that slightly improves "UNKNOWN" not shouting the user ;-)
Of course, the app shouldn't just clear the failed uploads automatically, since the response received from the server is the same as changing the password from the web UI.
Activity
davivel commentedon Mar 9, 2016
As discussed offline, the current behaviour is the really expected behaviour, with the exception of the error cause, that needs to be "Credentials error". The client can't distinguish the deletion of the account in the server with from the modification of the password in the server.
davivel commentedon Mar 9, 2016
Ready to test (regarding the error cause) in #1493.
nasli commentedon Mar 16, 2016
Deleting the account from the server, set all pending uploads for this account to "Credential Error" except the current in progress that it is setting as "UNKNOWN"
davivel commentedon Mar 16, 2016
Will check it
davivel commentedon Mar 17, 2016
I debugged this, and there's no much we can do to improve it:
I think all this is reasonable for this case.
davivel commentedon Mar 17, 2016
Of course, the app shouldn't just clear the failed uploads automatically, since the response received from the server is the same as changing the password from the web UI.
nasli commentedon Mar 18, 2016
👍 Ok works for me