| Chunk |
|---|
| Conflicting content |
|---|
try
{
tempFileStream = new FileInputStream(tempFile);
<<<<<<< HEAD
LobHelper lobHelper = documentDAO.getLobHelper();
Blob fileContents = lobHelper.createBlob(tempFileStream, (int) tempFile.length());
rawDocument.setContent(fileContents);
documentDAO.addRawDocument(document, rawDocument);
documentDAO.flush();
=======
try
{
FileService.virusScan(tempFile);
Blob fileContents = Hibernate.createBlob(tempFileStream, (int) tempFile.length());
rawDocument.setContent(fileContents);
documentDAO.addRawDocument(document, rawDocument);
documentDAO.flush();
}
catch (VirusDetectedException e)
{
log.warn("File failed virus scan: {}", e.getMessage());
FacesMessages.instance().add(Severity.ERROR, "uploaded file did not pass virus scan");
}
>>>>>>> 5f96797e6b1986ea44ecde8f1f56d9296450bfce
}
catch (FileNotFoundException e)
{ |
| Solution content |
|---|
try
{
tempFileStream = new FileInputStream(tempFile);
try
{
FileService.virusScan(tempFile);
Blob fileContents = documentDAO.getLobHelper().createBlob(tempFileStream, (int) tempFile.length());
rawDocument.setContent(fileContents);
documentDAO.addRawDocument(document, rawDocument);
documentDAO.flush();
}
catch (VirusDetectedException e)
{
log.warn("File failed virus scan: {}", e.getMessage());
FacesMessages.instance().add(Severity.ERROR, "uploaded file did not pass virus scan");
}
}
catch (FileNotFoundException e)
{ |
| File |
|---|
| ProjectIterationFilesAction.java |
| Developer's decision |
|---|
| Manual |
| Kind of conflict |
|---|
| Method invocation |
| Try statement |
| Variable |
| Chunk |
|---|
| Conflicting content |
|---|
return rawDoc;
}
<<<<<<< HEAD
public LobHelper getLobHelper()
{
return getSession().getLobHelper();
=======
public List |
| Solution content |
|---|
return rawDoc; } public List |
| File |
|---|
| DocumentDAO.java |
| Developer's decision |
|---|
| Concatenation |
| Kind of conflict |
|---|
| Method invocation |
| Method signature |
| Return statement |
| Variable |