mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-03-05 11:50:58 +01:00
Update commons-compress to 1.27.1
This commit is contained in:
@@ -96,7 +96,7 @@ ext {
|
||||
// utils
|
||||
guava: 'com.google.guava:guava:33.3.1-jre',
|
||||
commonsLang: 'commons-lang:commons-lang:2.6',
|
||||
commonsCompress: 'org.apache.commons:commons-compress:1.23.0',
|
||||
commonsCompress: 'org.apache.commons:commons-compress:1.27.1',
|
||||
commonsIo: 'commons-io:commons-io:2.13.0',
|
||||
commonsLang3: 'org.apache.commons:commons-lang3:3.13.0',
|
||||
|
||||
|
||||
@@ -130,6 +130,9 @@ public class PathBasedRepositoryLocationResolver extends BasicRepositoryLocation
|
||||
}
|
||||
|
||||
private void modifyLocation(String repositoryId, Path newPath, Modifier modifier) throws RepositoryStorageException {
|
||||
if (newPath.toFile().exists() && !newPath.toFile().canWrite()) {
|
||||
throw new RepositoryStorageException("cannot create repository at new path " + newPath + "; path is not writable");
|
||||
}
|
||||
maintenanceCallbacks.fire().downForMaintenance(new DownForMaintenanceContext(repositoryId));
|
||||
Path oldPath = pathById.get(repositoryId);
|
||||
pathById.remove(repositoryId);
|
||||
|
||||
@@ -233,8 +233,6 @@ class PathBasedRepositoryLocationResolverTest {
|
||||
assertThat(newPath).exists();
|
||||
assertThat(oldPath).exists();
|
||||
assertThat(resolverWithExistingData.create(Path.class).getLocation("existingId_1")).isEqualTo(oldPath);
|
||||
verify(maintenanceCallback).downForMaintenance(new DownForMaintenanceContext("existingId_1"));
|
||||
verify(maintenanceCallback).upAfterMaintenance(new UpAfterMaintenanceContext("existingId_1", oldPath));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user