-
Notifications
You must be signed in to change notification settings - Fork 220
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
Old WhatsApp databases parsing affected by forwarded message feature [4.1.3 regression] #1774
Comments
Anyone could take a look at this? I won't have time this week since I'm in charge of the whole unit. I can send the sample privately. |
I will be back on Friday. If nobody takes care of this before that, I will look into it (please, send me the triggering database, if that is the case). |
Thanks @tc-wleite, but don't worry, since this seems to affect just very old databases, please enjoy your vacation. |
The only way I could handle this error was by testing if the column exists. If it exists, do the normal select, if it doesn't exist, put the collumn with zero value, for example in the select: ' ... 0 as forwarded FROM ....'. Just make a test, just like orthers tests ...
|
Not sure, but I'll try to take a look at this in the (later) evening or at night... |
Maybe we can just add a try catch in the createMessageFromDBRow (ExtractorAndroid.java:504)
|
As far as I remember, there is an auxiliary function that can be used (checkIfColumnExists). |
I wanted to create a PR with commit f8832ba for review, but I pushed it to master non intentionally. I would appreciate if anyone could take a look at it, since the last attempt to fix this caused a regression to some old DBs, missing the thumbnails table. |
Does someone have some time to take a look and test commit f8832ba so we can include it in v4.1.4 safely? |
Hi @lfcnassif! I can test it later today, if nobody else is available. |
I can, but I don´t have the WA files to test. |
Thank you @tc-wleite! I made a few tests, but I would appreciate a second opinion given the previous regression. But don't hurry, 4.1.4 can wait next week.
Thanks @paulobreim. But since @tc-wleite knows the code and has samples, I think it would be easier for him, when he has some spare time. |
I just collected ~10 older databases (from 2014 to 2020). |
Tests finished and everything seems fine. |
Thank you for all tests @tc-wleite! Don't worry, I didn't detect this regression in my large test with 300 DBs either... |
I have an old Whatsapp database (2017) and it is not working on the master branch. Not Working: Working ( all chats retrieved.) : |
Hi @gfd2020! |
If confirmed, I think we should open another issue, since it seems a 4.0 regression not related to forwarded column. |
I found the problem. If you order the msgstore.db file to be processed directly, IPED does not parse the chats, but if it is inside a directory and you order it to be processed, it works. Example: PS: The old versions (3.x) don't have this problem. |
Not sure, but I think this was intentional, to avoid parsing the whole root evidence into UI when clicking on it, since it can be huge. |
Current command line help says:
Are there situations in which processing a single file of other types is useful? |
Hum... this is outdated and we should add Ex01, VHD, VHDX, VMDK, AD1, UFDR to the help.
I already did what @gfd2020 tried in the past to test processing of a single test file when it was located together with other files in the same folder into my regression test corpus. But in real use cases, I don't see an advantage doing this. Actually, the single file used to be rendered using a hard drive icon in the Evidence Tree, what is wrong, not sure how it is rendered today. |
It uses the associated icon (not fixed as a hard drive anymore). |
Sorry for the confusion. I didn't know about this IPED behavior, as I use the 3.x version more, I thought it would be the same. |
@thalespr reported this to me and sent a log with several entries like this:
I was able to reproduce, chats are rendered without messages. It seems to happen when the parser tries to recover deleted messages, disabling it doesn't avoid the issue, but results in no chats decoded. Unfortunately this wasn't detected on #1287 huge regression test with the huge 300 DBs data set since I disabled deleted message recovery because of OOME issues when running the test on all DBs at the same time...
The text was updated successfully, but these errors were encountered: