Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Parsing fails if algorithm, compression_mechanism, or encryption_mechanism are not present #326

@emmanvg

Description

@emmanvg

For Encoding, Encryption and Compression API classes we have a Factory that currently is limited in its extensibility. If the class is not found in the if/else clause it will fail hard. Propose a way to register new API classes, as a fallback it will create the an instance of the default class. Yet, keep in mind that trying to access the Articfact.packed_data or Artifact.data properties may return in a NotImplementedError because pack() and unpack() methods are not defined for base classes.

This fix would allow to interact with the parsed object even if a valid API class is not available.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions