- 12 Aug, 2021 1 commit
-
-
Sophie Wenzel-Teuber authored
Changelog: * Update wrapper to new function signatures and structs * Run format and lint * Temporarily remove Centos7 build from CI
-
- 23 Nov, 2020 1 commit
-
-
Ciarán Ó Rourke authored
Create object in backend for buckets to affirm their existence and to store meta data. Support S3 bucket listing. Generalise bucket logic to 'container' where the protocol should not be known. Change log * Disk - append to bucket list instead of overwriting - parse bucket name from object path - store list of objects in each bucket in a unique file - store list of buckets in a file - get_object_list function * use bucket + object path in unit tests * test Fifo::get_bucket_object_list * bucket listing in stream, storage and disk implementation * list buckets using Phobos * test for Phobos bucket listing * function to format ListBuckets response * bucket list and object list request identification * handle bucket list request * list buckets integration test * https confict response if bucket already exists for create_container * bucket list unit tests ignore buckets created by previous test runs * function to reset Phobos descriptor * function to reset Fifo descriptors and storage backend * make sure to deallocate objid if it is allocated before reallocating * function to check if object exists in the Phobos store * function to check if object exists in Disk store * test object_exists functions * create container if object is PUT to a not yet existing one * create container function in PutRequestHandler * remove bucket logic from Disk * remove bucket tests from Phobos_file and Fifo tests * remove bucket logic from Stream and Storage as this is handled elsewhere * handle bucket logic in Protocol Formatter * rename bucket to container where appropriate * support create bucket request * test create bucket request * function to check for container list request * use sane bucket identifier * function to extract container name * use try-catch in create_container function * test that creating an existing container fails * update documentation * flush log messages to logfile immediately
-
- 27 Oct, 2020 1 commit
-
-
Sophie Wenzel-Teuber authored
Add a protocol interface to abstract the s3 implementation away from the server. The server handlers now call generic protocol functions on objects created in a protocol factory. Only this factory knows, that the underlying objects are S3. ChangeLog: * add virtual classes for protocols * move s3 specific implementations to own folder/namespace and inherit generic protocol * add protocol_factory to generate s3 objects for the server * move fifo and phobos implementations to own namespace to mirror the same layout as for the protocol
-
- 28 Sep, 2020 1 commit
-
-
Ciarán Ó Rourke authored
Support the list objects functionality of s3. Bucket only GET requests get a response with a list of the objects in the bucket Change log: * add list object functions to the phobos_cpp_wrapper * add listing objects to storage functionality * add bucket object listing wrapper to stream * empty list objects function is disk storage backend to satisfy storage class * string_to_map function to aid returning object_list in storage * remove Catch2 header file * oid_to_key function to parse away bucket from object name * s3_utilities: function to create xml response for list objects * bucket only GET request calls list objects * get_request_handler: respond with object_list for bucket only requests * add object listing to unit tests * integration test for object listing * unit test for empty bucket * integration test for empty bucket * Use bucket and key in unit tests to reflect actual usage * generate random bucket name for testing so number of objects in returned list can be measured * replace assertTrue with assertEqual in integration tests where appropriate * number integration tests to ensure order (alphanumerical) of execution * instruct integration tests to stop on first error * free object meta data struct * fix development flags not being used during debug build * use debug build for CI * use release build for CentOS7 * appease development flags * disable LeakSanitization for CI (does not work on Gitlab-CI) * source relevant env list in CI before_script * export LD_LIBRARY_PATH in CI configure step * pass bucket name to xml parser to avoid attempting to access an object of an empty list * update documentation
-
- 22 Jun, 2020 1 commit
-
-
Sophie Wenzel-Teuber authored
get body length was throwing an exception when the Content-Length header was missing Changelog: * Add more error checks to s3 header class * Add unit tests for s3 header class covering all typical use cases * Add check for Markdown documentation to gitlab CI
-
- 18 Jun, 2020 1 commit
-
-
Ciarán Ó Rourke authored
Rename project from FiPhoboServer to Deimos Change log: * replace all occurances of variations of fiphoboserver with its deimos equivalent
-
- 15 Jun, 2020 1 commit
-
-
Sophie Wenzel-Teuber authored
Changelog: * in authorisation check if body is existent and signed * add string `UNSIGNED_PAYLOAD` to the canonical request if requested * check in put_request_handler if authorisation is waitig for the body or not
-
- 11 Jun, 2020 1 commit
-
-
Sophie Wenzel-Teuber authored
Changelog: * Add `fiphobo:` prefix to all metadata saved by our server, that should not be sent back directly * When sending the metadata, all entries starting with `fiphobo:` are ignored * remove the bucket_name entry from all set metadata functions throughout the server and add the bucketname where all other metdata is set (put handler)
-
- 13 May, 2020 1 commit
-
-
Sophie Wenzel-Teuber authored
All different kinds of errors our server sends are in compliance with Amazon S3 errors. They are now stored in one place and should be accessed from anywhere. Changelog: * add the file s3_errors.h that contains const objects for all errors that might occur (most of them are not checked yet) * change struct error_info into a class and add a function to create the XML from the object's variables * Use these errors in the request handlers * Add an error object to the s3 authorisation that will always contain "Access Denied" or another error if applicable * Update tests to test the code generation and error return values
-
- 11 May, 2020 1 commit
-
-
Changelog: * Build documentation * Add new flag to CMake to build Documentation with Doxygen, but without the Markdown converter * Update CI for new CMake variable * Update README to reflect changes
-
- 24 Apr, 2020 1 commit
-
-
- 15 Apr, 2020 1 commit
-
-
Sophie Wenzel-Teuber authored
The signature of amazon users is checked against a text file of known users and requests are accepted or rejected depending on the signature
-
- 08 Apr, 2020 1 commit
-
-
All errors returned from phobos now have at least a little distinct error messages (as far as the return values permit it) and send an S3 readable XML along with the error number.
-
- 31 Mar, 2020 1 commit
-
-
Add a creation timestamp to the metadata and return only original Metadata in getmd (not the server related stuff)
-
- 24 Mar, 2020 1 commit
-
-
- 16 Mar, 2020 1 commit
-
-
Sophie Wenzel-Teuber authored
-
- 13 Mar, 2020 1 commit
-
-
Sophie Wenzel-Teuber authored
-
- 05 Mar, 2020 4 commits
-
-
Sophie Wenzel-Teuber authored
-
Sophie Wenzel-Teuber authored
-
Sophie Wenzel-Teuber authored
-
Sophie Wenzel-Teuber authored
-
- 28 Feb, 2020 3 commits
-
-
Sophie Wenzel-Teuber authored
-
Sophie Wenzel-Teuber authored
-
Sophie Wenzel-Teuber authored
-
- 24 Feb, 2020 1 commit
-
-
Sophie Wenzel-Teuber authored
-
- 21 Feb, 2020 2 commits
-
-
Sophie Wenzel-Teuber authored
-
Sophie Wenzel-Teuber authored
-
- 20 Feb, 2020 4 commits
-
-
Sophie Wenzel-Teuber authored
-
Sophie Wenzel-Teuber authored
-
Sophie Wenzel-Teuber authored
-
Sophie Wenzel-Teuber authored
-
- 19 Feb, 2020 1 commit
-
-
Sophie Wenzel-Teuber authored
-