mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-02-06 14:49:11 +01:00
Fix NPE on synchronous repository export (#2040)
When a repository was exported synchronously with metadata, the server ran into a NullPointerException. The was because the resource tried to write an export result to a stored export item, that does not exist for synchronous exports. This simply removes this call.
This commit is contained in:
@@ -457,8 +457,6 @@ public class RepositoryExportResource {
|
||||
return Response.status(204).build();
|
||||
} else {
|
||||
StreamingOutput output = os -> fullScmRepositoryExporter.export(repository, os, password);
|
||||
exportService.setExportFinished(repository);
|
||||
|
||||
return Response
|
||||
.ok(output, "application/x-gzip")
|
||||
.header("content-disposition", createContentDispositionHeaderValue(repository, fileExtension))
|
||||
|
||||
Reference in New Issue
Block a user