diff --git a/InternalPythonModules/GPX_Module/GPX_Parser_Module.py b/InternalPythonModules/GPX_Module/GPX_Parser_Module.py index 8f8412ae3d..49e26483d0 100644 --- a/InternalPythonModules/GPX_Module/GPX_Parser_Module.py +++ b/InternalPythonModules/GPX_Module/GPX_Parser_Module.py @@ -211,7 +211,7 @@ class GPXParserFileIngestModule(FileIngestModule): attributes.add(BlackboardAttribute( BlackboardAttribute.ATTRIBUTE_TYPE.TSK_PROG_NAME.getTypeID(), self.moduleName, "GPXParser")) - artifact = abstractFile.newDataArtifact(BlackboardArtifact.Type(BlackboardArtifact.ARTIFACT_TYPE.TSK_GPS_BOOKMARK), attributes) + art = file.newDataArtifact(BlackboardArtifact.Type(BlackboardArtifact.ARTIFACT_TYPE.TSK_GPS_BOOKMARK), attributes) self.blackboard.postArtifact(art, self.moduleName) diff --git a/InternalPythonModules/android/viber.py b/InternalPythonModules/android/viber.py index d1c1b50ab5..cd8fed0854 100644 --- a/InternalPythonModules/android/viber.py +++ b/InternalPythonModules/android/viber.py @@ -130,7 +130,7 @@ class ViberAnalyzer(general.AndroidComponentAnalyzer): current_case = Case.getCurrentCase().getSleuthkitCase() attributes = ArrayList() attributes.add(BlackboardAttribute(BlackboardAttribute.ATTRIBUTE_TYPE.TSK_NAME.getTypeID(), self._PARSER_NAME, contacts_parser.get_contact_name())) - artifact = abstractFile.newDataArtifact(BlackboardArtifact.Type(BlackboardArtifact.ARTIFACT_TYPE.TSK_CONTACT), attributes) + artifact = contacts_db.getDBFile().newDataArtifact(BlackboardArtifact.Type(BlackboardArtifact.ARTIFACT_TYPE.TSK_CONTACT), attributes) # Post the artifact to blackboard current_case.getBlackboard().postArtifact(artifact, self._PARSER_NAME) diff --git a/RecentActivity/src/org/sleuthkit/autopsy/recentactivity/ExtractRegistry.java b/RecentActivity/src/org/sleuthkit/autopsy/recentactivity/ExtractRegistry.java index 9522ffd9ef..0c0890a8a7 100644 --- a/RecentActivity/src/org/sleuthkit/autopsy/recentactivity/ExtractRegistry.java +++ b/RecentActivity/src/org/sleuthkit/autopsy/recentactivity/ExtractRegistry.java @@ -745,8 +745,8 @@ class ExtractRegistry extends Extract { for (Map.Entry userMap : userNameMap.entrySet()) { String sid = ""; try{ - sid = (String)userMap.getKey(); - String userName = (String)userMap.getValue(); + sid = userMap.getKey(); + String userName = userMap.getValue(); createOrUpdateOsAccount(regFile, sid, userName, null); } catch(TskCoreException | TskDataException | NotUserSIDException ex) { logger.log(Level.WARNING, String.format("Failed to update Domain for existing OsAccount: %s, sid: %s", regFile.getId(), sid), ex);