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" - echo "travis_fold:end:install folding ends"
script: 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. 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. 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]] [[clearcache]]

View file

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

View file

@ -12,3 +12,4 @@ 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/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://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