From 8bac7f3179bdf8acdbba2ea4e16aea17fe504af8 Mon Sep 17 00:00:00 2001 From: Greg DiCristofaro Date: Mon, 1 Jun 2020 08:05:15 -0400 Subject: [PATCH] fix for gpx parser and add bundle --- .../org/sleuthkit/autopsy/geolocation/Bundle.properties-MERGED | 2 ++ InternalPythonModules/GPX_Module/GPX_Parser_Module.py | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Core/src/org/sleuthkit/autopsy/geolocation/Bundle.properties-MERGED b/Core/src/org/sleuthkit/autopsy/geolocation/Bundle.properties-MERGED index f3dab8dd7e..d16fa37761 100755 --- a/Core/src/org/sleuthkit/autopsy/geolocation/Bundle.properties-MERGED +++ b/Core/src/org/sleuthkit/autopsy/geolocation/Bundle.properties-MERGED @@ -24,6 +24,8 @@ GeolocationTC_connection_failure_message_title=Connection Failure GeolocationTC_empty_waypoint_message=Unable to generate KML report due to a lack of waypoints.\nPlease make sure there are waypoints visible before generating the KML report GeolocationTC_KML_report_title=KML Report GeolocationTC_report_progress_title=KML Report Progress +GeolocationTopComponent.WaypointFetcher.onErrorDescription=There was an error gathering some GPS Track Data. Some results have been excluded. +GeolocationTopComponent.WaypointFetcher.onErrorTitle=Error gathering GPS Track Data GeoTopComponent_filer_data_invalid_msg=Unable to run waypoint filter.\nPlease select one or more data sources. GeoTopComponent_filer_data_invalid_Title=Filter Failure GeoTopComponent_filter_exception_msg=Exception occurred during waypoint filtering. diff --git a/InternalPythonModules/GPX_Module/GPX_Parser_Module.py b/InternalPythonModules/GPX_Module/GPX_Parser_Module.py index 4d005c74da..3ee603a243 100644 --- a/InternalPythonModules/GPX_Module/GPX_Parser_Module.py +++ b/InternalPythonModules/GPX_Module/GPX_Parser_Module.py @@ -183,7 +183,8 @@ class GPXParserFileIngestModule(FileIngestModule): point.latitude, point.longitude, elevation, None, 0, 0, 0, timeStamp)) try: - geoArtifactHelper.addTrack("Track", geoPointList, None) + if not geoPointList.isEmpty(): + geoArtifactHelper.addTrack("Track", geoPointList, None) except Blackboard.BlackboardException as e: self.log(Level.SEVERE, "Error posting GPS track artifact for " + file.getUniquePath() + " (objID = " + str(file.getId()) + "):" + e.getMessage())