diff --git a/Core/src/org/sleuthkit/autopsy/casemodule/AddImageErrorsDialog.java b/Core/src/org/sleuthkit/autopsy/casemodule/AddImageErrorsDialog.java index 81ec727202882af31af725f7cd31e27040c9fbf2..742cb1750c6edede875ba4d8120b3e2c664831ac 100644 --- a/Core/src/org/sleuthkit/autopsy/casemodule/AddImageErrorsDialog.java +++ b/Core/src/org/sleuthkit/autopsy/casemodule/AddImageErrorsDialog.java @@ -16,7 +16,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package org.sleuthkit.autopsy.casemodule; /** @@ -106,12 +105,9 @@ private void closeButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-F setVisible(false); }//GEN-LAST:event_closeButtonActionPerformed - - public void setErrors(String errors) { - errorsText.append(errors +"\n"); + public void appendErrors(String errors) { + errorsText.append(errors + "\n"); } - - // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JButton closeButton; private javax.swing.JButton copyButton; diff --git a/Core/src/org/sleuthkit/autopsy/casemodule/AddImageWizardAddingProgressPanel.java b/Core/src/org/sleuthkit/autopsy/casemodule/AddImageWizardAddingProgressPanel.java index e89bb0dfda32b2df8659f4882f95894656799a39..7b0faf13f84fc4ef308d4c575f790cc9cb508688 100644 --- a/Core/src/org/sleuthkit/autopsy/casemodule/AddImageWizardAddingProgressPanel.java +++ b/Core/src/org/sleuthkit/autopsy/casemodule/AddImageWizardAddingProgressPanel.java @@ -187,7 +187,7 @@ public void storeSettings(WizardDescriptor settings) { * @param errorString the error string to be displayed * @param critical true if this is a critical error */ - void setErrors(String errorString, boolean critical) { + void addErrors(String errorString, boolean critical) { getComponent().showErrors(errorString, critical); } diff --git a/Core/src/org/sleuthkit/autopsy/casemodule/AddImageWizardAddingProgressVisual.java b/Core/src/org/sleuthkit/autopsy/casemodule/AddImageWizardAddingProgressVisual.java index 47bda4f0d6f3fede2eb42c4fd8de67b0587e73ea..a95ad671f284efcc659cee8d4a86181d9add190e 100644 --- a/Core/src/org/sleuthkit/autopsy/casemodule/AddImageWizardAddingProgressVisual.java +++ b/Core/src/org/sleuthkit/autopsy/casemodule/AddImageWizardAddingProgressVisual.java @@ -31,7 +31,7 @@ public class AddImageWizardAddingProgressVisual extends javax.swing.JPanel { private static final String ADDING_DATA_SOURCE_COMPLETE = "Adding Data Source - Complete"; - private String errorLog; + private String errorLog = ""; private boolean hasCriticalErrors = false; /** @@ -75,15 +75,6 @@ private void customizeComponents() { } -// /** -// * reset some of the visual components. -// * -// * is this ever invoked? -// */ -// void resetInfoPanel() { -// viewLogButton.setVisible(false); -// progressLabel.setText(""); -// } public JProgressBar getProgressBar() { return this.progressBar; } @@ -120,16 +111,16 @@ public void setCurrentDirText(String dir) { */ public void showErrors(final String errors, boolean critical) { hasCriticalErrors |= critical; - progressBar.setValue(100); //always invoked when process completed + + //progressBar.setValue(100); //always invoked when process completed if (hasCriticalErrors) { statusLabel.setText("*Failed to add image (critical errors encountered). Click below to view the log."); } else { statusLabel.setText("*Data Source added (non-critical errors encountered). Click below to view the log."); } - errorLog = errors; + errorLog += errors + "\n"; viewLogButton.setVisible(true); - } /** @@ -272,7 +263,7 @@ public void actionPerformed(java.awt.event.ActionEvent evt) { private void viewLogButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_viewLogButtonActionPerformed //show error dialog AddImageErrorsDialog dialog = new AddImageErrorsDialog(null, true); - dialog.setErrors(errorLog); + dialog.appendErrors(errorLog); dialog.setLocationRelativeTo(null); dialog.setVisible(true); }//GEN-LAST:event_viewLogButtonActionPerformed diff --git a/Core/src/org/sleuthkit/autopsy/casemodule/AddImageWizardIngestConfigPanel.java b/Core/src/org/sleuthkit/autopsy/casemodule/AddImageWizardIngestConfigPanel.java index d3aaf0aaedcf25740cb1293e0d68c6eecfb4c15e..3f5b77e281ef2ac301a97bf17886c5ef4ebf172e 100644 --- a/Core/src/org/sleuthkit/autopsy/casemodule/AddImageWizardIngestConfigPanel.java +++ b/Core/src/org/sleuthkit/autopsy/casemodule/AddImageWizardIngestConfigPanel.java @@ -520,15 +520,6 @@ public void run() { // process is over, doesn't need to be dealt with if cancel happens cancelledWhileRunning.disable(); -// //enqueue what would be in done() to EDT thread -// EventQueue.invokeLater(new Runnable() { -// @Override -// public void run() { -// postProcessImage(); -// } -// }); - - /////////////////Done() is already executed in EDT per SwingWorker javadocs -jm } return 0; @@ -563,12 +554,11 @@ private void commitImage(WizardDescriptor settings) throws Exception { if (imageId != 0) { Image newImage = Case.getCurrentCase().addImage(contentPath, imageId, timezone); - newImage.getSsize(); + //while we have the image, verify the size of its contents String verificationErrors = newImage.verifyImageSize(); if (verificationErrors.equals("") == false) { //data error (non-critical) - // @@@ Aren't we potentially overwriting existing errors... - progressPanel.setErrors(verificationErrors, false); + progressPanel.addErrors(verificationErrors, false); } @@ -604,19 +594,16 @@ protected void done() { revert(); if (hasCritError) { //core error - progressPanel.setErrors(errorString, true); + progressPanel.addErrors(errorString, true); } return; } if (errorString != null) { //data error (non-critical) logger.log(Level.INFO, "Handling non-critical errors that occured in add image process"); - progressPanel.setErrors(errorString, false); + progressPanel.addErrors(errorString, false); } - errorString = null; - - try { // When everything happens without an error: diff --git a/branding/core/core.jar/org/netbeans/core/startup/Bundle.properties b/branding/core/core.jar/org/netbeans/core/startup/Bundle.properties index 58a8073cdcb0953ac72b7fa312c9df50a55b3c23..7f1ae45f9049c1910b8e2597412c0638b5e7ea05 100644 --- a/branding/core/core.jar/org/netbeans/core/startup/Bundle.properties +++ b/branding/core/core.jar/org/netbeans/core/startup/Bundle.properties @@ -1,5 +1,5 @@ #Updated by build script -#Fri, 20 Sep 2013 14:57:32 -0400 +#Wed, 25 Sep 2013 12:13:40 -0400 LBL_splash_window_title=Starting Autopsy SPLASH_HEIGHT=288 SPLASH_WIDTH=538 @@ -8,4 +8,4 @@ SplashRunningTextBounds=5,266,530,17 SplashRunningTextColor=0x0 SplashRunningTextFontSize=18 -currentVersion=Autopsy 20130920 +currentVersion=Autopsy 20130925 diff --git a/branding/modules/org-netbeans-core-windows.jar/org/netbeans/core/windows/view/ui/Bundle.properties b/branding/modules/org-netbeans-core-windows.jar/org/netbeans/core/windows/view/ui/Bundle.properties index 3b2e36df0a25dc443b20e9516fac943e8c74519c..60a0ac7dc09a5e5acbc6a58f97c8f65e250b8bf2 100644 --- a/branding/modules/org-netbeans-core-windows.jar/org/netbeans/core/windows/view/ui/Bundle.properties +++ b/branding/modules/org-netbeans-core-windows.jar/org/netbeans/core/windows/view/ui/Bundle.properties @@ -1,5 +1,5 @@ #Updated by build script -#Fri, 20 Sep 2013 14:57:32 -0400 +#Wed, 25 Sep 2013 12:13:40 -0400 -CTL_MainWindow_Title=Autopsy 20130920 -CTL_MainWindow_Title_No_Project=Autopsy 20130920 +CTL_MainWindow_Title=Autopsy 20130925 +CTL_MainWindow_Title_No_Project=Autopsy 20130925