History | View | Annotate | Download (59.7 kB)
pithos: Fix TypeError when listing over-populated containers
Update tests
Refs: #5119
pithos: Reduce astakosclient instances
Use backend astakosclient instance to query the account quotas.
pithos: Remove get_pithos_usage() call from loop
get_pithos_usage() call is needed only once just before enteringthe loop and is used every time afterwards.
snf_django: Change error status code if request method is not valid
Return 405 (NotAllowed) instead of 400 (BadRequest)Add Allow header in the response containing the list of valid methods
pithos: Introduce file-show command
snf-pithos-app: Use the new AstakosClient
pithos: Performance Optimizations in Object Listing.
pithos: Add missing locks
_lookup_container() locks the container pathbut it was not called by some write backend methodswhich expected the container path to be locked.
In those cases optionally _lookup_object() callsthe _lookup_container() in order to lock the container path....
Pithos: Catch invalid hashmap input
Refs: #3745
pithos: Fix shared listing for implicitly shared objects
Provide also the appropriate tests
Refs: #4131
pithos: Fix IndexError in update from other object
pithos: Catch malformed X-Object-Source
Raise 400 (Bad Request) if the server fails to parse it.
pithos: pep8 fixes
Merge branch 'feature-pithos-atomic-api' into develop
Merge branch 'tmp-pithos-tests' into feature-pithos-atomic-api
Conflicts: snf-pithos-app/pithos/api/util.py
pithos: Fix updated object size
If the updated object exceeded the size of the original objectthe object size was not computed correctly.
pithos: return always etag
Refs: #3554
If update md5 is deactivated Pithos does not return an etag header.Pithos in that case should return the merkle hash as etag
pithos: Restore communication with openstack clients
Refs: #4092
Merge branch 'tmp-pithos-tests' of https://code.grnet.gr/git/synnefo into tmp-pithos-tests
Conflicts: snf-astakos-app/astakos/api/tokens.py snf-astakos-app/astakos/im/tests/api.py snf-common/synnefo/settings/test.py snf-django-lib/snf_django/lib/api/__init__.py...
pithos: Fix control for satisfiable range
pithos api: Adjustable max number of items listed
Openstack storage api sets to 10000 the maximum number ofitems returned by the listing functions.However to test this behaviour is time consuming.Change this threadhold to be adjustable via the settings...
pithos: introduce lock_container_path api_method argument
pithos: enable api calls to lock explicitly the path
pithos: change public listing api
Before public listing (public request parameter)requested by non path owners, was ignored.Now it returns a response with 403 status code (Forbidden)
pithos-app: Set supported serializations in api views
pithos: api_method_not_allowed typo's
pithos: create view for reading an object's content
Use cookie for retrieving the authentication token
pithos: fix UnboundLocalError in object read
snf_django: Optionally use other default serialization than json
Pithos api default serialization for listing is text insted of json.However the common api decorator if not specified otherwise used tojson as the default serialization.So we introduced a new optional argument (defaults to json) to override...
Merge branch 'feature-reconfigure-urls' into develop
Conflicts: docs/pithos-api-guide.rst
pithos: Weaken X-Object-Public exposure requirement
8a0c7040367761cd5d5383ac53dfe1c0161c1d02has restricted the X-Object-Public exposurein container detailed list requestsonly to the object owner and if public parameter is supplied.Now we have weaken this requirement so this information...
make synnefo URLs consistent and configurable
https://service.deployment.vendor.tld/service-base/api-prefix/hard/path |___________________________________| |__________| |________| |_______| BASE_HOST BASE_PATH PREFIX Hardcoded...
snf-pithos-app: Use astakosclient
PEP8 style fixes
pithos: Change conflict handling in object write
Pithos in case of missing blocks during smart object write(using hashmap) used to raise an api fault with payloadthe list with the missing blocks serialized in json format.
However, the common api_method decorator in case of api fault...
Fix API decorator response Content-Type
Remove check for response Content-Type, since 'django.http.HttpResponse'has always a default Content-Type of 'text/html; charset=utf-8'. Viewsdefining their response 'Content-Type' should set the'override_serialization' attribute of response to 'True'.
Add ASTAKOS_URL to pithos.api.settings
Improve settings related to ASTAKOS url
Rename 'PITHOS_AUTHENTICATION_URL' setting to 'ASTAKOS_URL'. Also remove'PITHOS_AUTHENTICATION_USERS' from docs (it was removed from code incommit 8df4fae).
Modify 'ASTAKOS_URL' to point to the node hosting the Astakos service...
Move astakos lib from snf-common to snf-django-lib
Remove PITHOS_AUTHENTICATION_USERS setting
Remove this setting as it introduces unnecessary complexity. Also,it will need to be supported by snf-astakos-client. If needed bytests to bypass communication with astakos, a mocking library shouldbe used.
Use common 'api_method' decorator in pithos api
Move cloud faults to 'snf_django.lib.api.faults'
Gather all faults from all synnefo projects into common'snf_django.lib.api.faults'.
minor refactor object_list for clarity
Change pithos api public object handling
Expose public URL information only to the object owners.
Add missing uuid translation
Translate X-Source-Account if TRANSLATE_UUIDS is set
Do not call user_catalogs if AUTHENTICATION_USERS is set
ui compatibility: translate uuids to display names
Catch quota errors in pithos server
Pithos: handle quotaholder exception errors
Fix name error
Change feedback & user_catalogs astakos && pithos api calls
Fix detailed pithos object listing
Refs: #3149
Limit lines length to 80
Extend account_list pithos api call
Provide account name (not only uuid)
Replace account uuid with username in response headers
Merge branch 'latest-quota' of https://code.grnet.gr/git/synnefo into latest-quota
Conflicts: snf-astakos-app/astakos/im/forms.py snf-astakos-app/astakos/im/functions.py
Change pithos sharing to work with account uuids
Fix piths Object GET versionlist: catch ItemNotExists exception
Catch explicitly ContainerExists in container_create instead of NameError
Fix code formatting to conform to the PEP 8 style guide
fix indent
Fix broken compatibility with cloud files
Call for delete container contents
Refs: #2611
change backend to raise custom exceptions
Progess I
fix feedback response in case of URLError
fix detailed public listing
Refs: #2394
fix list_objects
change API calls to include public objects in shared by me
Solve OOS API compatibility problems.
Fixes #2300
Add dispatcher function for updating object checksums asynchronously.
Refs #1792
Make checksum updates optional.
Fix.
Use cookie to get token when retrieving objects.
Remove lib package.
Merge commit 'v0.9.0' into packaging
Conflicts: pithos/__init__.py pithos/api/management/commands/__init__.py pithos/backends/lib/rabbitmq/__init__.py pithos/backends/lib/rabbitmq/queue.py pithos/lib/user.py pithos/middleware/user.py pithos/settings.py...
Merge branch 'master' into packaging
Conflicts: pithos/__init__.py
Conflicts: pithos/settings.py snf-pithos-app/pithos/middleware/log.py snf-pithos-app/pithos/urls.py snf-pithos-backend/pithos/backends/__init__.py snf-pithos-tools/setup.py
Split pithos components in separate packages
- splitted pithos modules in separate reusable components- python packaging for all packages- snf-webproject support (entry_points) for pithos django applications