Commit Graph

9769 Commits

Author SHA1 Message Date
Eduard Heimbuch
b8a5d5d087 add guide to prevent common pitfalls in ui development 2020-05-07 13:08:09 +02:00
René Pfeuffer
715c844b90 Merge pull request #1143 from scm-manager/feature/add_xml_cipher_adapter
add xml encryption adapter to encode passwords or apitoken on marshal…
2020-05-07 11:48:20 +02:00
René Pfeuffer
4f7c5d7486 Hide utility used only for xml adapter 2020-05-07 11:45:40 +02:00
René Pfeuffer
9952cda57b Merge pull request #1136 from scm-manager/cleanup/remove_outdated_jaxb_annotations
cleanup outdated jaxb annotations
2020-05-07 11:38:11 +02:00
René Pfeuffer
c1afa18a84 Merge pull request #1144 from scm-manager/feature/remove_1.x_doc
Feature/remove 1.x doc
2020-05-07 11:06:51 +02:00
René Pfeuffer
3d5dda5bd8 Revert changes to jaxb context 2020-05-07 11:04:17 +02:00
René Pfeuffer
bdd4c244d5 Cleanup and fix hash code and equals 2020-05-07 11:03:57 +02:00
Eduard Heimbuch
6ec7cbd1ca add xml encryption adapter to encode passwords or apitoken on marshalling 2020-05-07 09:38:00 +02:00
René Pfeuffer
b1485896e0 Move plugin development to top level navigation 2020-05-07 08:47:11 +02:00
René Pfeuffer
91b578ae31 Merge pull request #1142 from scm-manager/snyk-upgrade-26b9319a5aa7aef05fc8d6a6c9c2e659
[Snyk] Upgrade org.hibernate.validator:hibernate-validator from 6.1.2.Final to 6.1.3.Final
2020-05-07 07:27:27 +02:00
snyk-bot
f017f2bf3b 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/e67572ee-5940-4f2b-93b0-dced62d7ed85?utm_source=github&utm_medium=upgrade-pr
2020-05-07 03:35:43 +02:00
René Pfeuffer
9226654c5d Structure navigation 2020-05-06 21:36:20 +02:00
René Pfeuffer
503e8cbabe Clean root index 2020-05-06 21:36:03 +02:00
Konstantin Schaper
8b2d9d1d95 Establish preliminary structure for documentation 2020-05-06 19:56:34 +02:00
René Pfeuffer
daeb8b7cbb Remove v2 sub folder and add Front Matter 2020-05-06 15:41:14 +02:00
Eduard Heimbuch
a9b9c77333 extend equalsAndHashcode annotation on changeset with callSuper attribute 2020-05-06 13:17:21 +02:00
René Pfeuffer
485b91575d Move to new dir and remove 1.x doc 2020-05-06 12:22:42 +02:00
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
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
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