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

Problem: fiwalk characterization is broken #755

Closed
sevein opened this issue Oct 12, 2017 · 1 comment
Closed

Problem: fiwalk characterization is broken #755

sevein opened this issue Oct 12, 2017 · 1 comment
Assignees
Milestone

Comments

@sevein
Copy link
Member

sevein commented Oct 12, 2017

We have a class in src/archivematicaCommon/lib/externals/fiwalk_plugins/pronom_ident.py that subclasses fido.Fido (from https://github.com/openpreserve/fido).

class FiwalkFido(fido.Fido):
    """docstring for FiwalkFido"""
    # [...]
    def identify_file(self, filename):
        """Identify the type of @param filename."""
        # [...]
        bofbuffer, eofbuffer = self.get_buffers(f, size, seekable=True)

The method get_buffers is treated as it returned a tuple of two items however the method changed a long time ago starting to return a tuple of three items: https://github.com/openpreserve/fido/blob/master/fido/fido.py#L536-L582.

It seems that this change was introduced in v1.3.4-84: openpreserve/fido@d3d5e23.


Redmine: https://projects.artefactual.com/issues/11256 (private)

@sevein sevein added this to the 1.7.0 milestone Oct 12, 2017
qubot pushed a commit that referenced this issue Oct 19, 2017
@sevein sevein self-assigned this Oct 19, 2017
qubot pushed a commit that referenced this issue Oct 27, 2017
qubot pushed a commit that referenced this issue Oct 28, 2017
@sevein sevein closed this as completed Nov 6, 2017
@sromkey sromkey assigned currmie and unassigned sevein Jan 24, 2018
@sromkey
Copy link
Contributor

sromkey commented Jan 24, 2018

This should be testable by testing the ISO disk image in sample transfers.

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

No branches or pull requests

3 participants