Closed patrickdalla closed 1 month ago
sure
Hi @patrickdalla, thanks for the Unit test fixes.
Could you implement the ParserConfig.xml config files merging idea? So we would be able to turn records extraction on in forensic and pedo profiles without duplicating ParserConfig.xml into them.
Yes. I will.
Em seg., 27 de mai. de 2024, 08:09, Luis Filipe Nassif < @.***> escreveu:
Hi @patrickdalla https://github.com/patrickdalla, thanks for the Unit test fixes.
Could you implement the ParserConfig.xml config files merging idea? So we would be able to turn records extraction on in forensic and pedo profiles without duplicating ParserConfig.xml into them.
— Reply to this email directly, view it on GitHub https://github.com/sepinf-inc/IPED/pull/2231#issuecomment-2133345333, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG247S4R6YHIHCU3X35M7X3ZEMO55AVCNFSM6AAAAABIH7HBC6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZTGM2DKMZTGM . You are receiving this because you were mentioned.Message ID: @.***>
There is already the ParsersConfig class in iped.engine.config package, it may be used for that.
Hi @lfcnassif . I have created the merging code for ParserConfig.xml from profile. It replaces completely all the parser tag with the same class attribute from default config with the configured in profile. As it was implemented, only changes and additions can be done (no removal).
It works in master and can be merged, but maybe I have to make some changes to avoid conflict in UI config, in which branch i will start working now. There, as the the user can use the UI to select which Parsers to use (including removing some), I replace completely the ParserConfig. So, I will make some distinctions to inform if the config is to be merged ou replaced completely. Maybe a simple attribute in parsers tag. But I will change it in UI config branch, right?
I remembered that the additional profiles created through UI config are saved in binary form. So, maybe, no conflicts will exists. But I will test it.
Thanks @patrickdalla! Parser removal while merging multiple ParserConfig.xml files is not needed for this feature, it is fine. When it is needed, I think a new enabled
attribute in xml parser
element would be enough to flag the merging code it should be removed.
@patrickdalla, I think you enabled a wrong parser in forensic and pedo profiles. It should be UsnJrnlParser
with an enabled extractEntries
param right?
Sorry. It is correct now.
Closes #1503 .