Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firefox download update #4749

Merged
merged 11 commits into from
Dec 16, 2023
Merged

Conversation

chb2mn
Copy link
Contributor

@chb2mn chb2mn commented Oct 6, 2023

One line description of pull request

Firefox Download plugin was out of date, so I updated

Description:

Firefox schema has changed significantly since this parser(plugin) was written. This handles #2539

Notes:

Checklist:

  • Automated checks (GitHub Actions, AppVeyor) pass
  • No new new dependencies are required or l2tdevtools has been updated
  • Reviewer assigned

@codecov
Copy link

codecov bot commented Oct 6, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (5a1e324) 86.15% compared to head (eef5850) 86.16%.

Files Patch % Lines
plaso/parsers/sqlite_plugins/firefox_downloads.py 97.95% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4749      +/-   ##
==========================================
+ Coverage   86.15%   86.16%   +0.01%     
==========================================
  Files         416      416              
  Lines       37526    37574      +48     
==========================================
+ Hits        32329    32376      +47     
- Misses       5197     5198       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -2,7 +2,7 @@
"""SQLite parser plugin for Mozilla Firefox downloads database files."""

from dfdatetime import posix_time as dfdatetime_posix_time

import json
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style nit: given this module is part of Python the import should come before 3rd party imports

@@ -133,3 +277,4 @@ def ParseDownloadsRow(


sqlite.SQLiteParser.RegisterPlugin(FirefoxDownloadsPlugin)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use RegisterPlugins instead

self.url = None


class Firefox118DownloadsPlugin(interface.SQLitePlugin):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add docstring

@joachimmetz joachimmetz self-assigned this Dec 11, 2023
@joachimmetz joachimmetz added this to the 2023 December release milestone Dec 11, 2023
@joachimmetz joachimmetz force-pushed the firefox_download_update branch from 8e66de9 to 0a0ab98 Compare December 16, 2023 05:44
Copy link
Member

@joachimmetz joachimmetz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@joachimmetz joachimmetz merged commit 4e24cb8 into log2timeline:main Dec 16, 2023
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants