There was an error while loading. Please reload this page.
1 parent b6d9c26 commit fb9f779Copy full SHA for fb9f779
src/com/owncloud/android/operations/DetectAuthenticationMethodOperation.java
@@ -95,9 +95,11 @@ protected RemoteOperationResult run(OwnCloudClient client) {
95
96
// try to access the root folder, following redirections but not SAML SSO redirections
97
result = operation.execute(client);
98
- while (result.isTemporalRedirection() && !result.isIdPRedirection()) {
+ String redirectedLocation = result.getRedirectedLocation();
99
+ while (redirectedLocation != null && redirectedLocation.length() > 0 && !result.isIdPRedirection()) {
100
client.setWebdavUri(Uri.parse(result.getRedirectedLocation()));
101
102
+ redirectedLocation = result.getRedirectedLocation();
103
}
104
105
// analyze response
0 commit comments