Bug #13105
closedMissing federation config makes the multi-site search's session manager fail to log in
Description
It seems that if API's remote_hosts
configuration is not declared on the config file, the discovery document doesn't get a useful default value (In this case, would be {}
) and also the Javascript code from SessionDB
assumes that remoteHosts
will always be defined.
We could fix this problem on both sides, adding proper error messages to the Javascript code if it happens to be that a newer workbench is working against an older API server.
Updated by Lucas Di Pentima almost 7 years ago
- Target version changed from 2018-02-28 Sprint to 2018-03-14 Sprint
Updated by Lucas Di Pentima almost 7 years ago
- Target version changed from 2018-03-14 Sprint to 2018-03-28 Sprint
Updated by Tom Morris almost 7 years ago
- Target version changed from 2018-03-28 Sprint to 2018-04-11 Sprint
Updated by Tom Clegg almost 7 years ago
Seems like this shouldn't be an error -- Workbench should behave as if config is empty/false if those remote_* entries aren't in the discovery doc. This should only happen with an old API server -- API server config already defaults to {}
.
Updated by Lucas Di Pentima almost 7 years ago
- Status changed from New to In Progress
Updated by Lucas Di Pentima almost 7 years ago
Updates at 41e47f3ea2edecd4f15f9f4321de6e71b24aedbc - branch 13105-wb-ignore-missing-remotes
Test run: https://ci.curoverse.com/job/developer-run-tests/680/
Updated by Tom Clegg almost 7 years ago
Instead of having 4 variations of this, could we fill in both missing values once in discoveryDoc(), and fix the two cases that don't call discoveryDoc() so they do? I expect this will also eliminate some redundant requests by giving discoveryDoc()'s cache more opportunities.
-m.request(baseURL+'discovery/v1/apis/arvados/v1/rest').then(function(dd) {
+db.discoveryDoc({baseURL: baseURL}).map(function(dd) {
...
})
Updated by Lucas Di Pentima almost 7 years ago
Updated & rebased at 6171961498800d18e826da1dcb1b908600eec0ac
Set default values on discoveryDoc
func, also fix some discovery doc requests to use the cache, as suggested.
Updated by Tom Clegg almost 7 years ago
suggest
-db.discoveryDoc({baseURL: session.baseURL}).map...
+db.discoveryDoc(session).map...
the rest LGTM, thanks!
Updated by Lucas Di Pentima almost 7 years ago
- Status changed from In Progress to Resolved
- % Done changed from 0 to 100
Applied in changeset arvados|ff932544fa3204e12cb9f1beb13683a2c6d9e3c1.
Updated by Peter Amstutz over 6 years ago
- Related to Bug #13851: Workbench multi-site search bug added