FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix for double-JSON-encoding of table generation contexts (#77) by nickovs · Pull Request #78 · osquery/osquery-python · GitHub

Fix for double-JSON-encoding of table generation contexts (#77) - #78

Merged
theopolis merged 1 commit into
osquery:masterfrom
nickovs:master
Feb 6, 2021
Merged

Fix for double-JSON-encoding of table generation contexts (#77)#78
theopolis merged 1 commit into
osquery:masterfrom
nickovs:master

Conversation

nickovs commented Feb 5, 2021

Copy link
Copy Markdown
Contributor

As described in issue #77, the context information passed to a table plugin's generate() method is (a) inconveniently double-encoded and (b) inconsistent in its data type (since it can either be a double-encoded string or an empty dictionary). This PR fixes this to always pass a dictionary, which will contain the unpacked context information if it was provided in the call.

linux-foundation-easycla Bot commented Feb 5, 2021
edited
Loading

Copy link
Copy Markdown



The committers are authorized under a signed CLA.

theopolis left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Looks good, thanks for the analysis!

theopolis merged commit 586c79f into osquery:master Feb 6, 2021

nickovs commented Feb 6, 2021

Copy link
Copy Markdown
Contributor Author

@theopolis Thank you for the swift response. Any chance that someone can push an updated version to PyPI so that the fix is more widely available?

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL