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

Revocation Registry ID validation is failing #312

Closed
ianco opened this issue Jan 26, 2024 · 6 comments · Fixed by #313
Closed

Revocation Registry ID validation is failing #312

ianco opened this issue Jan 26, 2024 · 6 comments · Fixed by #313

Comments

@ianco
Copy link
Member

ianco commented Jan 26, 2024

I think the fix to the DID validation (#307) broke the revocation registry ID validation, we are seeing these errors now on the aca-py integration tests:

7hAcme.agent | anoncreds.error.AnoncredsError: type: RevocationRegistryDefinitionId, identifier: 2oEZfAdHA6vETfASonFe57:4:2oEZfAdHA6vETfASonFe57:3:CL:288602:Acme.agent.Schema_DriversLicense_v2:CL_ACCUM:0 is invalid. It MUST be a URI or legacy identifier.
7hAcme.agent | 2024-01-25 17:06:50,457 aries_cloudagent.core.event_bus ERROR Error occurred while processing event

The tests were passing with the dev7 version but are failing with the dev8 version.

@swcurran
Copy link
Member

That is weird....

I guess I didn't understand the scope of the change we were doing. Sounds like the scope was beyond the prover_did validation?

I thought we had to explicitly add support for dev8, but is it automatically picked up?

We need to get a fix in for that ASAP, as this will be a significant break.

@andrewwhitehead @ianco , please coordinate.

@andrewwhitehead
Copy link
Member

andrewwhitehead commented Jan 26, 2024

It's the change to the URI recognition. It seems like the legacy ID recognition was failing, and it was being recognized as a general URI when it's not really. Seems like another test is needed in the library.

D'oh: https://github.com/hyperledger/anoncreds-rs/blob/main/src/data_types/macros.rs#L47-L48

@ianco
Copy link
Member Author

ianco commented Jan 29, 2024

Can we get a dev9 release so we can test this out?

@TimoGlastra
Copy link
Member

I can do it tomorrow morning. if you can create A PR to update the version already that'll help! (Otherwise i can also do that tomorrow)

@swcurran
Copy link
Member

Created and tests are running: #314

@TimoGlastra
Copy link
Member

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

Successfully merging a pull request may close this issue.

4 participants