aboutsummaryrefslogtreecommitdiff
path: root/src/api/error.rs
Commit message (Collapse)AuthorAgeFilesLines
* Rename error::Error to s3::error::ErrorAlex Auvolat2022-05-131-231/+0
|
* Error refactoringAlex Auvolat2022-05-131-96/+31
|
* Common error type and admin error type that uses itAlex Auvolat2022-05-131-0/+4
|
* Possibility of different error types for different APIsAlex Auvolat2022-05-131-41/+44
|
* Slightly more detailed error reporting from helperAlex Auvolat2022-05-121-0/+5
|
* First implementation of K2V (#293)Alex2022-05-101-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | **Specification:** View spec at [this URL](https://git.deuxfleurs.fr/Deuxfleurs/garage/src/branch/k2v/doc/drafts/k2v-spec.md) - [x] Specify the structure of K2V triples - [x] Specify the DVVS format used for causality detection - [x] Specify the K2V index (just a counter of number of values per partition key) - [x] Specify single-item endpoints: ReadItem, InsertItem, DeleteItem - [x] Specify index endpoint: ReadIndex - [x] Specify multi-item endpoints: InsertBatch, ReadBatch, DeleteBatch - [x] Move to JSON objects instead of tuples - [x] Specify endpoints for polling for updates on single values (PollItem) **Implementation:** - [x] Table for K2V items, causal contexts - [x] Indexing mechanism and table for K2V index - [x] Make API handlers a bit more generic - [x] K2V API endpoint - [x] K2V API router - [x] ReadItem - [x] InsertItem - [x] DeleteItem - [x] PollItem - [x] ReadIndex - [x] InsertBatch - [x] ReadBatch - [x] DeleteBatch **Testing:** - [x] Just a simple Python script that does some requests to check visually that things are going right (does not contain parsing of results or assertions on returned values) - [x] Actual tests: - [x] Adapt testing framework - [x] Simple test with InsertItem + ReadItem - [x] Test with several Insert/Read/DeleteItem + ReadIndex - [x] Test all combinations of return formats for ReadItem - [x] Test with ReadBatch, InsertBatch, DeleteBatch - [x] Test with PollItem - [x] Test error codes - [ ] Fix most broken stuff - [x] test PollItem broken randomly - [x] when invalid causality tokens are given, errors should be 4xx not 5xx **Improvements:** - [x] Descending range queries - [x] Specify - [x] Implement - [x] Add test - [x] Batch updates to index counter - [x] Put K2V behind `k2v` feature flag Co-authored-by: Alex Auvolat <alex@adnab.me> Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/293 Co-authored-by: Alex <alex@adnab.me> Co-committed-by: Alex <alex@adnab.me>
* Support for PostObject (#222)trinity-1686a2022-02-211-0/+6
| | | | | | | | | | | | | | | | | | Add support for [PostObject](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectPOST.html) - [x] routing PostObject properly - [x] parsing multipart body - [x] validating signature - [x] validating policy - [x] validating content length - [x] actually saving data Co-authored-by: trinity-1686a <trinity@deuxfleurs.fr> Co-authored-by: Trinity Pointard <trinity.pointard@gmail.com> Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/222 Reviewed-by: Alex <alex@adnab.me> Co-authored-by: trinity-1686a <trinity.pointard@gmail.com> Co-committed-by: trinity-1686a <trinity.pointard@gmail.com>
* Multipart improvementsAlex Auvolat2022-01-241-0/+16
| | | | | - support part_number for HeadObject - add checks in complete_multipart_upload
* Add date verification to presigned urls (#196)trinity-1686a2022-01-181-5/+1
| | | | | | | | | | fix #96 fix #162 by returning Forbidden instead Bad Request Co-authored-by: Trinity Pointard <trinity.pointard@gmail.com> Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/196 Co-authored-by: trinity-1686a <trinity.pointard@gmail.com> Co-committed-by: trinity-1686a <trinity.pointard@gmail.com>
* Implement x-amz-copy-if-xxx copy preconditions and return more headers on ↵Alex Auvolat2022-01-131-0/+6
| | | | copy (fix #187)
* Fix some error codesAlex Auvolat2022-01-051-4/+26
|
* Some movement of helper code and refactoring of error handlingAlex Auvolat2022-01-041-0/+10
|
* New buckets for 0.6.0: fix model and migrationAlex Auvolat2022-01-041-16/+21
|
* add proper request router for s3 api (#163)trinity-1686a2021-12-061-0/+5
| | | | | | | | | | | | | fix #161 Current request router was organically grown, and is getting messier and messier with each addition. This router cover exaustively existing API endpoints (with exceptions listed in [#161(comment)](https://git.deuxfleurs.fr/Deuxfleurs/garage/issues/161#issuecomment-1773) either because new and old api endpoint can't feasabily be differentied, or it's more lambda than s3). Co-authored-by: Trinity Pointard <trinity.pointard@gmail.com> Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/163 Reviewed-by: Alex <alex@adnab.me> Co-authored-by: trinity-1686a <trinity.pointard@gmail.com> Co-committed-by: trinity-1686a <trinity.pointard@gmail.com>
* Improved handling of HTTP rangestrinity-1686a2021-11-291-2/+22
| | | | | | | | | | | - correct HTTP code when range syntax is invalid (fix #140) - when multiple ranges are given, simply ignore and send whole file Co-authored-by: Trinity Pointard <trinity.pointard@gmail.com> Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/157 Reviewed-by: Alex <alex@adnab.me> Co-authored-by: trinity-1686a <trinity.pointard@gmail.com> Co-committed-by: trinity-1686a <trinity.pointard@gmail.com>
* Improve CLI, adapt tests, update documentationAlex Auvolat2021-10-251-2/+6
|
* Improvements to CLI and various fixes for netapp versionAlex Auvolat2021-10-221-2/+6
| | | | Discovery via consul, persist peer list to file
* Improved XML serializationbetter_xmlAlex Auvolat2021-05-061-12/+17
| | | | | | - Use quick_xml and serde for all XML response returned by the S3 API. - Include tests for all structs used to generate XML - Remove old manual XML escaping function which was unsafe
* rename types to CamelCaseTrinity Pointard2021-05-031-11/+10
|
* fix clippy warnings on apiTrinity Pointard2021-05-031-5/+5
|
* S3 API: support ListBucketsQuentin Dufour2021-05-031-0/+6
|
* Many S3 compatibility improvements:v0.2.1.5Alex Auvolat2021-04-281-0/+31
| | | | | | | | - return XML errors - implement AuthorizationHeaderMalformed error to redirect clients to correct location (used by minio client) - implement GetBucketLocation - fix DeleteObjects XML parsing and response
* make most requested changesTrinity Pointard2021-04-271-2/+2
|
* document api crateTrinity Pointard2021-04-271-0/+16
|
* Update dependenciesAlex Auvolat2021-03-161-1/+7
|
* Implement ListObjectsV2Alex Auvolat2021-02-191-1/+7
|
* Refactor error management in API parterror-refactoringAlex Auvolat2020-11-081-0/+116