Configurable download URL generation (#296)
Configurable download URL generation. Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com>
This commit is contained in:
@@ -594,7 +594,9 @@ public class UploadLayout extends VerticalLayout {
|
||||
// delete file system zombies
|
||||
artifactUploadState.getFileSelected().forEach(customFile -> {
|
||||
final File file = new File(customFile.getFilePath());
|
||||
file.delete();
|
||||
if (!file.delete()) {
|
||||
LOG.warn("Failed to delete file {} in upload dialog", customFile.getFilePath());
|
||||
}
|
||||
});
|
||||
|
||||
artifactUploadState.getFileSelected().clear();
|
||||
|
||||
@@ -79,7 +79,6 @@ public class DsMetadataPopupLayout extends AbstractMetadataPopupLayout<Distribut
|
||||
|
||||
@Override
|
||||
protected void deleteMetadata(final DistributionSet entity, final String key, final String value) {
|
||||
final DistributionSetMetadata dsMetaData = entityFactory.generateDistributionSetMetadata(entity, key, value);
|
||||
distributionSetManagement.deleteDistributionSetMetadata(entity, key);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user