Skip to content

UnsupportedOperation using ZipExtFile #3

Open
@rhunwicks

Description

@rhunwicks

Mayan-EDMS uncompresses ZipFile archives and then loads the files directly. This causes an UnsupportedOperation error when Django tries to calculate the file size using seek() and tell(). The ZipExtFile instance that is passed to Django has a seek() method, but calling it raises UnsupportedOperation.

We need to fallback to calculating size and reading the content without using seek().

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions