3735 Commits

Author SHA1 Message Date
Rene Pfeuffer
a5d9992e65 Set X-Frame-Options to 'sameorigin'
We need this setting to be able to display PDF files in the file view in Firefox (Chrome does this nonethelss, only Firefox seems to have a problem without this header).

Pushed-by: Rene Pfeuffer<rene.pfeuffer@cloudogu.com>
Co-authored-by: René Pfeuffer<rene.pfeuffer@cloudogu.com>
Committed-by: René Pfeuffer<rene.pfeuffer@cloudogu.com>
2024-09-23 10:24:14 +02:00
Rene Pfeuffer
6f9db230a7 Update java test libraries 2024-08-29 18:42:25 +02:00
Thomas Zerr
316d03ad1a Fix logging
With this change,
- logs are only written to console when the server is started in foreground (prevents writing to scm-server.out file)
- the location of the log file is determined correctly, when it is configured with a relative path
- less logs are written to console on startup
- enabling file and console appenders via config.yml
2024-08-26 16:25:15 +02:00
Thomas Zerr
5d908b29d6 Improve Java Test compilation time
Co-authored-by: Sebastian Sdorra<sebastian.sdorra@cloudogu.com>
Co-authored-by: Thomas Zerr<thomas.zerr@cloudogu.com>
Pushed-by: Thomas Zerr<thomas.zerr@cloudogu.com>
Pushed-by: Sebastian Sdorra<sebastian.sdorra@cloudogu.com>
2024-08-23 10:30:49 +02:00
Thomas Zerr
090178a3dd Update env variable docs 2024-08-20 17:31:44 +02:00
Thomas Zerr
39e8f66565 Add logging for the used scm-manager core version 2024-08-13 16:15:30 +02:00
Tarik Gürsoy
797bda4bbb Add statistics for diffs (added, deleted, modified)
Extend the diff result from the diff command to include modified,
added and deleted file count and add DiffStats component to
ui-components.

Pushed-by: Rene Pfeuffer<rene.pfeuffer@cloudogu.com>
Pushed-by: Tarik Gürsoy<tarik.guersoy@cloudogu.com>
Co-authored-by: René Pfeuffer<rene.pfeuffer@cloudogu.com>
Co-authored-by: Tarik Gürsoy<tarik.guersoy@cloudogu.com>
2024-08-01 16:54:40 +02:00
Rene Pfeuffer
48b4978a3b Fix privilege escalation in namespaces
This fixes the following security issue:&#10;If a user creates a new repository in a namespace this user had no permission to read any repository from, the user gets OWNER permissions on this namespace and all other permissions are removed from this namespace.

Pushed-by: Rene Pfeuffer<rene.pfeuffer@cloudogu.com>
Co-authored-by: René Pfeuffer<rene.pfeuffer@cloudogu.com>
Committed-by: René Pfeuffer<rene.pfeuffer@cloudogu.com>
2024-07-05 12:24:24 +02:00
Laura Gorzitze
b12f4d579a Notification if external user management is activated
A notification will be displayed when an external user
management system is activated to inform that users
created within the SCMM will not be transferred to the
external system.

Co-authored-by: René Pfeuffer<rene.pfeuffer@cloudogu.com>
2024-07-04 09:05:17 +02:00
René Pfeuffer
e29d30c578 Merge branch 'hotfix/2.46.4' into develop
# Conflicts:
#	CHANGELOG.md
#	gradle.properties
#	scm-dao-xml/src/main/java/sonia/scm/repository/xml/XmlRepositoryDAO.java
#	scm-plugins/scm-git-plugin/package.json
#	scm-plugins/scm-hg-plugin/package.json
#	scm-plugins/scm-legacy-plugin/package.json
#	scm-plugins/scm-svn-plugin/package.json
#	scm-ui/e2e-tests/package.json
#	scm-ui/ui-api/package.json
#	scm-ui/ui-buttons/package.json
#	scm-ui/ui-components/package.json
#	scm-ui/ui-extensions/package.json
#	scm-ui/ui-forms/package.json
#	scm-ui/ui-layout/package.json
#	scm-ui/ui-legacy/package.json
#	scm-ui/ui-modules/package.json
#	scm-ui/ui-overlays/package.json
#	scm-ui/ui-plugins/package.json
#	scm-ui/ui-polyfill/package.json
#	scm-ui/ui-scripts/package.json
#	scm-ui/ui-shortcuts/package.json
#	scm-ui/ui-styles/package.json
#	scm-ui/ui-syntaxhighlighting/package.json
#	scm-ui/ui-tests/package.json
#	scm-ui/ui-text/package.json
#	scm-ui/ui-types/package.json
#	scm-ui/ui-webapp/package.json
2024-06-24 11:53:58 +02:00
Laura Gorzitze
38d0325b4c Check on duplicate name for rename
Add check whether namespace and name already exist
when renaming a repository.
2024-06-24 10:12:53 +02:00
Laura Gorzitze
25548e9f0a Add error description for read-only exception 2024-06-18 09:47:52 +02:00
Viktor Egorov
5d446278d9 Fixed branch name limit
Pushed-by: Viktor Egorov<viktor.egorov-extern@cloudogu.com>
Co-authored-by: Viktor<viktor.egorov@triology.de>
Co-authored-by: Thomas Zerr<thomas.zerr@cloudogu.com>
Pushed-by: Thomas Zerr<thomas.zerr@cloudogu.com>
2024-06-10 13:21:30 +02:00
Eduard Heimbuch
d55f5deda7 Fix unit tests 2024-05-23 08:21:36 +02:00
Eduard Heimbuch
bef418692b Delete annoying unit test which breaks the unit test suite 2024-05-22 14:33:06 +02:00
Thomas Zerr
09d72280d0 Fix exact search
Previously a query was only parsed by lucene as it is, if the query
contained a colon (:) or a wildcard character (*). With this, every query
gets parsed as it is, as long as there is one operator contained inside
the query (colon, quotation marks, logical operators, ...). These are
called "expert queries". All other queries are still processed as
"simple queries" where every part of the query is extended with a
wildcard operator.

Addtionally the user is now getting feedback for every
search, if the query is a simple query or an expert query. The syntax
documentation got also extended with the quotation mark operator
and the definition of the two query types.

Co-authored-by: René Pfeuffer<rene.pfeuffer@cloudogu.com>
2024-05-14 11:45:10 +02:00
Viktor Egorov
c8ef99cf07 Add option to hide whitepace changes in diffs
Co-authored-by: Florian Scholdei<florian.scholdei@cloudogu.com>
Co-authored-by: René Pfeuffer<rene.pfeuffer@cloudogu.com>


Reviewed-by: Florian Scholdei <florian.scholdei@cloudogu.com>
2024-05-14 11:33:48 +02:00
Thomas Zerr
6fbde760d4 Fix double /trunk folder bug
With this change, every repository initializer gets its own modification command and therefore its own commit. This allows each initializer to decide on its own, if he want to use the default path of the repository.
2024-04-30 15:28:08 +02:00
Laura Gorzitze
8d12862ff8 Display all tags for changeset
Display of all tags (as links to the  overview of the specific tag) of a given changeset in the changeset detail view.
2024-03-11 17:09:59 +01:00
Rene Pfeuffer
01bd18b714 Fix error for commits with SSH signatures
Pushed-by: Rene Pfeuffer<rene.pfeuffer@cloudogu.com>
Co-authored-by: René Pfeuffer<rene.pfeuffer@cloudogu.com>
2024-03-06 13:23:55 +01:00
Laura Gorzitze
aa84568c1c Merge tag '2.46.2' into develop
Release version 2.46.2
2024-03-05 10:48:19 +01:00
Laura Gorzitze
1ab5c3fe80 Adjust security headers to allow pdf rendering 2024-03-04 14:50:39 +01:00
Laura Gorzitze
a61f840b0e Description for plugin condition mismatch
The missing description of the plugin condition in the
logs during a condition mismatch is now included and
also displayed in a readable way. Additionally, a
specialised error will be displayed during the installation
or update of plugins detailing that a condition mismatch
happened and also which condition was not fulfilled
instead of a generic internal server error.
2024-02-22 18:19:44 +01:00
Laura Gorzitze
46c52cdb99 Fix uninstallable flag after discarding changes
After uninstalling a plugin (without restart) and then discarding the
changes, plugins which are required for the plugin can be uninstalled
even if the uninstallation was reverted. This was caused by not updating
the dependency relations between the plugins when an uninstallation has
been canceled. Therefore, the updating step is added.
2024-02-13 18:02:54 +01:00
Eduard Heimbuch
89c4a20dd5 Add namespace owner on namespace creation
Namespace owner may see the namespace configuration page.

Committed-by: René Pfeuffer<rene.pfeuffer@cloudogu.com>
2024-02-08 14:18:16 +01:00
Laura Gorzitze
d8e1f2d739 Cleanup Code
Pushed-by: Rene Pfeuffer<rene.pfeuffer@cloudogu.com>
Co-authored-by: René Pfeuffer<rene.pfeuffer@cloudogu.com>
2024-02-06 14:54:00 +01:00
Rene Pfeuffer
28c02dfcd6 Fix enabling forward headers and log appender with environment variable
Co-authored-by: René Pfeuffer<rene.pfeuffer@cloudogu.com>
2024-02-02 15:10:32 +01:00
Eduard Heimbuch
488e04823c Change work dir for devs 2024-01-15 19:58:17 +01:00
Rene Pfeuffer
587863b0a6 Fix Windows specific paths
Pushed-by: Rene Pfeuffer<rene.pfeuffer@cloudogu.com>
Co-authored-by: René Pfeuffer<rene.pfeuffer@cloudogu.com>
Committed-by: René Pfeuffer<rene.pfeuffer@cloudogu.com>
2024-01-09 10:17:01 +01:00
Eduard Heimbuch
b397aaacce Re-add exit code restart strategy 2024-01-09 09:20:43 +01:00
Eduard Heimbuch
5cffa4f26d Transform 2.x dependent plugins only once 2024-01-08 15:59:38 +01:00
René Pfeuffer
314fb02823 Fix workdir configuration 2023-12-20 16:31:41 +01:00
Eduard Heimbuch
d0c43dd9f4 Improve server config documentation and cleanup 2023-12-18 15:30:57 +01:00
Eduard Heimbuch
cf4d9cf20f 3.x
Committed-by: Eduard Heimbuch<eduard.heimbuch@cloudogu.com>
Pushed-by: Rene Pfeuffer<rene.pfeuffer@cloudogu.com>
Co-authored-by: René Pfeuffer<rene.pfeuffer@cloudogu.com>
Pushed-by: Eduard Heimbuch<eduard.heimbuch@cloudogu.com>
Committed-by: René Pfeuffer<rene.pfeuffer@cloudogu.com>
2023-11-30 17:02:44 +01:00
Rene Pfeuffer
14f1cb0218 Remove exception from api key verification
This removes repeated exceptions from the api key service when checking requests without an api key. Despite of throwing an exception, the service now simply returns &#96;null&#96;, when the authentication was not successful.

Pushed-by: Rene Pfeuffer<rene.pfeuffer@cloudogu.com>
Co-authored-by: René Pfeuffer<rene.pfeuffer@cloudogu.com>
2023-11-21 08:13:07 +01:00
Rene Pfeuffer
112a6ad329 Accept file names with semicolons in SVN commits
Co-authored-by: Eduard Heimbuch<eduard.heimbuch@cloudogu.com>
Pushed-by: Rene Pfeuffer<rene.pfeuffer@cloudogu.com>
Co-authored-by: René Pfeuffer<rene.pfeuffer@cloudogu.com>
Pushed-by: Eduard Heimbuch<eduard.heimbuch@cloudogu.com>
Committed-by: René Pfeuffer<rene.pfeuffer@cloudogu.com>
2023-11-17 13:08:09 +01:00
Florian Scholdei
a8c32b10de Preferred checkout variant
Add ability to prioritize the repository checkout variants. These are displayed sorted.

Co-authored-by: Eduard Heimbuch<eduard.heimbuch@cloudogu.com>
Pushed-by: Florian Scholdei<florian.scholdei@cloudogu.com>
Co-authored-by: Florian Scholdei<florian.scholdei@cloudogu.com>
Pushed-by: Eduard Heimbuch<eduard.heimbuch@cloudogu.com>
2023-11-15 13:27:48 +01:00
Eduard Heimbuch
8dc0041e17 Remove mail for anonymous user 2023-11-13 16:19:15 +01:00
Rene Pfeuffer
234f7d840e Do not render links to not-existing users in groups
Pushed-by: Rene Pfeuffer<rene.pfeuffer@cloudogu.com>
Co-authored-by: René Pfeuffer<rene.pfeuffer@cloudogu.com>
2023-11-07 13:42:31 +01:00
Rene Pfeuffer
fd53c17e9e Clear caches before rebuilding index
This is a follow-up to #202

Pushed-by: Rene Pfeuffer<rene.pfeuffer@cloudogu.com>
Co-authored-by: René Pfeuffer<rene.pfeuffer@cloudogu.com>
2023-11-07 08:58:49 +01:00
Rene Pfeuffer
f333a0bf18 Use a random time for plugin center updates
Pushed-by: Rene Pfeuffer<rene.pfeuffer@cloudogu.com>
Co-authored-by: René Pfeuffer<rene.pfeuffer@cloudogu.com>
2023-11-06 10:34:05 +01:00
Thomas Zerr
123fc4c3d1 Invalidation of caches and search index
In the general admin settings, the user can find two button to either invalidate the cache or rebuild the search index.&#10;&#10;The endpoints are defined in the InvalidationResource class in scm-webapp.

Co-authored-by: René Pfeuffer<rene.pfeuffer@cloudogu.com>
2023-11-02 10:51:32 +01:00
Tarik Gürsoy
c4db885937 No owner set when import repo with metadata
When importing a SCM exported Repo with Metadata the creator wasnt set as the owner and thus couldnt view the imported repository. This bug has been fixed.

Pushed-by: Tarik Gürsoy<tarik.guersoy@cloudogu.com>
Co-authored-by: Tarik Gürsoy<tarik.guersoy@cloudogu.com>
2023-10-17 08:28:08 +02:00
Rene Pfeuffer
d0f8161220 Add functionality to modify repository storage locations
The repository location resolver gets a new function&#10;that allows to change the location of a repository.

Pushed-by: Rene Pfeuffer<rene.pfeuffer@cloudogu.com>
Co-authored-by: René Pfeuffer<rene.pfeuffer@cloudogu.com>
Committed-by: René Pfeuffer<rene.pfeuffer@cloudogu.com>
2023-10-13 10:23:29 +02:00
Rene Pfeuffer
2ca68c43b3 Add update steps for namespaces
This adds a new update step API dedicated&#10;to handle namespace related data.

Pushed-by: Rene Pfeuffer<rene.pfeuffer@cloudogu.com>
Co-authored-by: René Pfeuffer<rene.pfeuffer@cloudogu.com>
Committed-by: René Pfeuffer<rene.pfeuffer@cloudogu.com>
2023-10-05 11:00:20 +02:00
Rene Pfeuffer
5149927195 Avoid IllegalStateExceptions
The DefaultNamespaceManager has not been a singleton.
Because of this, instances could be removed before
the event has been handled completely and therefore
the handler could no longer be removed from the queue,
resulting in an IllegalStateException.

By making the manager a singleton, it is no longer
garbage collected and therefore we do not get the
exception any longer.

Committed-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com>
Co-authored-by: René Pfeuffer <rene.pfeuffer@cloudogu.com>
2023-09-20 17:36:34 +02:00
Rene Pfeuffer
d2a0525b0b Catch exception when repositories are deleted
Committed-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com>
Co-authored-by: René Pfeuffer <rene.pfeuffer@cloudogu.com>
2023-09-19 09:30:14 +02:00
Thomas Zerr
b2472d85d0 Added force to push command for git and hg repos
Committed-by: Rene Pfeuffer <rene.pfeuffer@cloudogu.com>
2023-09-14 20:28:37 +02:00
Eduard Heimbuch
93a23466ff Fix cypress by using new stage "TESTING"
Cypress did not work because of the stricter security header. We introduced a new stage named "TESTING" which ignores this security headers and allow testing tools to work as intended.

Committed-by: Konstantin Schaper <konstantin.schaper@cloudogu.com>
2023-09-08 15:19:54 +02:00
Laura Gorzitze
3a99fe7a82 Fix archive cleaner when no directory exists 2023-09-05 10:15:45 +02:00