Skip to content

Commit e7be874

Browse files
committed
NXDRIVE-409: Don't fall back on basic auth if startup page request returns 500 (seems to happen in some cases of SSL error)
1 parent 5bef572 commit e7be874

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nuxeo-drive-client/nxdrive/wui/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def web_authentication(self, local_folder, server_url, engine_name):
153153
# Connect to startup page
154154
status = self._connect_startup_page(server_url)
155155
# Server will send a 401 in case of anonymous user configuration
156-
if status < 400 or status == 401:
156+
if status < 400 or status in (401, 500):
157157
# Page exists, let's open authentication dialog
158158
engine_name = unicode(engine_name)
159159
if engine_name == '':

0 commit comments

Comments
 (0)