CaliDog/certstream-java

IllegalStateException if entry contains "extra" field

Closed this issue · 2 comments

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

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

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