Remove www from scm-manager.org url (#1837)

This commit is contained in:
Sebastian Sdorra
2021-10-28 11:00:24 +02:00
committed by GitHub
parent de53e1f882
commit 87aea1936b
17 changed files with 107 additions and 107 deletions

View File

@@ -746,51 +746,51 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Cache and x-requested-with header to bundle requests
- remove public flag from repository and migrate permissions to anonymous user
[2.0.0-rc1]: https://www.scm-manager.org/download/2.0.0-rc1
[2.0.0-rc2]: https://www.scm-manager.org/download/2.0.0-rc2
[2.0.0-rc3]: https://www.scm-manager.org/download/2.0.0-rc3
[2.0.0-rc4]: https://www.scm-manager.org/download/2.0.0-rc4
[2.0.0-rc5]: https://www.scm-manager.org/download/2.0.0-rc5
[2.0.0-rc6]: https://www.scm-manager.org/download/2.0.0-rc6
[2.0.0-rc7]: https://www.scm-manager.org/download/2.0.0-rc7
[2.0.0-rc8]: https://www.scm-manager.org/download/2.0.0-rc8
[2.0.0]: https://www.scm-manager.org/download/2.0.0
[2.1.0]: https://www.scm-manager.org/download/2.1.0
[2.1.1]: https://www.scm-manager.org/download/2.1.1
[2.2.0]: https://www.scm-manager.org/download/2.2.0
[2.3.0]: https://www.scm-manager.org/download/2.3.0
[2.3.1]: https://www.scm-manager.org/download/2.3.1
[2.4.0]: https://www.scm-manager.org/download/2.4.0
[2.4.1]: https://www.scm-manager.org/download/2.4.1
[2.5.0]: https://www.scm-manager.org/download/2.5.0
[2.6.0]: https://www.scm-manager.org/download/2.6.0
[2.6.1]: https://www.scm-manager.org/download/2.6.1
[2.6.2]: https://www.scm-manager.org/download/2.6.2
[2.6.3]: https://www.scm-manager.org/download/2.6.3
[2.7.0]: https://www.scm-manager.org/download/2.7.0
[2.7.1]: https://www.scm-manager.org/download/2.7.1
[2.8.0]: https://www.scm-manager.org/download/2.8.0
[2.9.0]: https://www.scm-manager.org/download/2.9.0
[2.9.1]: https://www.scm-manager.org/download/2.9.1
[2.10.0]: https://www.scm-manager.org/download/2.10.0
[2.10.1]: https://www.scm-manager.org/download/2.10.1
[2.11.0]: https://www.scm-manager.org/download/2.11.0
[2.11.1]: https://www.scm-manager.org/download/2.11.1
[2.12.0]: https://www.scm-manager.org/download/2.12.0
[2.13.0]: https://www.scm-manager.org/download/2.13.0
[2.14.0]: https://www.scm-manager.org/download/2.14.0
[2.14.1]: https://www.scm-manager.org/download/2.14.1
[2.15.0]: https://www.scm-manager.org/download/2.15.0
[2.15.1]: https://www.scm-manager.org/download/2.15.1
[2.16.0]: https://www.scm-manager.org/download/2.16.0
[2.17.0]: https://www.scm-manager.org/download/2.17.0
[2.17.1]: https://www.scm-manager.org/download/2.17.1
[2.18.0]: https://www.scm-manager.org/download/2.18.0
[2.19.0]: https://www.scm-manager.org/download/2.19.0
[2.19.1]: https://www.scm-manager.org/download/2.19.1
[2.20.0]: https://www.scm-manager.org/download/2.20.0
[2.21.0]: https://www.scm-manager.org/download/2.21.0
[2.22.0]: https://www.scm-manager.org/download/2.22.0
[2.23.0]: https://www.scm-manager.org/download/2.23.0
[2.24.0]: https://www.scm-manager.org/download/2.24.0
[2.25.0]: https://www.scm-manager.org/download/2.25.0
[2.0.0-rc1]: https://scm-manager.org/download/2.0.0-rc1
[2.0.0-rc2]: https://scm-manager.org/download/2.0.0-rc2
[2.0.0-rc3]: https://scm-manager.org/download/2.0.0-rc3
[2.0.0-rc4]: https://scm-manager.org/download/2.0.0-rc4
[2.0.0-rc5]: https://scm-manager.org/download/2.0.0-rc5
[2.0.0-rc6]: https://scm-manager.org/download/2.0.0-rc6
[2.0.0-rc7]: https://scm-manager.org/download/2.0.0-rc7
[2.0.0-rc8]: https://scm-manager.org/download/2.0.0-rc8
[2.0.0]: https://scm-manager.org/download/2.0.0
[2.1.0]: https://scm-manager.org/download/2.1.0
[2.1.1]: https://scm-manager.org/download/2.1.1
[2.2.0]: https://scm-manager.org/download/2.2.0
[2.3.0]: https://scm-manager.org/download/2.3.0
[2.3.1]: https://scm-manager.org/download/2.3.1
[2.4.0]: https://scm-manager.org/download/2.4.0
[2.4.1]: https://scm-manager.org/download/2.4.1
[2.5.0]: https://scm-manager.org/download/2.5.0
[2.6.0]: https://scm-manager.org/download/2.6.0
[2.6.1]: https://scm-manager.org/download/2.6.1
[2.6.2]: https://scm-manager.org/download/2.6.2
[2.6.3]: https://scm-manager.org/download/2.6.3
[2.7.0]: https://scm-manager.org/download/2.7.0
[2.7.1]: https://scm-manager.org/download/2.7.1
[2.8.0]: https://scm-manager.org/download/2.8.0
[2.9.0]: https://scm-manager.org/download/2.9.0
[2.9.1]: https://scm-manager.org/download/2.9.1
[2.10.0]: https://scm-manager.org/download/2.10.0
[2.10.1]: https://scm-manager.org/download/2.10.1
[2.11.0]: https://scm-manager.org/download/2.11.0
[2.11.1]: https://scm-manager.org/download/2.11.1
[2.12.0]: https://scm-manager.org/download/2.12.0
[2.13.0]: https://scm-manager.org/download/2.13.0
[2.14.0]: https://scm-manager.org/download/2.14.0
[2.14.1]: https://scm-manager.org/download/2.14.1
[2.15.0]: https://scm-manager.org/download/2.15.0
[2.15.1]: https://scm-manager.org/download/2.15.1
[2.16.0]: https://scm-manager.org/download/2.16.0
[2.17.0]: https://scm-manager.org/download/2.17.0
[2.17.1]: https://scm-manager.org/download/2.17.1
[2.18.0]: https://scm-manager.org/download/2.18.0
[2.19.0]: https://scm-manager.org/download/2.19.0
[2.19.1]: https://scm-manager.org/download/2.19.1
[2.20.0]: https://scm-manager.org/download/2.20.0
[2.21.0]: https://scm-manager.org/download/2.21.0
[2.22.0]: https://scm-manager.org/download/2.22.0
[2.23.0]: https://scm-manager.org/download/2.23.0
[2.24.0]: https://scm-manager.org/download/2.24.0
[2.25.0]: https://scm-manager.org/download/2.25.0

View File

@@ -30,7 +30,7 @@ plugins {
}
changelog {
versionUrlPattern = "https://www.scm-manager.org/download/{0}"
versionUrlPattern = "https://scm-manager.org/download/{0}"
}
subprojects { s ->

View File

@@ -3,8 +3,8 @@ title: Caching for Working Directories
---
SCM-Manager offers commands to modify repositories on the server side. For example this is used by the
[Editor Plugin](https://www.scm-manager.org/plugins/scm-editor-plugin/) and the
[Review Plugin](https://www.scm-manager.org/plugins/scm-review-plugin/). Without further configuration, this is done
[Editor Plugin](https://scm-manager.org/plugins/scm-editor-plugin/) and the
[Review Plugin](https://scm-manager.org/plugins/scm-review-plugin/). Without further configuration, this is done
by cloning/checking out the repository temporarily, performing the change, creating a commit and pushing the changes
back to the central repository. The larger the repositories, the longer this may take.

View File

@@ -49,7 +49,7 @@ For version 2 of SCM-Manager we introduced a new way to store data for repositor
# Manual plugin installation
If however you have to install plugins manually (for example because you cannot log in without the LDAP plugin), you can download them from the [plugins section](https://www.scm-manager.org/plugins/#categories) on our homepage. The download can be found in the "Releases" section of each plugin. Just store the `smp` file in the `plugin` directory of your SCM home and restart your server.
If however you have to install plugins manually (for example because you cannot log in without the LDAP plugin), you can download them from the [plugins section](https://scm-manager.org/plugins/#categories) on our homepage. The download can be found in the "Releases" section of each plugin. Just store the `smp` file in the `plugin` directory of your SCM home and restart your server.
# Huge number of repositories

View File

@@ -37,7 +37,7 @@ import java.io.IOException;
* <b>Http GET example:</b>
*
* <pre><code>
* AdvancedHttpResponse response = client.get("https://www.scm-manager.org")
* AdvancedHttpResponse response = client.get("https://scm-manager.org")
* .decodeGZip(true)
* .request();
*
@@ -48,7 +48,7 @@ import java.io.IOException;
* <b>Http POST example:</b>
*
* <pre><code>
* AdvancedHttpResponse response = client.post("https://www.scm-manager.org")
* AdvancedHttpResponse response = client.post("https://scm-manager.org")
* .formContent()
* .field("firstname", "Tricia")
* .field("lastname", "McMillan")

View File

@@ -47,7 +47,7 @@ import java.text.MessageFormat;
public final class HealthCheckFailure
{
private static final String URL_TEMPLATE = "https://www.scm-manager.org/docs/{0}/en/user/repo/health-checks/%s";
private static final String URL_TEMPLATE = "https://scm-manager.org/docs/{0}/en/user/repo/health-checks/%s";
private static final String LATEST_VERSION = "latest";
/**

View File

@@ -36,14 +36,14 @@ class HealthCheckFailureTest {
void shouldCreateTemplatedUrl() {
HealthCheckFailure failure = new HealthCheckFailure("1", "hyperdrive", urlForTitle("hyperdrive"), "Far too fast");
assertThat(failure.getUrl()).isEqualTo("https://www.scm-manager.org/docs/latest/en/user/repo/health-checks/hyperdrive");
assertThat(failure.getUrl()).isEqualTo("https://scm-manager.org/docs/latest/en/user/repo/health-checks/hyperdrive");
}
@Test
void shouldCreateTemplatedUrlForGivenVersion() {
HealthCheckFailure failure = new HealthCheckFailure("1", "hyperdrive", urlForTitle("hyperdrive"), "Far too fast");
assertThat(failure.getUrl("1.17.x")).isEqualTo("https://www.scm-manager.org/docs/1.17.x/en/user/repo/health-checks/hyperdrive");
assertThat(failure.getUrl("1.17.x")).isEqualTo("https://scm-manager.org/docs/1.17.x/en/user/repo/health-checks/hyperdrive");
}
@Test

View File

@@ -28,11 +28,11 @@
<Configure id="ScmServer" class="org.eclipse.jetty.server.Server">
<!--
This default configuration should match 90% of the use cases,
This default configuration should match 90% of the use cases,
if you have to change something ensure you know what you are doing.
For further information on configuration scm-server have a look at:
https://www.scm-manager.org/docs/${version.major}.${version.minor}.x/en/administration/scm-server/
https://scm-manager.org/docs/${version.major}.${version.minor}.x/en/administration/scm-server/
-->
<New id="httpConfig" class="org.eclipse.jetty.server.HttpConfiguration">
@@ -44,7 +44,7 @@
<Arg><New class="org.eclipse.jetty.server.ForwardedRequestCustomizer"/></Arg>
</Call>
</New>
<!--
Connectors
-->
@@ -102,7 +102,7 @@
</Set>
<Set name="tempDirectory">/var/cache/scm/work/work/docroot</Set>
</New>
<Set name="handler">
<New class="org.eclipse.jetty.server.handler.HandlerCollection">
<Set name="handlers">
@@ -117,5 +117,5 @@
</Set>
</New>
</Set>
</Configure>

View File

@@ -28,11 +28,11 @@
<Configure id="ScmServer" class="org.eclipse.jetty.server.Server">
<!--
This default configuration should match 90% of the use cases,
This default configuration should match 90% of the use cases,
if you have to change something ensure you know what you are doing.
For further information on configuration scm-server have a look at:
https://www.scm-manager.org/docs/${version.major}.${version.minor}.x/en/administration/scm-server/
https://scm-manager.org/docs/${version.major}.${version.minor}.x/en/administration/scm-server/
-->
<New id="httpConfig" class="org.eclipse.jetty.server.HttpConfiguration">
@@ -44,7 +44,7 @@
<Arg><New class="org.eclipse.jetty.server.ForwardedRequestCustomizer"/></Arg>
</Call>
</New>
<!--
Connectors
-->
@@ -102,7 +102,7 @@
</Set>
<Set name="tempDirectory">/var/cache/scm/work/work/docroot</Set>
</New>
<Set name="handler">
<New class="org.eclipse.jetty.server.handler.HandlerCollection">
<Set name="handlers">
@@ -117,5 +117,5 @@
</Set>
</New>
</Set>
</Configure>

View File

@@ -28,11 +28,11 @@
<Configure id="ScmServer" class="org.eclipse.jetty.server.Server">
<!--
This default configuration should match 90% of the use cases,
This default configuration should match 90% of the use cases,
if you have to change something ensure you know what you are doing.
For further information on configuration scm-server have a look at:
https://www.scm-manager.org/docs/${version.major}.${version.minor}.x/en/administration/scm-server/
https://scm-manager.org/docs/${version.major}.${version.minor}.x/en/administration/scm-server/
-->
<New id="httpConfig" class="org.eclipse.jetty.server.HttpConfiguration">
@@ -44,7 +44,7 @@
<Arg><New class="org.eclipse.jetty.server.ForwardedRequestCustomizer"/></Arg>
</Call>
</New>
<!--
Connectors
-->
@@ -102,7 +102,7 @@
</Set>
<Set name="tempDirectory">/var/cache/scm/work/work/docroot</Set>
</New>
<Set name="handler">
<New class="org.eclipse.jetty.server.handler.HandlerCollection">
<Set name="handlers">

View File

@@ -11,4 +11,4 @@ FSupport:
Do you have any questions or do you need support? Have a look at:
https://www.scm-manager.org/support/
https://scm-manager.org/support/

View File

@@ -28,11 +28,11 @@
<Configure id="ScmServer" class="org.eclipse.jetty.server.Server">
<!--
This default configuration should match 90% of the use cases,
This default configuration should match 90% of the use cases,
if you have to change something ensure you know what you are doing.
For further information on configuration scm-server have a look at:
https://www.scm-manager.org/docs/${version.major}.${version.minor}.x/en/administration/scm-server/
https://scm-manager.org/docs/${version.major}.${version.minor}.x/en/administration/scm-server/
-->
<New id="httpConfig" class="org.eclipse.jetty.server.HttpConfiguration">
@@ -44,7 +44,7 @@
<Arg><New class="org.eclipse.jetty.server.ForwardedRequestCustomizer"/></Arg>
</Call>
</New>
<!--
Connectors
-->
@@ -106,7 +106,7 @@
<SystemProperty name="basedir" default="."/>/work/docroot
</Set>
</New>
<Set name="handler">
<New class="org.eclipse.jetty.server.handler.HandlerCollection">
<Set name="handlers">

View File

@@ -29,4 +29,4 @@ Support:
Do you have any questions or do you need support? Have a look at:
https://www.scm-manager.org/support/
https://scm-manager.org/support/

View File

@@ -28,11 +28,11 @@
<Configure id="ScmServer" class="org.eclipse.jetty.server.Server">
<!--
This default configuration should match 90% of the use cases,
This default configuration should match 90% of the use cases,
if you have to change something ensure you know what you are doing.
For further information on configuration scm-server have a look at:
https://www.scm-manager.org/docs/${version.major}.${version.minor}.x/en/administration/scm-server/
https://scm-manager.org/docs/${version.major}.${version.minor}.x/en/administration/scm-server/
-->
<New id="httpConfig" class="org.eclipse.jetty.server.HttpConfiguration">
@@ -44,7 +44,7 @@
<Arg><New class="org.eclipse.jetty.server.ForwardedRequestCustomizer"/></Arg>
</Call>
</New>
<!--
Connectors
-->
@@ -107,7 +107,7 @@
<SystemProperty name="basedir" default="."/>/work/docroot
</Set>
</New>
<Set name="handler">
<New class="org.eclipse.jetty.server.handler.HandlerCollection">
<Set name="handlers">

View File

@@ -57741,7 +57741,7 @@ exports[`Storyshots Layout|Footer Default 1`] = `
<li>
<a
className=""
href="https://www.scm-manager.org/"
href="https://scm-manager.org/"
rel="noopener noreferrer"
target="_blank"
>
@@ -57769,7 +57769,7 @@ exports[`Storyshots Layout|Footer Default 1`] = `
<li>
<a
className=""
href="https://www.scm-manager.org/support/"
href="https://scm-manager.org/support/"
rel="noopener noreferrer"
target="_blank"
>
@@ -57867,7 +57867,7 @@ exports[`Storyshots Layout|Footer Full 1`] = `
<li>
<a
className=""
href="https://www.scm-manager.org/"
href="https://scm-manager.org/"
rel="noopener noreferrer"
target="_blank"
>
@@ -57915,7 +57915,7 @@ exports[`Storyshots Layout|Footer Full 1`] = `
<li>
<a
className=""
href="https://www.scm-manager.org/support/"
href="https://scm-manager.org/support/"
rel="noopener noreferrer"
target="_blank"
>
@@ -58014,7 +58014,7 @@ exports[`Storyshots Layout|Footer With Avatar 1`] = `
<li>
<a
className=""
href="https://www.scm-manager.org/"
href="https://scm-manager.org/"
rel="noopener noreferrer"
target="_blank"
>
@@ -58042,7 +58042,7 @@ exports[`Storyshots Layout|Footer With Avatar 1`] = `
<li>
<a
className=""
href="https://www.scm-manager.org/support/"
href="https://scm-manager.org/support/"
rel="noopener noreferrer"
target="_blank"
>
@@ -58132,7 +58132,7 @@ exports[`Storyshots Layout|Footer With Plugin Links 1`] = `
<li>
<a
className=""
href="https://www.scm-manager.org/"
href="https://scm-manager.org/"
rel="noopener noreferrer"
target="_blank"
>
@@ -58180,7 +58180,7 @@ exports[`Storyshots Layout|Footer With Plugin Links 1`] = `
<li>
<a
className=""
href="https://www.scm-manager.org/support/"
href="https://scm-manager.org/support/"
rel="noopener noreferrer"
target="_blank"
>

View File

@@ -109,11 +109,11 @@ const Footer: FC<Props> = ({ me, version, links }) => {
</FooterSection>
) : null}
<FooterSection title={<TitleWithIcon title={t("footer.information.title")} icon="info-circle" />}>
<ExternalNavLink to="https://www.scm-manager.org/" label={`SCM-Manager ${version}`} />
<ExternalNavLink to="https://scm-manager.org/" label={`SCM-Manager ${version}`} />
<ExtensionPoint name="footer.information" props={extensionProps} renderAll={true} />
</FooterSection>
<FooterSection title={<TitleWithIcon title={t("footer.support.title")} icon="life-ring" />}>
<ExternalNavLink to="https://www.scm-manager.org/support/" label={t("footer.support.community")} />
<ExternalNavLink to="https://scm-manager.org/support/" label={t("footer.support.community")} />
<ExternalNavLink
to="https://cloudogu.com/en/scm-manager-enterprise/"
label={t("footer.support.enterprise")}

View File

@@ -21,7 +21,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package sonia.scm.security;
import com.google.common.annotations.VisibleForTesting;
@@ -41,12 +41,12 @@ import java.util.concurrent.TimeUnit;
/**
* Generates cookies and invalidates access token cookies.
*
*
* @author Sebastian Sdorra
* @since 2.0.0
*/
public final class DefaultAccessTokenCookieIssuer implements AccessTokenCookieIssuer {
/**
* the logger for DefaultAccessTokenCookieIssuer
*/
@@ -55,22 +55,22 @@ public final class DefaultAccessTokenCookieIssuer implements AccessTokenCookieIs
private static final int DEFAULT_COOKIE_EXPIRATION_AMOUNT = 365;
private static final TimeUnit DEFAULT_COOKIE_EXPIRATION_UNIT = TimeUnit.DAYS;
private static final int DEFAULT_COOKIE_EXPIRATION = (int) TimeUnit.SECONDS.convert(DEFAULT_COOKIE_EXPIRATION_AMOUNT, DEFAULT_COOKIE_EXPIRATION_UNIT);
private final ScmConfiguration configuration;
/**
* Constructs a new instance.
*
*
* @param configuration scm main configuration
*/
@Inject
public DefaultAccessTokenCookieIssuer(ScmConfiguration configuration) {
this.configuration = configuration;
}
/**
* Creates a cookie for token authentication and attaches it to the response.
*
*
* @param request http servlet request
* @param response http servlet response
* @param accessToken access token
@@ -82,26 +82,26 @@ public final class DefaultAccessTokenCookieIssuer implements AccessTokenCookieIs
c.setMaxAge(DEFAULT_COOKIE_EXPIRATION);
c.setHttpOnly(isHttpOnly());
c.setSecure(isSecure(request));
// attach cookie to response
response.addCookie(c);
}
/**
* Invalidates the authentication cookie.
*
*
* @param request http servlet request
* @param response http servlet response
*/
public void invalidate(HttpServletRequest request, HttpServletResponse response) {
LOG.trace("invalidates access token cookie");
Cookie c = new Cookie(HttpUtil.COOKIE_BEARER_AUTHENTICATION, Util.EMPTY_STRING);
c.setPath(contextPath(request));
c.setMaxAge(0);
c.setHttpOnly(isHttpOnly());
c.setSecure(isSecure(request));
// attach empty cookie, that the browser can remove it
response.addCookie(c);
}
@@ -114,19 +114,19 @@ public final class DefaultAccessTokenCookieIssuer implements AccessTokenCookieIs
}
return contextPath;
}
private boolean isSecure(HttpServletRequest request){
boolean secure = request.isSecure();
if (!secure) {
LOG.warn("issuet a non secure cookie, protect your scm-manager instance with tls https://www.scm-manager.org/docs/latest/en/administration/scm-server/");
LOG.warn("issuet a non secure cookie, protect your scm-manager instance with tls https://scm-manager.org/docs/latest/en/administration/scm-server/");
}
return secure;
}
private boolean isHttpOnly(){
// set http only flag only xsrf protection is disabled,
// because we have to extract the xsrf key with javascript in the wui
return !configuration.isEnabledXsrfProtection();
}
}