[Bro-Dev] [JIRA] (BIT-1199) Better error messages for input file errors in READER_ASCII
Johanna Amann (JIRA)
jira at bro-tracker.atlassian.net
Thu Mar 19 16:06:00 PDT 2015
[ https://bro-tracker.atlassian.net/browse/BIT-1199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=20046#comment-20046 ]
Johanna Amann commented on BIT-1199:
------------------------------------
And again - topic/johanna/bit-1199 now addresses the bug, changes the error message as specifies and does not exit with an InternalError anymore; instead the line in question should just be ignored.
I tried to implement it with minimal impact on the already existing code -- sadly it makes the already messy functions that do event / predicate dispatch even messier. But - not by very much.
> Better error messages for input file errors in READER_ASCII
> -----------------------------------------------------------
>
> Key: BIT-1199
> URL: https://bro-tracker.atlassian.net/browse/BIT-1199
> Project: Bro Issue Tracker
> Issue Type: Problem
> Components: Bro
> Reporter: grigorescu
> Assignee: Johanna Amann
> Fix For: 2.4
>
> Attachments: test.intel
>
>
> This came up on the mailing list a few weeks ago. If one tries to load the attached file as Intelligence, Bro will error out, with:
> {code}
> internal error: Value not found in enum mappimg. Module: GLOBAL, var: , var size: 0
> {code}
> The attached file contains an extra tab after downloader.com.
> It'd be nice if Bro would tell you that this was an issue with the input reader, which file it occurred in, and a line number.
> I think generally speaking, if there's an issue with an input file, it'd be nice to know the line number.
> (Also, there's a typo in mappimg in the error message that's currently displayed).
--
This message was sent by Atlassian JIRA
(v6.4-OD-15-055#64014)
More information about the bro-dev
mailing list