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
Florian Scholdei
0918d18d5e
fix autocompletion
2019-06-05 18:36:14 +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
Sebastian Sdorra
2b64a49e11
recreate the EventBus on restart to avoid classloader leaks
2019-06-05 16:10:15 +02:00
Sebastian Sdorra
73dc0d0544
clear ResteasyProviderFactory and RuntimeDelegate during restart
...
This change is required, because some cachings of resteasy are not cleared by removing them from ServletContext.
Some classes use static or ThreadLocals, which are causing a ClassLoader leak.
However this change will clear those caches.
2019-06-05 16:09:01 +02:00
Sebastian Sdorra
1d7f982951
remove EventBus registration, because there is no subscribe
2019-06-05 16:05:01 +02:00
Sebastian Sdorra
5ef5c895b6
update legman to version 1.5.0
...
The version 1.5.0 fixes a classloader leak, because all EventBus instances are sharing the same cache in versions before 1.5.0.
2019-06-05 16:03:51 +02:00
René Pfeuffer
67f731c432
Heed sonar hints
2019-06-05 15:39:36 +02:00
René Pfeuffer
b274952fa9
Create explicit method to create new repository locations
2019-06-05 14:27:35 +02:00
René Pfeuffer
c7875e7f78
Style pages
2019-06-05 11:52:36 +02:00
René Pfeuffer
a5c65b4e2c
Store absolute path for directly set repository locations
2019-06-05 10:45:41 +02:00
René Pfeuffer
9a1d80327e
Delete old repository data directories for inline
2019-06-05 10:24:52 +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
b253cd110d
Initial migration servlet
2019-06-04 16:37:53 +02:00
Florian Scholdei
b406ec3eb6
fix redirect after delete Repo, Group or User
2019-06-04 14:48:59 +02:00
Sebastian Sdorra
7454442b37
Merged in feature/extract_properties_v1 (pull request #260 )
...
Feature extract properties v1
2019-06-04 07:23:54 +00:00
Sebastian Sdorra
f598c55c18
Close branch feature/extract_properties_v1
2019-06-04 07:23:54 +00:00
René Pfeuffer
da4f3e6691
Resolve config files via resolve method of context provider
2019-06-03 16:02:04 +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
743feb27a8
Close branch bugfix/repo_permissions_without_admin
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
Sebastian Sdorra
055cee2c4d
Close branch feature/migrate_user_v1
2019-06-03 13:25:19 +00:00
René Pfeuffer
7c50ad07ec
Extract common code
2019-06-03 15:24:19 +02:00
Sebastian Sdorra
6bde9f5454
Merged in feature/migrate_repository_v1 (pull request #257 )
...
Feature/migrate repository v1
2019-06-03 12:49:03 +00:00
Sebastian Sdorra
179c21eb84
Close branch feature/migrate_repository_v1
2019-06-03 12:49:03 +00:00
René Pfeuffer
0be816dd28
Extract properties from users and groups in v1 into own file
2019-06-03 14:22:57 +02:00
René Pfeuffer
6244713970
Move constant to interface
2019-06-03 13:47:05 +02:00
René Pfeuffer
a970404717
Move migration of admin flags to own update step
2019-06-03 11:38:42 +02:00
Sebastian Sdorra
2c43256f7b
Merged in feature/migration (pull request #259 )
...
Feature migration - remove old update package
2019-06-03 09:20:37 +00:00
Sebastian Sdorra
fb0535acca
Close branch feature/migration
2019-06-03 09:20:37 +00:00
René Pfeuffer
218937be19
Add group migration
2019-06-03 10:39:25 +02:00
René Pfeuffer
cd80ff77eb
Remove password hash from log output
2019-06-03 09:58:56 +02:00
René Pfeuffer
f6bffb3903
Fix logger
2019-05-31 16:38:16 +02:00
René Pfeuffer
0372c63e53
Set version number
2019-05-31 16:37:26 +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
Eduard Heimbuch
7713fca252
Merged in feature/reviewPluginCSS (pull request #253 )
...
fix css for new comment structure in review plugin
2019-05-31 08:55:20 +00:00
Eduard Heimbuch
3445a933c8
Close branch feature/reviewPluginCSS
2019-05-31 08:55:20 +00:00
René Pfeuffer
55069cf2dd
Adapt unit test
2019-05-31 10:47:50 +02:00
René Pfeuffer
84ae5646a4
Fix bug for repository owners without global role permission
...
Repository owners got an frontend error when they hat no permission to
read the global repository roles. We therefore remove the dedicated
permission to read repository.
Additionally we fix the 'write' permission to match the entry in the
'permissions.xml' file.
2019-05-31 10:20:44 +02:00
Eduard Heimbuch
64df2c4ecc
Merged in bugfix/permission_table (pull request #255 )
...
bugfix/permission_table
2019-05-29 11:35:42 +00:00
Eduard Heimbuch
f6c589a0f4
Close branch bugfix/permission_table
2019-05-29 11:35:42 +00:00
Eduard Heimbuch
828c4887b4
fix border-bottom
2019-05-29 12:51:05 +02:00
Eduard Heimbuch
5749561981
fix border-top
2019-05-29 11:48:53 +02:00
Eduard Heimbuch
a60c8ff6ed
fix Css
2019-05-29 10:45:29 +02:00
Eduard Heimbuch
5fd48f0753
Merged in bugfix/diff_header_btns (pull request #256 )
...
bugfix/diff_header_btns
2019-05-28 07:47:32 +00:00
Eduard Heimbuch
5924b63abb
Close branch bugfix/diff_header_btns
2019-05-28 07:47:32 +00:00
René Pfeuffer
e8c37f3a50
Add doc
2019-05-28 08:12:31 +02:00