Skip to content

Incorrect behavio(u)r when checking against multiple trust lists - caching problem? #201

@bquinn

Description

@bquinn

Here's an example of a validator built in vanilla JavaScript using the c2pa JS library:
https://iptc.org/std/MediaProvenance/ValidationDemo/

We want to check against both the CAI "temporary certificate list" and our IPTC Origin Verified News Publisher list. So we need to call c2paIPTC.read twice, with two different settings objects.

The return values don't align with what we would expect, possibly due to some caching behaviour.

The workaround that we have used is to simply create two instances of the c2pa library locally, and use a different settings object with each.

But it would be great if we didn't have to do that and we could have only one instance of c2pa.js!

Please let me know if this doesn't make sense and I can make a better test case showing exactly what goes wrong.

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