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

Question: what happens with malformed events? #199

Closed
MrAnno opened this issue Nov 24, 2024 · 2 comments
Closed

Question: what happens with malformed events? #199

MrAnno opened this issue Nov 24, 2024 · 2 comments

Comments

@MrAnno
Copy link
Contributor

MrAnno commented Nov 24, 2024

During the discussion about failure metrics in #189, an old memory came to my mind:
Older Windows servers are capable of sending events containing invalid UTF-16 sequences via WEF. This happens because garbage data can be accidentally inserted into the Application container through old WinAPI calls. I have seen production servers occasionally doing this.

My question is: what happens to such a batch in OpenWEC?

(When I had to deal with something similar, I was forced to implement a permissive XML parser and replace/remove the invalid payload; otherwise, the entire batch would have been lost.)

@vruello
Copy link
Contributor

vruello commented Nov 25, 2024

OpenWEC handles two cases that were observed in the wild:

OpenWEC cannot fail to process a batch of events due to formatting issues. It will always do its best to do it well, but if it can't, some events may be dropped. I believe that it is always better to lose one malformed event rather than to block the client event stream.

@MrAnno
Copy link
Contributor Author

MrAnno commented Nov 25, 2024

Perfect. Thank you. 👍🏻

@MrAnno MrAnno closed this as completed Nov 25, 2024
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