Skip to content
This repository was archived by the owner on Jun 27, 2025. It is now read-only.

Comments

Fix Publish Ability#36

Open
TheDr1ver wants to merge 1 commit intogcrahay:masterfrom
TheDr1ver:patch-3
Open

Fix Publish Ability#36
TheDr1ver wants to merge 1 commit intogcrahay:masterfrom
TheDr1ver:patch-3

Conversation

@TheDr1ver
Copy link
Contributor

If creating a new event without any attributes attached to it, the API blocks the creation of the event and it will never make its way into MISP. Forcing published=False at this stage fixes the issue. Once the event has been populated the final publishing will be handled by ln 435.

If creating a new event without any attributes attached to it, the API blocks the creation of the event and it will never make its way into MISP. Forcing published=False at this stage fixes the issue.  Once the event has been populated the final publishing will be handled by ln 435.
@chrisinmtown
Copy link

Does this PR include everything in PR #33?

@TheDr1ver
Copy link
Contributor Author

All #33 does is set the default publish value to False, but the user can easily change that when they call create_event(). #36 makes sure publish is explicitly set to False throughout the creation of the event until the event has been populated with attributes, then takes the publish value into account at the very end.

That all being said, I think if you use the code from PR #35 this largely becomes a moot point.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants