mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
Revert "1060: ingest stuck when adding another data source during ingest"
This reverts commit bfd8ed8325df1a8da85ccd4e91c18d0c759cb18d.
This commit is contained in:
parent
bfd8ed8325
commit
9f8e1d8d95
@ -22,7 +22,6 @@ import com.google.common.util.concurrent.ListeningExecutorService;
|
||||
import com.google.common.util.concurrent.MoreExecutors;
|
||||
import com.google.common.util.concurrent.ThreadFactoryBuilder;
|
||||
import java.beans.PropertyChangeListener;
|
||||
import java.sql.SQLException;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
@ -628,7 +627,7 @@ public final class ImageGalleryController {
|
||||
*/
|
||||
abstract void cleanup(boolean success);
|
||||
|
||||
abstract void processFile(final AbstractFile f, DrawableDB.DrawableTransaction tr, CaseDbTransaction caseDBTransaction) throws TskCoreException, SQLException;
|
||||
abstract void processFile(final AbstractFile f, DrawableDB.DrawableTransaction tr, CaseDbTransaction caseDBTransaction) throws TskCoreException;
|
||||
|
||||
/**
|
||||
* Gets a list of files to process.
|
||||
@ -691,7 +690,7 @@ public final class ImageGalleryController {
|
||||
// pass true so that groupmanager is notified of the changes
|
||||
taskDB.commitTransaction(drawableDbTransaction, true);
|
||||
|
||||
} catch (Exception ex) { // Exception Firewall - catch ALL exceptions, including Runtime exceptions, to make sure we rollback transaction and release locks in case of any error.
|
||||
} catch (TskCoreException ex) {
|
||||
if (null != drawableDbTransaction) {
|
||||
taskDB.rollbackTransaction(drawableDbTransaction);
|
||||
}
|
||||
@ -752,7 +751,7 @@ public final class ImageGalleryController {
|
||||
}
|
||||
|
||||
@Override
|
||||
void processFile(AbstractFile f, DrawableDB.DrawableTransaction tr, CaseDbTransaction caseDbTransaction) throws TskCoreException, SQLException {
|
||||
void processFile(AbstractFile f, DrawableDB.DrawableTransaction tr, CaseDbTransaction caseDbTransaction) throws TskCoreException {
|
||||
final boolean known = f.getKnown() == TskData.FileKnown.KNOWN;
|
||||
|
||||
if (known) {
|
||||
@ -805,7 +804,7 @@ public final class ImageGalleryController {
|
||||
}
|
||||
|
||||
@Override
|
||||
void processFile(final AbstractFile f, DrawableDB.DrawableTransaction tr, CaseDbTransaction caseDBTransaction) throws TskCoreException, SQLException {
|
||||
void processFile(final AbstractFile f, DrawableDB.DrawableTransaction tr, CaseDbTransaction caseDBTransaction) {
|
||||
taskDB.insertFile(DrawableFile.create(f, false, false), tr, caseDBTransaction);
|
||||
}
|
||||
|
||||
|
@ -271,7 +271,7 @@ public final class DrawableDB {
|
||||
insertGroup(cat.getDisplayName(), DrawableAttribute.CATEGORY, caseDbTransaction);
|
||||
}
|
||||
caseDbTransaction.commit();
|
||||
} catch (Exception ex) { // Exception Firewall - catch ALL exceptions, including Runtime exceptions, to make sure we rollback transaction and release locks in case of any error.
|
||||
} catch (TskCoreException ex) {
|
||||
if (null != caseDbTransaction) {
|
||||
try {
|
||||
caseDbTransaction.rollback();
|
||||
@ -804,7 +804,7 @@ public final class DrawableDB {
|
||||
caseDbTransaction.commit();
|
||||
commitTransaction(trans, true);
|
||||
|
||||
} catch (Exception ex) { // Exception Firewall - catch ALL exceptions, including Runtime exceptions, to make sure we rollback transaction and release locks in case of any error.
|
||||
} catch (TskCoreException ex) {
|
||||
if (null != caseDbTransaction) {
|
||||
try {
|
||||
caseDbTransaction.rollback();
|
||||
@ -820,11 +820,11 @@ public final class DrawableDB {
|
||||
|
||||
}
|
||||
|
||||
public void insertFile(DrawableFile f, DrawableTransaction tr, CaseDbTransaction caseDbTransaction) throws TskCoreException, SQLException {
|
||||
public void insertFile(DrawableFile f, DrawableTransaction tr, CaseDbTransaction caseDbTransaction) {
|
||||
insertOrUpdateFile(f, tr, insertFileStmt, caseDbTransaction);
|
||||
}
|
||||
|
||||
public void updateFile(DrawableFile f, DrawableTransaction tr, CaseDbTransaction caseDbTransaction) throws TskCoreException, SQLException {
|
||||
public void updateFile(DrawableFile f, DrawableTransaction tr, CaseDbTransaction caseDbTransaction) {
|
||||
insertOrUpdateFile(f, tr, updateFileStmt, caseDbTransaction);
|
||||
}
|
||||
|
||||
@ -958,7 +958,7 @@ public final class DrawableDB {
|
||||
* @param tr a transaction to use, must not be null
|
||||
* @param stmt the statement that does the actual inserting
|
||||
*/
|
||||
private void insertOrUpdateFile(DrawableFile f, @Nonnull DrawableTransaction tr, @Nonnull PreparedStatement stmt, @Nonnull CaseDbTransaction caseDbTransaction) throws TskCoreException, SQLException {
|
||||
private void insertOrUpdateFile(DrawableFile f, @Nonnull DrawableTransaction tr, @Nonnull PreparedStatement stmt, @Nonnull CaseDbTransaction caseDbTransaction) {
|
||||
|
||||
if (tr.isClosed()) {
|
||||
throw new IllegalArgumentException("can't update database with closed transaction");
|
||||
@ -1058,7 +1058,6 @@ public final class DrawableDB {
|
||||
*/
|
||||
if (Case.isCaseOpen()) {
|
||||
logger.log(Level.SEVERE, "failed to insert/update file" + f.getContentPathSafe(), ex); //NON-NLS
|
||||
throw ex;
|
||||
}
|
||||
|
||||
} finally {
|
||||
@ -1381,7 +1380,7 @@ public final class DrawableDB {
|
||||
* @param groupBy Type of the grouping (CATEGORY, MAKE, etc.)
|
||||
* @param caseDbTransaction transaction to use for CaseDB insert/updates
|
||||
*/
|
||||
private void insertGroup(final String value, DrawableAttribute<?> groupBy, CaseDbTransaction caseDbTransaction) throws TskCoreException {
|
||||
private void insertGroup(final String value, DrawableAttribute<?> groupBy, CaseDbTransaction caseDbTransaction) {
|
||||
insertGroup(0, value, groupBy, caseDbTransaction);
|
||||
}
|
||||
|
||||
@ -1393,7 +1392,7 @@ public final class DrawableDB {
|
||||
* @param groupBy Type of the grouping (CATEGORY, MAKE, etc.)
|
||||
* @param caseDbTransaction transaction to use for CaseDB insert/updates
|
||||
*/
|
||||
private void insertGroup(long ds_obj_id, final String value, DrawableAttribute<?> groupBy, CaseDbTransaction caseDbTransaction) throws TskCoreException {
|
||||
private void insertGroup(long ds_obj_id, final String value, DrawableAttribute<?> groupBy, CaseDbTransaction caseDbTransaction) {
|
||||
// don't waste DB round trip if we recently added it
|
||||
String cacheKey = Long.toString(ds_obj_id) + "_" + value + "_" + groupBy.getDisplayName();
|
||||
if (groupCache.getIfPresent(cacheKey) != null)
|
||||
@ -1412,7 +1411,6 @@ public final class DrawableDB {
|
||||
// Don't need to report it if the case was closed
|
||||
if (Case.isCaseOpen()) {
|
||||
logger.log(Level.SEVERE, "Unable to insert group", ex); //NON-NLS
|
||||
throw ex;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
#Updated by build script
|
||||
#Mon, 03 Sep 2018 17:29:44 +0200
|
||||
#Fri, 05 Oct 2018 09:58:28 -0400
|
||||
LBL_splash_window_title=Starting Autopsy
|
||||
SPLASH_HEIGHT=314
|
||||
SPLASH_WIDTH=538
|
||||
@ -8,4 +8,4 @@ SplashRunningTextBounds=0,289,538,18
|
||||
SplashRunningTextColor=0x0
|
||||
SplashRunningTextFontSize=19
|
||||
|
||||
currentVersion=Autopsy 4.8.0
|
||||
currentVersion=Autopsy 4.9.0
|
||||
|
@ -1,4 +1,4 @@
|
||||
#Updated by build script
|
||||
#Mon, 03 Sep 2018 17:29:44 +0200
|
||||
CTL_MainWindow_Title=Autopsy 4.8.0
|
||||
CTL_MainWindow_Title_No_Project=Autopsy 4.8.0
|
||||
#Fri, 05 Oct 2018 09:58:28 -0400
|
||||
CTL_MainWindow_Title=Autopsy 4.9.0
|
||||
CTL_MainWindow_Title_No_Project=Autopsy 4.9.0
|
||||
|
Loading…
x
Reference in New Issue
Block a user