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

IllegalStateException if entry contains "extra" field #7

Closed
nitram22 opened this issue Apr 7, 2020 · 2 comments · Fixed by #10 · May be fixed by #8
Closed

IllegalStateException if entry contains "extra" field #7

nitram22 opened this issue Apr 7, 2020 · 2 comments · Fixed by #10 · May be fixed by #8

Comments

@nitram22
Copy link
Contributor

nitram22 commented Apr 7, 2020

Hi guys,

while running the onMessage method I noticed that from time to time incoming messages throw an error like "java.lang.IllegalStateException: Expected a string but was BEGIN_ARRAY at line 1 column 7984 path $.data.leaf_cert.extensions." .

I did some debugging and found out that the error occurs when a CT-Log entry has the field under "leaf_cert" --> "extensions" --> "extra" that begins with an array. I've added a picture of an entry that produced an error:

issue

CT-Log entries that don't contain this "extra" field get parsed normally. Here's the Stack-Trace:

stacktrace.txt

@joshbooks
Copy link
Contributor

@nitram22 could you take a look at #8 when you have a minute and see if that works for you?

@nitram22
Copy link
Contributor Author

Thanks for looking into it!
I'll test it tomorrow and get back to you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants