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

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

Open
bquinn opened this issue Nov 5, 2024 · 0 comments

Comments

@bquinn
Copy link

bquinn commented Nov 5, 2024

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.

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

1 participant