KEYCLOAK-9982 Fix broken link

This commit is contained in:
Hynek Mlnarik 2019-04-02 22:32:39 +02:00 committed by Marek Posolda
parent e342353808
commit f0f4e0428d
4 changed files with 8 additions and 3 deletions

View file

@ -13,4 +13,4 @@ install:
- echo "travis_fold:end:install folding ends"
script:
- mvn test -f tests/pom.xml -D$PROFILE -B
- mvn test -f tests/pom.xml -D$PROFILE -B -fae

View file

@ -671,7 +671,7 @@ A bidirectional state transfer will ensure that entities which were created *aft
Unfortunately, there is no any universal solution to this. Split-brains and network outages are just state, which is usually impossible to be handled 100% correctly with 100% consistent data between sites. In the case of {project_name}, it typically is not a critical issue. In the worst case, users will need to re-login again to their clients, or have the improper count of loginFailures tracked for brute force protection. See the {jdgserver_name}/JGroups documentation for more tips how to deal with split-brain.
The state transfer can be also done on the {jdgserver_name} server side through JMX. The operation name is `pushState`. There are few other operations to monitor status, cancel push state, and so on.
More info about state transfer is available in the link:{jdgserver_crossdcdocs_link}#state_transfer_between_sites[{jdgserver_name} docs].
More info about state transfer is available in the link:{jdgserver_crossdcdocs_link}#pushing_state_transfer_to_sites[{jdgserver_name} docs].
[[clearcache]]

View file

@ -150,6 +150,8 @@ public class LinkUtils {
for (String ignored : ignoredLinks) {
if (ignored.endsWith("*") && link.startsWith(ignored.substring(0, ignored.length() - 1))) {
return false;
} else if (ignored.startsWith("REGEX:") && link.matches(ignored.substring(6))) {
return true;
} else if (ignored.equals(link)) {
return false;
}
@ -172,6 +174,8 @@ public class LinkUtils {
for (String valid : ignoredLinkRedirects) {
if (valid.endsWith("*") && location.startsWith(valid.substring(0, valid.length() - 1))) {
return true;
} else if (valid.startsWith("REGEX:") && location.matches(valid.substring(6))) {
return true;
} else if (valid.equals(location)) {
return true;
}

View file

@ -11,4 +11,5 @@ https://nodejs.org/en/
http://docs.openshift.com/container-platform/*
https://access.redhat.com/documentation/en/red-hat-jboss-middleware-for-openshift/3/single/openshift-primer/
https://access.redhat.com/login?redirectTo=https://access.redhat.com/terms-based-registry
https://sso.redhat.com/auth/*
https://sso.redhat.com/auth/*
REGEX:https://access.redhat.com/documentation/.*/index