pithos: Fix ordering in detailed listing of public objects
Refs: #4727
pithos: Rename setting
Change PITHOS_SERVE_API_DOMAIN to PITHOS_UNSAFE_DOMAIN
pithos: Code simplification
pithos: Fix tests
pithos: Remove assigned but never used variable
pithos: Restrict file serving endpoints to a specific host
Introduce new setting ``PITHOS_SERVE_API_DOMAIN``. When set, all api viewsthat serve pithos file contents will be restricted to be served only underthe domain specified in the setting value.
astakos oa2: rename settings and url prefixes
Change setting and url prefixes from `oa2` to`oauth2`
pithos: Remove obsolete settings
pithos: Fix test
pithos: Add missing import
pithos views: In case of invalid access token request a new one
Instead of raising PermissionDenied redirect to theobject view url to re-initiate the procedurefor acquiring a new access token.
pithos views: Fix astakos authorization endpoint url
The astakos authorization endpoint url should be an absolute url.
pithos views: Fix tests
pithos: Update view tests
pithos: Change pithos views authorization/authentication
Pithos views no longer use the information stored inthe PITHOS_ASTAKOS_COOKIE_NAME cookiefor authenticating the user and authorizing access to thetargeted resource.They acquire, instead, from the authentication server (astakos)...
pithos: Configurable exclude api calls from being served
Prevent api calls from being served by setting PITHOS_SERVE_APIto False.
pithos: Fix pithos views url prefix
pithos: Minor changes in view decorator
pithos: Slight modifications in file-show command
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
Add some missing Copyright notices
Also add 2013 in package COPYRIGHT files.
Remove resource import/export commands
They have been subsumed by the respective service import/export commands.
pithos: Fix calling AstakosClient in reconcile
Do not pass service token in AstakosClient calls.
Fix pep8 errors
Trim trailing slash from ASTAKOS_AUTH_URL
Endpoints no more end in slash.
snf-pithos-app: Use the new AstakosClient
pithos: Eliminate AssertionError in views
Remove check for not allowed request method in view_method() decorator.Let the api_method() decorator handle such cases.
Refs: #4501
pithos: Handle database errors during permission updates
Refs: #4502
pithos: Fix permission listing for objects containing / in their name
Add tests
pithos: Extend/fix tests
Merge branch 'feature-pithos-performance-optimizations' into develop
pithos: Provide tests for requests with timestamps
pithos: Fix timestamps
Request Django=>1.4, <1.5
Drop support for Django 1.2. Remove compatibility code that were used inorder to support Django 1.2 and 1.4. Finally update django documentationlink in the docs.
Merge branch 'hotfix-0.14.8' into develop
Merge hotfix-0.14.8 which ports Synnefo to wheezy and Django 1.4.5
Conflicts: ci/ci_squeeze.conf ci/ci_wheezy.conf ci/schemas/one_node_squeeze/packages.conf ci/schemas/one_node_squeeze/squeeze.conf ci/schemas/one_node_squeeze/wheezy.conf...
wheezy: urls module doesn't export defaults
pithos: Change error handling in views
The view_method decorator used to check the response status:in case of unexpected response used to returnInternal Server Error (500).This commit changes this behavior andthe view_method decorator returns whatever the api_method decorator...
pithos: Update tests
pithos: Fix failing test
Merge branch 'feature-pithos-performance-optimizations-develop' into feature-pithos-performance-optimizations-perf
pithos: Fix tests broken after merge
Merge branch 'hotfix-0.14.6' into develop
Conflicts: Changelog docs/admin-guide.rst snf-cyclades-app/synnefo/api/management/commands/network-remove.py snf-cyclades-app/synnefo/api/servers.py snf-cyclades-app/synnefo/api/tests/servers.py snf-cyclades-app/synnefo/logic/backend.py...
pithos: Fix pithos-manage-account command
pithos: Fix partial content responses
Refs: #4063
pithos: Performance Optimizations in Object Listing.
pithos: Clear pithos_public endpoint's versionId
pithos_public service is not an API and should not be versioned; thepublic URLs operated by pithos do not include a version segment, anyway.
Also make its type more specific, since type `public' is too generic.
common: Strip trailing slash from endpoints
Remove trailing slash from the endpoints' publicURL field in servicedefinitions. These values end up in the response of POST /tokens, and,according to the keystone API, should not end in slash. A trailing slash...
Revert "pithos: Use pithos backend as context manager"
This reverts commit 23b41f6fefa1a066748810c4642e58e18a4b83f9.
pithos: Use pithos backend as context manager
Substitue pre_exec() and post_exec()
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 AttributeError in tests
pithos: Add tests
pithos: Destroy test database after test execution:Pithos uses a pool for the backend objects.Pooled backend objects override the default close behaviorand return the object to the pool instead.Therefore, django was unable to destroy the databasesince there were active connections....
Move middlewares from snf-common to snf-webproject
pithos: Fix stale import from tests file
pithos: Remove stale import from tests file
pithos: Fix shared listing for implicitly shared objects
Provide also the appropriate tests
Refs: #4131
pithos: Fix IndexError in update from other object
Fix stale import statements
Commit 7cfc0ce moved code from webproject to snf_django. This commitfixes some stale imports that skipped renaming.
pithos: Fix TypeError when trying to retrieve invalid object version
pithos: Add test for restoring object's version
pithos: Catch malformed X-Object-Source
Raise 400 (Bad Request) if the server fails to parse it.
pithos: Add test for updating an object from version
Merge branch 'hotfix-0.14.4' into develop
Conflicts: Changelog version
pithos: Fix pithos test views
pithos: Fix reconcile resources command
Merge branch 'hotfix-0.14.3' into develop
Conflicts: Changelog snf-astakos-app/astakos/im/messages.py snf-pithos-app/pithos/api/manage_accounts/__init__.py snf-pithos-app/pithos/api/management/commands/reconcile-resources-pithos.py snf-pithos-app/pithos/api/settings.py...
pithos: Pass full path of the next parameter in view redirect
Revert "pithos: manage_accounts support for both sqlalchemy and sqlite"
This reverts commit 8414859f4895e4c67ff0bb13a8d7078c1851596a.
This commit with the current backend implementationhas broken the command for sqlalchemy module.
pithos: Fix reconcile-resource-pithos command
Conflicts: snf-pithos-app/pithos/api/management/commands/reconcile-resources-pithos.py snf-pithos-backend/pithos/backends/lib/sqlite/node.py
pithos: Update view_method decorator
pithos: Write tests for the weblogin view
pithos: Update/extend tests
pithos: pep8 fixes
pithos: Handle backend transaction management
In commit 9f135224edf6e50386dc29e0a35806a92c56a50cthe transaction management has been movedfrom the pithos backend to pithos frontend.This commit updates all modules use pithos backendto handle transactions manually.
pithos: Fix tests to run with sqlalchemy backend/sqlite engine
pep8 changes
Merge branch 'feature-pithos-atomic-api' into develop
pithos: Fix test configuration
pithos: Cleanup api_method code
pithos: Restore sqlite backend module
pithos: Optionally deactivate backend pooling
This is useful because the ``pithos.backends.lib.sqlite``backend module is not compatible with pooling.
pithos: Fix tests (missing module)
pithos: Fix & update tests (premature commit)
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: Fix tests challenging ETag
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