Skip to content
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

Previously file object was reporting the libmagic description of a file #591

Merged

Conversation

kak-bo-che
Copy link

instead of the mimetype. According to MISP DataModels

mime-type: A media type (also MIME type and content type) is a two-part identifier for file formats and format contents transmitted on the Internet

more precisely defined in RFC2045 and others.

The description returned by libmagic is more useful than the generic mime-type,
but I did not find a place to put the description in the current data model.

instead of the mimetype. According to [MISP DataModels](https://www.misp-project.org/datamodels/#types)
```
mime-type: A media type (also MIME type and content type) is a two-part identifier for file formats and format contents transmitted on the Internet
```
more precisely defined in [RFC2045](https://tools.ietf.org/html/rfc2045) and others.

The description returned by libmagic is more useful than the generic mime-type,
but I did not find a place to put the description in the current data model.
@kak-bo-che kak-bo-che force-pushed the bugfix/correct_mimetype_on_fileobject branch from 3e3212d to 17ebfe8 Compare June 14, 2020 16:48
@coveralls
Copy link

coveralls commented Jun 14, 2020

Coverage Status

Coverage increased (+0.5%) to 37.833% when pulling 17ebfe8 on kak-bo-che:bugfix/correct_mimetype_on_fileobject into 23d732e on MISP:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.5%) to 37.833% when pulling 17ebfe8 on kak-bo-che:bugfix/correct_mimetype_on_fileobject into 23d732e on MISP:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage increased (+0.5%) to 37.833% when pulling 17ebfe8 on kak-bo-che:bugfix/correct_mimetype_on_fileobject into 23d732e on MISP:master.

@Rafiot
Copy link
Member

Rafiot commented Jun 15, 2020

Woops, right, good catch!

@Rafiot Rafiot merged commit 96aeaf7 into MISP:master Jun 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants