Comments (6)
it should raise an error.
from vc-bitstring-status-list.
non normative 406 might be a sane path as well as normative on throw an error
The index isn't sent to the server that provides the status list VC, so this would be a client-side / verifier error, I'd think. So an HTTP status code doesn't seem right here. If you're referring to something like a verifier service provided by the VC API ... I'd expect the appropriate behavior to be defined in that spec.
from vc-bitstring-status-list.
non normative 406 might be a sane path as well as normative on throw an error
from vc-bitstring-status-list.
The issue was discussed in a meeting on 2023-01-31
- no resolutions were taken
View the transcript
2.4. Bounds checking (issue vc-status-list-2021#9)
See github issue vc-status-list-2021#9.
Brent Zundel: if the index is out of bounds... what should happen.
Manu Sporny: it should raise an error.
… if they are out of bounds, it should raise an error..
Michael Prorock: ill volunteer for a PR on this.
Kristina Yasuda: I don't disagree... throwing an error is fine, but perhaps we should define an error code?.
… are there error codes?.
Manu Sporny: checking the status index is part of the verification stage.
… that would cause verify to fail.
… it gets into protocol.
Kristina Yasuda: error message?.
Manu Sporny: all we can say is you should throw an error.
… we don't have error codes yet.
… there is no way to surface these to the caller, unless we talk about protocol like vc api.
… i don't think this spec, which is just data model and serialization, can say much about how errors are exposed.
Michael Prorock: i'm not opposed to including informative guidance.
… like 406 / not acceptable.
… normative path, we should say MUST throw an error.
Phil ASU: +1 to it should throw an error.
Michael Prorock: should users see it? we can't say anything about that.
Michael Prorock: +1 manu.
Manu Sporny: is there confusion over getting the list, like 404... vs during verification 406 might not make sense... maybe better 200 verified false.
… seems like a protocol trap.
Michael Prorock: agreed.
Kristina Yasuda: good point on retrieval vs verify in the bitmap.
… we should say 404 if its obvious is should be 404.
Manu Sporny: +1 kristina, not finding the status list should be a 404 and should be in the spec..
Kristina Yasuda: if we want to avoid protocol, error message is probably also a trap.
Manu Sporny: we can define an algorithmic error message.
… error_index_out_of_bounds and hand wave about it.
… languages / implementers can define how they want to handle it.
Michael Prorock: +1 manu, e.g. you MUST return an error that indicates that the index is out of range through ERR_ABOVE_MAX.
from vc-bitstring-status-list.
PR #104 has been raised to address this issue. This issue will be closed once PR #104 has been merged.
from vc-bitstring-status-list.
PR #104 has been merged, closing.
from vc-bitstring-status-list.
Related Issues (20)
- Conformance classes need to be defined HOT 2
- Rename "size" to "statusSize" HOT 5
- Rename `reference` to `statusReference` HOT 2
- Remove `ttl` HOT 5
- Matching of VC issuer and Status List VC issuer - MAY vs MUST HOT 5
- Add `@type` to `encodedList` term definition HOT 4
- "bitstring" vs "bit string" HOT 4
- Accessibility self-review of Bitstring Status List v1.0
- Internationalization Self-Review for Bitstring Status List v1.0
- Horizontal Reviews for Bitstring Status List v1.0
- Encoding of `statusListIndex` HOT 3
- `statusPurpose` type `message` unclear HOT 2
- `credentialSubject.statusMessage` localizable? HOT 3
- Processing error `title` and `detail` need lang/dir guidance HOT 5
- Testing with revoked and not-revoked credential HOT 1
- Align bitstring structure and IETF Token Status List structure? HOT 3
- Precise timestamps of status changes HOT 2
- Credential Type Mismatch between the Spec and the Schema HOT 4
- Verification algorithm should say what happens if schema isn't followed HOT 2
- Invalid JSON in Example 1 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vc-bitstring-status-list.