13428 Commits

Author SHA1 Message Date
René Pfeuffer
cb2916a58e Merge pull request #1137 from scm-manager/snyk-upgrade-161fc9a3afc847fd0cab891a51953935
[Snyk] Upgrade org.hibernate.validator:hibernate-validator from 6.1.2.Final to 6.1.3.Final
2020-05-06 10:49:16 +02:00
René Pfeuffer
533c9ec3a9 Merge pull request #1138 from scm-manager/snyk-upgrade-c63906e2ab44d1cd82a0b8c05834bd9c
[Snyk] Upgrade org.junit.jupiter:junit-jupiter-api from 5.6.1 to 5.6.2
2020-05-06 10:29:13 +02:00
René Pfeuffer
033911d453 Merge pull request #1135 from scm-manager/bugfix/plugin_write_permission
Change the "manage" plugin permission to "write".
2020-05-06 08:19:28 +02:00
snyk-bot
cb441e9041 fix: upgrade org.junit.jupiter:junit-jupiter-api from 5.6.1 to 5.6.2
Snyk has created this PR to upgrade org.junit.jupiter:junit-jupiter-api from 5.6.1 to 5.6.2.

See this package in NPM:
https://www.npmjs.com/package/org.junit.jupiter:junit-jupiter-api

See this project in Snyk:
https://app.snyk.io/org/scm-manager/project/4ac22872-f5a6-4220-bfe8-e6e5bf4c5fcb?utm_source=github&utm_medium=upgrade-pr
2020-05-06 03:00:59 +02:00
snyk-bot
baa36baff7 fix: upgrade org.hibernate.validator:hibernate-validator from 6.1.2.Final to 6.1.3.Final
Snyk has created this PR to upgrade org.hibernate.validator:hibernate-validator from 6.1.2.Final to 6.1.3.Final.

See this package in NPM:
https://www.npmjs.com/package/org.hibernate.validator:hibernate-validator

See this project in Snyk:
https://app.snyk.io/org/scm-manager/project/0397d943-538d-483e-9c87-a3f7e7665d7b?utm_source=github&utm_medium=upgrade-pr
2020-05-06 00:16:09 +02:00
Eduard Heimbuch
1c23686823 update CHANGELOG.md 2020-05-05 19:13:54 +02:00
Eduard Heimbuch
beb9ad0d13 cleanup outdated jaxb annotations 2020-05-05 18:58:58 +02:00
Eduard Heimbuch
f3d289546e update CHANGELOG.md // adjust unit tests to changed permission 2020-05-05 11:15:26 +02:00
Konstantin Schaper
a354822b81 Merge pull request #1134 from scm-manager/feature/validation_test_dependencies
Add dependencies needed for validation unit tests
2020-05-05 11:14:05 +02:00
Eduard Heimbuch
63e5d2f23d Change the "manage" plugin permission to "write". This way we don't need a migration because the plugin manage permission was already saved as "plugin:read,write" 2020-05-05 10:55:23 +02:00
René Pfeuffer
86d17a68cf Add dependencies needed for validation unit tests 2020-05-05 10:21:16 +02:00
René Pfeuffer
55c96ee81d Merge pull request #1133 from scm-manager/bugfix/fix_permission_check
Fix permission check
2020-05-05 07:46:54 +02:00
René Pfeuffer
03b39951ab Merge pull request #1128 from scm-manager/bugfix/1113_validate_svn_checksums
Validate subversion client checksums
2020-05-05 07:42:13 +02:00
Sebastian Sdorra
3b53149a54 #1113 update svnkit to 1.10.1-scm2, in order to validate subversion client checksums 2020-05-05 07:41:51 +02:00
Sebastian Sdorra
082e68b333 Merge pull request #1129 from scm-manager/bugfix/handle_multiple_line_breaks_in_diff
Fix error with redundant line breaks
2020-05-05 07:36:14 +02:00
Sebastian Sdorra
3e8ac98c62 added unit tests for RepositoryServiceFactory 2020-05-04 22:00:35 +02:00
René Pfeuffer
d6f0fd5af4 Fix permission check 2020-05-04 21:06:19 +02:00
Sebastian Sdorra
cd3822c83c upload helm chart on deploy 2020-05-04 20:28:57 +02:00
Sebastian Sdorra
7bad2bf0c1 push on docker image on maven deploy 2020-05-04 20:25:08 +02:00
Sebastian Sdorra
9a57ce1388 upload rpm file on deploy 2020-05-04 20:01:16 +02:00
Sebastian Sdorra
3e322d5448 upload deb file in deploy phase 2020-05-04 17:54:05 +02:00
René Pfeuffer
52a09a96d2 Fix error with redundant line breaks
This fixes an error with a repository, where an added file has \r\r\n
as line breaks. This interesting combination is handled as a single
line break by the diff operation, while Java's Scanner implementation
handles this as two lines (the first one delimited by the first \r,
the second one delimited by \r\n. This led to empty lines inside the
diff, where we only expect lines that contain at least one character
(' ', '+' or '-'), and this in turn led to an index out of bounds
exception.

Now we handle each combination of any kind of new line delimiter
characters as a single delimiter. This should be safe, because, as
mentioned earlier, we always expect at least one character in a line
for a diff output.
2020-05-04 15:23:46 +02:00
René Pfeuffer
ffcc146f75 Remove old plugin
License check was replaced by other verion and is configured in root pom.
2020-05-04 11:29:53 +02:00
René Pfeuffer
2c2fbb5eae Fix exclusion name for source file 2020-05-04 11:22:07 +02:00
Sebastian Sdorra
4cc0ff354b Merge pull request #1114 from scm-manager/feature/dto_validator
Add class to manually validate rest data transfer
2020-05-04 10:22:55 +02:00
René Pfeuffer
ce2b8c5c93 Fix scope for lib required by test 2020-05-04 09:56:55 +02:00
Sebastian Sdorra
49c03cd8db added helm packaging 2020-05-03 19:20:40 +02:00
Sebastian Sdorra
cca22d92a7 use scm-server as base directory 2020-05-03 14:26:21 +02:00
Sebastian Sdorra
b79260b171 adjust configuration for windows package 2020-05-03 14:23:47 +02:00
Sebastian Sdorra
8e332575cb added missing license header 2020-05-03 11:41:41 +02:00
Sebastian Sdorra
bac253d276 implemented restart strategy for windows services 2020-05-03 11:23:42 +02:00
Sebastian Sdorra
54702f390c Merge pull request #1117 from scm-manager/snyk-upgrade-cd9a6dcdad96ecd718cfd645f5a39d70
[Snyk] Upgrade org.eclipse.jetty:jetty-webapp from 9.4.27.v20200227 to 9.4.28.v20200408
2020-05-02 15:33:49 +02:00
snyk-bot
59e30580d6 fix: upgrade org.eclipse.jetty:jetty-webapp from 9.4.27.v20200227 to 9.4.28.v20200408
Snyk has created this PR to upgrade org.eclipse.jetty:jetty-webapp from 9.4.27.v20200227 to 9.4.28.v20200408.

See this package in NPM:
https://www.npmjs.com/package/org.eclipse.jetty:jetty-webapp

See this project in Snyk:
https://app.snyk.io/org/scm-manager/project/9ae37cfe-98a5-4b6b-bbf7-ffa5cde55e58?utm_source=github&utm_medium=upgrade-pr
2020-04-30 23:16:09 +02:00
René Pfeuffer
f9c37d7e1b Add unit test for validation 2020-04-30 17:54:49 +02:00
René Pfeuffer
32109a32f6 Map jaxb violation exceptions instead of reaseasy
ResteasyViolationException implements jaxb's
ConstraintViolationException.
2020-04-30 17:39:08 +02:00
René Pfeuffer
705a175221 Add test helper for (de)serialization of arbitrary objects 2020-04-30 15:51:08 +02:00
René Pfeuffer
fa8afc9fbf Add simple test util to verify serializability 2020-04-30 14:59:05 +02:00
René Pfeuffer
19662e54a9 Add class to manually validate rest data transfer
It may be necessary to validate objects annotated wit javax validation
tags, that could not be validated using the internal resteasy validation
mechanism, eg. objects created manually. This new class makes this
possible by simply calling validate(dto).
2020-04-30 09:00:52 +02:00
René Pfeuffer
d4a3f04630 Merge pull request #1112 from scm-manager/bugfix/unsupported_cipher
Use AES/GCM/NoPadding instead of AES/CTR/PKCS5PADDING
2020-04-29 14:04:01 +02:00
Sebastian Sdorra
681ceac160 update changelog 2020-04-29 11:33:52 +02:00
Sebastian Sdorra
b643de3d72 use AES/GCM/NoPadding instead of AES/CTR/PKCS5PADDING to ensure cipher works with newer java versions
Value are now encoded with a prefix to detect the new format.
Old values are read with the old algorithm to ensure compatibility with older scm homes.
2020-04-29 11:25:39 +02:00
Sebastian Sdorra
289f0ffc21 migrate cipher tests to junit5 2020-04-29 09:56:24 +02:00
Sebastian Sdorra
f3d94588d8 fixed compiler error of InMemoryConfigurationEntryStore 2020-04-28 16:42:15 +02:00
Sebastian Sdorra
58876e4e91 fixed some sonarqube findings 2020-04-28 15:40:35 +02:00
Sebastian Sdorra
14a1427502 use java.util.function.Predicate as api instead of the one from guava 2020-04-28 15:38:08 +02:00
Sebastian Sdorra
1a367b2657 fix duplicate ClassLoader logic 2020-04-28 14:41:31 +02:00
Sebastian Sdorra
aa23f6f7ab update changelog 2020-04-28 14:16:25 +02:00
Sebastian Sdorra
38eea06312 added optional store parameter for ClassLoader and adapter 2020-04-28 14:10:11 +02:00
Sebastian Sdorra
cf4c1092b9 create context class in order to configure Marshaller and Unmarshaller central 2020-04-28 13:46:11 +02:00
Sebastian Sdorra
dbc97d8993 simplified structure of store builders 2020-04-28 09:47:16 +02:00