You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This happens when there are two AIDs in a wallet and each of them have their own registry with the same name.
Steps to reproduce:
Create keria agent
Create identifier aid1
Create new registry named registry for aid aid1
Create identifier aid2.
Create new registry also named registry, but for aid aid2.
Do GET /identifiers/aid2/registries/registry
Expected result
Keria returns the registry created for aid aid2.
Actual result
Keria returns HTTP GET /identifiers/aid2/registries/registry - 404 Not Found - {"title": "404 Not Found", "description": "registry is not a valid registry for AID aid2"}.
raisefalcon.HTTPNotFound(description=f"{registryName} is not a valid reference to a credential registry")
ifnotregistry.hab.pre==hab.pre:
raisefalcon.HTTPNotFound(description=f"{registryName} is not a valid registry for AID {name}")
I assume this only finds the first registry with the given name in the agent. So it returns the registry created for aid1 instead of the one created for aid2.
I have verified that both registries do exists and they are returned by the list endpoints for aid1 and aid2 respectively.
This happens when there are two AIDs in a wallet and each of them have their own registry with the same name.
Steps to reproduce:
aid1
registry
for aidaid1
aid2
.registry
, but for aidaid2
.Expected result
Keria returns the registry created for aid
aid2
.Actual result
Keria returns HTTP GET /identifiers/aid2/registries/registry - 404 Not Found - {"title": "404 Not Found", "description": "registry is not a valid registry for AID aid2"}.
Notes
See implementation:
keria/src/keria/app/credentialing.py
Lines 211 to 216 in 98a33ae
I assume this only finds the first registry with the given name in the agent. So it returns the registry created for
aid1
instead of the one created foraid2
.I have verified that both registries do exists and they are returned by the list endpoints for
aid1
andaid2
respectively.See reproduction script in signify-ts here: https://github.com/lenkan/signify-ts/blob/252ec4dd17f5aaf2e2299610f4f17bcb5c71dfcf/examples/integration-scripts/registry.test.ts
The text was updated successfully, but these errors were encountered: