APPS-986: [AGS] Export of records with size> 4 MB fails (#511)

- Changed deleteTempFileOnClose to false as the temp file deletion is handled in BufferedResponse#writeResponse
This commit is contained in:
ramunteanu
2021-06-29 18:52:20 +03:00
committed by GitHub
parent f647ca2f22
commit d842399190

View File

@@ -109,7 +109,8 @@ public class RepositoryContainer extends AbstractRuntimeContainer
{ {
File tempDirectory = TempFileProvider.getTempDir(tempDirectoryName); File tempDirectory = TempFileProvider.getTempDir(tempDirectoryName);
this.streamFactory = new TempOutputStreamFactory(tempDirectory, memoryThreshold, maxContentSize, encryptTempFiles, false); this.streamFactory = new TempOutputStreamFactory(tempDirectory, memoryThreshold, maxContentSize, encryptTempFiles, false);
this.responseStreamFactory = new TempOutputStreamFactory(tempDirectory, memoryThreshold, maxContentSize, encryptTempFiles, true); this.responseStreamFactory = new TempOutputStreamFactory(tempDirectory, memoryThreshold, maxContentSize,
encryptTempFiles, false);
} }
public void setEncryptTempFiles(Boolean encryptTempFiles) public void setEncryptTempFiles(Boolean encryptTempFiles)