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

published=False returns published events #1249

Open
sbjzn opened this issue Jul 2, 2024 · 2 comments
Open

published=False returns published events #1249

sbjzn opened this issue Jul 2, 2024 · 2 comments

Comments

@sbjzn
Copy link

sbjzn commented Jul 2, 2024

PyMISP version: 2.4.194

The following code returns events that are published, even though published=False is specified.

misp = PyMISP(url=misp_url, key=misp_key, ssl=misp_ssl)
misp.global_pythonify = True

uuid = redacted-uuid
misp.search(
        controller="events",
        org=uuid,
        published=False,
        date_from="2024-01-01",
    )
@Rafiot
Copy link
Member

Rafiot commented Jul 2, 2024

Just making sure: you're getting both unpublished and published events, right?

This test is checking that, but there are no published events at all, so it's not gonna catch a bug where they're both returned: https://github.com/MISP/PyMISP/blob/main/tests/testlive_comprehensive.py#L864

@sbjzn
Copy link
Author

sbjzn commented Jul 2, 2024

Correct, I am getting both published and unpublished events returned.

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

No branches or pull requests

2 participants