Sebastian Sdorra
33702e0e9d
added RestartStrategies to be able to swap the context recreation strategy
2019-06-19 11:53:58 +02:00
Sebastian Sdorra
91fd259f07
use ClassLoaderLeakPreventor to reduce ClassLoaderLeaks of plugins
2019-06-19 11:52:20 +02:00
René Pfeuffer
d3b65ac3bd
Check stored values instead of resulting xml files
2019-06-19 10:38:22 +02:00
René Pfeuffer
d43ad44da9
Enhance in-memory store factories for tests
2019-06-19 10:14:29 +02:00
René Pfeuffer
fae3de7b6c
Extract update step test util
2019-06-19 09:31:56 +02:00
Sebastian Sdorra
bc8c89cbf8
fix sonar issue squid:S1989: Exceptions should not be thrown from servlet methods
2019-06-13 12:03:02 +02:00
René Pfeuffer
02616916af
Merge with 2.0.0-m3
2019-06-13 11:24:32 +02:00
René Pfeuffer
67a78fd3b2
Fix typo
2019-06-13 10:38:15 +02:00
René Pfeuffer
ffa4625e36
Merge with 2.0.0-m3
2019-06-13 10:06:38 +02:00
Sebastian Sdorra
3c5b7ab535
display error on startup, if previous version is older than 1.60
2019-06-13 09:58:30 +02:00
René Pfeuffer
4991c2ad31
Merge with 2.0.0-m3
2019-06-13 06:34:52 +02:00
René Pfeuffer
0dda448ac8
Heed peer review
2019-06-13 06:24:35 +02:00
Sebastian Sdorra
5c7ae749c2
create new error module, which displays errors before migration
2019-06-12 18:26:58 +02:00
Sebastian Sdorra
4c91ef0100
make PluginLoader dependency of MustacheTemplateEngine optional
2019-06-12 17:04:32 +02:00
Sebastian Sdorra
614c61a00c
keep select migration strategy in case of an error
2019-06-12 11:36:15 +02:00
René Pfeuffer
046ccfb2a0
Merge with 2.0.0-m3
2019-06-11 15:02:02 +02:00
René Pfeuffer
a6caa03d86
Create migration module only if necessary
2019-06-11 14:34:44 +02:00
René Pfeuffer
72f3334afe
Merge with 2.0.0-m3
2019-06-11 13:55:43 +02:00
René Pfeuffer
802fb3e0cf
Use manually entered namespace and name
2019-06-11 13:10:31 +02:00
René Pfeuffer
8a6b57e06c
Add new migration strategies "delete" and "ignore"
2019-06-07 13:52:54 +02:00
René Pfeuffer
25bc48e349
Merge with 2.0.0-m3
2019-06-06 15:44:57 +02:00
René Pfeuffer
1065899e99
Add missing test
2019-06-06 12:52:10 +02:00
René Pfeuffer
77a1ad50fe
Refresh repository dao after repository.xml file was renamed
...
Without this, the XmlRepositoryDAO will be initialized at a time
where there is no repository-paths.xml file. Therefore the dao cannot
initialize with the existing repositories whose paths are kept in
repositories.xml at that time.
In this commit we trigger a refresh after the file was renamed, so
that the PathBasedRepositoryLocationResolver can read the moved
repository-paths.xml file and all repositories will be found.
2019-06-06 10:45:56 +02:00
René Pfeuffer
b26b702930
Merge with 2.0.0-m3
2019-06-06 09:49:38 +02:00
René Pfeuffer
575a03521f
Fix group v1 migration with empty group database file
2019-06-06 08:41:38 +02:00
Sebastian Sdorra
3c373a4c4d
replace QuartzScheduler with a more lightweight scheduler
...
The new scheduler is based on the cron-utils package and uses the same cron syntax as quartz.
CronScheduler was mainly introduced, because of a ClassLoader leak with the old Quartz implementation.
The leak comes from shiros use of InheriatableThreadLocal in combination with the WorkerThreads of Quartz.
CronScheduler uses a ThreadFactory which clears the Shiro context before a new Thread is created (see CronThreadFactory).
2019-06-05 16:15:06 +02:00
René Pfeuffer
b274952fa9
Create explicit method to create new repository locations
2019-06-05 14:27:35 +02:00
René Pfeuffer
e52518a12b
Cleanup
...
- Mark PathBasedRepositoryLocationResolver as singleton so that other
users will get the same instance and will not overwrite the paths
set by migration.
- Set path kept by InlineMigrationStrategy in location resolver to
store the path.
- Add logging
- Add type of repository to migration web page
2019-06-05 08:21:37 +02:00
René Pfeuffer
da4f3e6691
Resolve config files via resolve method of context provider
2019-06-03 16:02:04 +02:00
René Pfeuffer
7c50ad07ec
Extract common code
2019-06-03 15:24:19 +02:00
René Pfeuffer
0be816dd28
Extract properties from users and groups in v1 into own file
2019-06-03 14:22:57 +02:00
Sebastian Sdorra
3b3ddd8fb0
Merged in bugfix/repo_permissions_without_admin (pull request #258 )
...
Fix bug for repository owners without global role permission
2019-06-03 13:56:11 +00:00
Sebastian Sdorra
3664d69713
Merged in feature/migrate_user_v1 (pull request #254 )
...
migrate user v1
2019-06-03 13:25:19 +00:00
René Pfeuffer
a970404717
Move migration of admin flags to own update step
2019-06-03 11:38:42 +02:00
René Pfeuffer
218937be19
Add group migration
2019-06-03 10:39:25 +02:00
René Pfeuffer
d9b9a07591
Read admin users from configuration
2019-05-31 16:32:19 +02:00
René Pfeuffer
a91177a2d7
Migrate creationDate and lastModified
2019-05-31 15:57:30 +02:00
René Pfeuffer
55069cf2dd
Adapt unit test
2019-05-31 10:47:50 +02:00
René Pfeuffer
8e41b26918
Merge with feature/migration
2019-05-28 08:09:11 +02:00
René Pfeuffer
b12bc0cf1a
Remove old upgrade functionality
2019-05-28 08:07:56 +02:00
René Pfeuffer
d88d1ff78d
Backup old repositories file
2019-05-24 14:25:35 +02:00
René Pfeuffer
76c59a6dee
Extract properties from v1 repositories
2019-05-24 13:55:37 +02:00
René Pfeuffer
d88b300ac8
Add update step to rename repositories.xml -> repository-paths.xml
2019-05-24 11:55:32 +02:00
René Pfeuffer
0a0fd17448
Verify that migration strategies are set before migration starts
2019-05-23 17:37:58 +02:00
Eduard Heimbuch
9a18facbf5
Tests for user migration V1 to V2
2019-05-23 17:19:34 +02:00
René Pfeuffer
035abef465
Assert that the existing repositories.xml file contains v1 data
2019-05-23 15:25:25 +02:00
René Pfeuffer
31e56a6672
Implement inline strategy
2019-05-23 15:06:40 +02:00
René Pfeuffer
3e46aefb4b
Implement move strategy
2019-05-22 17:18:04 +02:00
René Pfeuffer
ac851d4e8a
Implement copy strategy
2019-05-22 16:05:35 +02:00
René Pfeuffer
97ad3897ed
Correct instance mocks
2019-05-22 15:31:35 +02:00