Commit Graph

47 Commits

Author SHA1 Message Date
Sebastian Sdorra
a4cb2f7caa fix migration with unknown permissions 2019-07-18 12:17:20 +02:00
Eduard Heimbuch
4afed7cb74 migrate securityV1 permissions 2019-07-16 16:26:34 +02:00
Sebastian Sdorra
2cdcf78c91 Merged in feature/redirect_migrated_repositories (pull request #277)
Feature redirect migrated repositories
2019-07-08 09:38:17 +00:00
Rene Pfeuffer
170e49ab15 Log class name of update step 2019-07-04 14:17:45 +02:00
René Pfeuffer
f631dc1724 Redirect protocol requests for migrated repositories
- Make old repository name and id available to plugins (MigrationDAO)
- Build Map with paths of migrated repositories to new location
- Implement redirect (RepositoryLegacyProtocolRedirectFilter)
2019-07-02 10:46:26 +02:00
René Pfeuffer
c881a3eca7 Store original repository name in migration plan 2019-07-01 15:30:03 +02:00
René Pfeuffer
cedf5019b0 Remove redundant 'class' 2019-07-01 10:57:11 +02:00
Sebastian Sdorra
bc4d6bfa74 merge with 2.0.0-m3 2019-06-26 09:27:52 +02:00
Sebastian Sdorra
80febf9424 added modules, classloading and view packages to sonia.scm.lifecycle 2019-06-25 09:49:52 +02:00
Sebastian Sdorra
c7365b74da move StaticResourceServlet to package sonia.scm 2019-06-25 08:41:02 +02:00
Sebastian Sdorra
99f1c8c55e rename package sonia.scm.boot to sonia.scm.lifecycle 2019-06-25 08:36:57 +02:00
Sebastian Sdorra
9662b8a00b simplify scm-manager bootstrap
We have simplified the scm-manager bootstrap process, by replacing the
ServletContextListener call hierarchy with much simpler ModuleProviders.
We have also removed the parent injector. Now we create always a new
injector. If something goes wrong in the process of injector creation,
we will show a nicely styled error page instead of stacktrace on a white
page.
2019-06-24 16:59:28 +02:00
René Pfeuffer
553997e7f0 Add documentation 2019-06-21 15:32:25 +02:00
René Pfeuffer
9581bf946b Enable plugins to create config stores for repository config
Therefore we have to
- add an API to create stores for repository ids, not only for
  repositories,
- make v1 properties available in scm-core
- make sure that properties are extracted from repositories before the
  update step of a plugin runs (this is done by sorting the update steps
  in a way so that "core" update steps are executed before plugin update
  steps with the same version)
2019-06-20 16:12:16 +02:00
René Pfeuffer
d3b65ac3bd Check stored values instead of resulting xml files 2019-06-19 10:38:22 +02:00
René Pfeuffer
a14a2060b6 Fix context 2019-06-13 06:41:46 +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
249ee68986 use Arrays.stream instead of Arrays.asList(..).stream() 2019-06-12 14:19:38 +02:00
Sebastian Sdorra
614c61a00c keep select migration strategy in case of an error 2019-06-12 11:36:15 +02:00
Sebastian Sdorra
dd61ec8e0a added favicon to migration wizard pages 2019-06-12 11:00:14 +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
7af5608aeb Change target version to 2.0.0 2019-06-11 14:04:47 +02:00
René Pfeuffer
72f3334afe Merge with 2.0.0-m3 2019-06-11 13:55:43 +02:00
René Pfeuffer
a456dd5e42 Check for null values 2019-06-11 13:39:14 +02:00
René Pfeuffer
802fb3e0cf Use manually entered namespace and name 2019-06-11 13:10:31 +02:00
René Pfeuffer
fdb8143b76 Validate new namespace and name on migration 2019-06-11 10:27:21 +02:00
René Pfeuffer
df9a3c12dd First step to make name and namespace editable in migration 2019-06-07 14:16:23 +02:00
René Pfeuffer
70de4d7292 Organize imports 2019-06-07 13:59:50 +02:00
René Pfeuffer
e5809a6350 Sort repositories by type and name 2019-06-07 13:59:31 +02:00
René Pfeuffer
8a6b57e06c Add new migration strategies "delete" and "ignore" 2019-06-07 13:52:54 +02:00
René Pfeuffer
748043f537 Describe different migration strategies 2019-06-06 12:52:23 +02:00
René Pfeuffer
ec538039f9 Cleanup 2019-06-06 12:47:32 +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
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
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
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
ed7c2a01e7 Log steps for updates 2019-05-15 13:29:50 +02:00
René Pfeuffer
93dbaeae7c Run update steps only if they have not been run before 2019-05-14 15:52:05 +02:00