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

Added support for Firefox Cookie SQLite schema version 10 #4664 #4665

Merged
merged 10 commits into from May 26, 2023

Conversation

chb2mn
Copy link
Contributor

@chb2mn chb2mn commented May 24, 2023

One line description of pull request

Firefox cookie table schema has been upgraded to remove baseDomain. Removed baseDomain from the required keys

Description:

fixes #4664

Notes:

All contributions to Plaso undergo code review.
This makes sure that the code has appropriate test coverage and conforms to the
Plaso style guide.

One of the maintainers will examine your code, and may request changes. Check off the items below in
order, and then a maintainer will review your code.

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 May 24, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.01 🎉

Comparison is base (5b7841c) 85.81% compared to head (26047ae) 85.82%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4665      +/-   ##
==========================================
+ Coverage   85.81%   85.82%   +0.01%     
==========================================
  Files         412      412              
  Lines       35476    35483       +7     
==========================================
+ Hits        30442    30453      +11     
+ Misses       5034     5030       -4     
Impacted Files Coverage Δ
plaso/parsers/sqlite_plugins/firefox_cookies.py 97.29% <100.00%> (+1.77%) ⬆️

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@@ -175,5 +153,61 @@ def ParseCookieRow(self, parser_mediator, query, row, **unused_kwargs):

self._ParseCookie(parser_mediator, cookie_name, cookie_data, url)

class FirefoxCookie2Plugin(BaseFirefoxCookiePlugin):
'''
Copy link
Member

Choose a reason for hiding this comment

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

please use """ to keep the codebase consistent

'path, appId, inBrowserElement))')}]

sqlite.SQLiteParser.RegisterPlugins([FirefoxCookie2Plugin, FirefoxCookie10Plugin])

Copy link
Member

Choose a reason for hiding this comment

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

remove trailing empty lines

@joachimmetz
Copy link
Member

Let's also add a unit test for FirefoxCookie10Plugin

@joachimmetz
Copy link
Member

docs linter is flagging a concern, I'll remove the anchor

(sources/api/plaso.parsers.sqlite_plugins: line    1) broken    https://searchfox.org/mozilla-central/source/netwerk/cookie/CookiePersistentStorage.cpp#1298 - Anchor '1298' not found

@joachimmetz joachimmetz changed the title removing baseDomain from firefox cookie schema Added support for Firefox Cookie SQLite schema version 10 #4664 May 26, 2023
@joachimmetz
Copy link
Member

Make some style and linting related changes and tests are passing now.

@joachimmetz joachimmetz merged commit fa39b9a into log2timeline:main May 26, 2023
10 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.

Firefox Cookie DB updated to exclude baseDomain
2 participants