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

access-api should respond to space/info invocations for space dids not in its db with a well-defined error result type #382

Closed
Tracked by #134
gobengo opened this issue Jan 20, 2023 · 1 comment

Comments

@gobengo
Copy link
Contributor

gobengo commented Jan 20, 2023

Motivation:

Unblocks

@gobengo gobengo transferred this issue from storacha/w3infra Jan 20, 2023
@gobengo gobengo changed the title access-api should respond to space/info invocations for space dids not in its db with a well-defined error result type with status = 404. access-api should respond to space/info invocations for space dids not in its db with a well-defined error result type Jan 28, 2023
gobengo added a commit that referenced this issue Jan 30, 2023
…ure with name (#391)

Motivation:
* implement #382
* tl;dr `space/info` now has explicit failure type for case where the
ucans are valid, but the space DID is not in the db. that way when
upload-api invokes `space/info` as part of its `verifyInvocation` logic,
it can distinguish between an invalid invocation and a not-found space
id

Unblocks:
* this test passing gobengo/w3protocol-test#1
* rest of
storacha/w3infra#134 (comment)
@gobengo
Copy link
Contributor Author

gobengo commented Jan 31, 2023

tested via gobengo/w3protocol-test#1

@gobengo gobengo closed this as completed Jan 31, 2023
gobengo added a commit that referenced this issue Apr 11, 2023
…ure with name (#391)

Motivation:
* implement #382
* tl;dr `space/info` now has explicit failure type for case where the
ucans are valid, but the space DID is not in the db. that way when
upload-api invokes `space/info` as part of its `verifyInvocation` logic,
it can distinguish between an invalid invocation and a not-found space
id

Unblocks:
* this test passing gobengo/w3protocol-test#1
* rest of
storacha/w3infra#134 (comment)
Peeja pushed a commit to storacha/upload-service that referenced this issue Jan 17, 2025
🤖 I have created a release *beep* *boop*
---


##
[4.0.0](storacha/w3ui@uploader-core-v3.0.2...uploader-core-v4.0.0)
(2023-02-16)

no real breaking changes, but a major version bump because release-please got confused by my mistakes.

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Peeja pushed a commit to storacha/upload-service that referenced this issue Jan 29, 2025
🤖 I have created a release *beep* *boop*
---


##
[4.0.0](storacha/w3ui@uploader-core-v3.0.2...uploader-core-v4.0.0)
(2023-02-16)

no real breaking changes, but a major version bump because release-please got confused by my mistakes.

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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