-
Notifications
You must be signed in to change notification settings - Fork 515
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
Fix empty ServiceDecorator in OobRecord causing 422 Unprocessable Entity Error #2362
Fix empty ServiceDecorator in OobRecord causing 422 Unprocessable Entity Error #2362
Conversation
…_decorator_from_service` Signed-off-by: ff137 <ff137@proton.me>
Signed-off-by: ff137 <ff137@proton.me>
Signed-off-by: ff137 <ff137@proton.me>
Signed-off-by: ff137 <ff137@proton.me>
Signed-off-by: ff137 <ff137@proton.me>
…_decorator_from_service` Signed-off-by: ff137 <ff137@proton.me>
…orator_from_service` and returns None Signed-off-by: ff137 <ff137@proton.me>
…rs being returned Signed-off-by: ff137 <ff137@proton.me>
Errors have to do with current issue with BCovrin. Someone created some fun for us on the network. Sigh. I’ll wait a little, as I expect the network back soon and rerun. I won’t hold it up too long… Thanks for the contribution! |
Setting to draft again. I notice that in the Service definition we have: class Service(BaseModel):
def __init__(
...
recipient_keys: Sequence[str] = None,
routing_keys: Sequence[str] = None,
): This means that in recipient_keys = [
DIDKey.from_did(did_key).public_key_b58
for did_key in service.recipient_keys
]
routing_keys = [
DIDKey.from_did(did_key).public_key_b58
for did_key in service.routing_keys
] those operations could raise an exception if either |
Kudos, SonarCloud Quality Gate passed! |
Looking again in the Service definition, we have: self.recipient_keys = list(recipient_keys) if recipient_keys else [] This means my previous comment is wrong: recipient_keys won't be None. So, no additional changes necessary. It could make sense to require at least one recipient key to be present, but that's beyond this scope of this quick bug fix. |
Resolves #2242