Skip to content
Permalink
Browse files
[JENKINS-39741] - Redirect to login page after authorisation error wh…
…en checking connectivity to update center and handle any other error.

(cherry picked from commit 5df61d4)
  • Loading branch information
alvarolobato authored and olivergondza committed Dec 6, 2016
1 parent e66bfba commit dacbe03e0d4ef3b3468413a6985b42e39c0fc9fc
Showing with 8 additions and 1 deletion.
  1. +8 −1 war/src/main/js/util/jenkins.js
@@ -244,7 +244,14 @@ exports.testConnectivity = function(siteId, handler) {
handler(true);
}
}
});
}, { error: function(xhr, textStatus, errorThrown) {
if (xhr.status === 403) {
exports.goTo('/login');
} else {
handler.call({ isError: true, errorMessage: errorThrown });
}
}
});
};
testConnectivity();
};

0 comments on commit dacbe03

Please sign in to comment.