develop #3

Merged
spyroukon merged 3 commits from develop into master 2023-01-23 17:36:04 +01:00
1 changed files with 6 additions and 0 deletions
Showing only changes of commit ab03a5164d - Show all commits

View File

@ -656,6 +656,12 @@ public class RepositoryServiceImpl implements RepositoryService {
String desiredCompatibilityLevel) throws Exception { String desiredCompatibilityLevel) throws Exception {
Authentication authentication = SecurityContextHolder.getContext().getAuthentication(); Authentication authentication = SecurityContextHolder.getContext().getAuthentication();
Repository repository = this.getRepositoryById(repoId); Repository repository = this.getRepositoryById(repoId);
if (repositoryInterface.getId() != null) {
RepositoryInterface existing = getRepositoryInterface(repoId).stream().filter(iFace -> iFace.getId().equals(repositoryInterface.getId())).findFirst().orElse(null);
if (existing != null && (existing.getBaseurl() == null || "".equals(existing.getBaseurl()))) {
this.updateBaseUrl(repoId, repositoryInterface.getId(), repositoryInterface.getBaseurl());
}
}
this.updateValidationSet(repoId, repositoryInterface.getId(), repositoryInterface.getAccessSet()); this.updateValidationSet(repoId, repositoryInterface.getId(), repositoryInterface.getAccessSet());