Systematically handle the API errors

Registered by Zhihao Yuan

This blueprint has been superseded. See the newer blueprint "Input Validation" for updated plans.

1. The transport layer verifies the requests, including the request size, MIME, HTTP param (echo, limit), JSON, required structure of JSON ('ttl', 'body', etc), contents of JSON as a part of the API limits (value of TTL, etc).

2. The module to use a value defines its default value, if applicable. For example, the default value of <limit> for storage is 10. Storage uses it, so storage defines it.

See also: https://wiki.openstack.org/wiki/Marconi/specs/api/v1/errors

A standalone module can be used to check the predefined API limits -- by Master Z.

Blueprint information

Status:
Complete
Approver:
None
Priority:
High
Drafter:
None
Direction:
Needs approval
Assignee:
None
Definition:
Superseded
Series goal:
Accepted for havana
Implementation:
Unknown
Milestone target:
milestone icon havana-1
Completed by
Kurt Griffiths

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/api-error-handling,n,z

Addressed by: https://review.openstack.org/25501
    An API limits checking module.

Gerrit topic: https://review.openstack.org/#q,topic:bp/storage-base,n,z

Addressed by: https://review.openstack.org/26267
    Check messages/claims limit and TTL in transport.

(?)

Work Items

Dependency tree

* Blueprints in grey have been implemented.

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.