[Bro-Dev] [JIRA] (BIT-1199) Better error messages for input file errors in READER_ASCII

Jon Siwek (JIRA) jira at bro-tracker.atlassian.net
Tue Mar 17 11:23:00 PDT 2015


    [ https://bro-tracker.atlassian.net/browse/BIT-1199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=20003#comment-20003 ] 

Jon Siwek commented on BIT-1199:
--------------------------------

Johanna, though it may not be trivial to continue processing input on errors like these as mentioned in BIT-1229, is it easy to improve the error message to include file name and line number info as suggested by this ticket?

> 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
>            Priority: Low
>             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