Statistics
| Branch: | Tag: | Revision:

root / snf-pithos-app / pithos / api / functions.py @ 798143d9

History | View | Annotate | Download (59.8 kB)

# Date Author Comment
2aba7764 12/03/2013 02:44 pm Sofia Papagiannaki

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

c598a8a7 12/03/2013 02:05 pm Sofia Papagiannaki

pithos: Introduce file-show command

f759041f 10/29/2013 04:15 pm Ilias Tsitsimpis

snf-pithos-app: Use the new AstakosClient

dc88754b 09/16/2013 04:19 pm Nanakos Chrysostomos

pithos: Performance Optimizations in Object Listing.

48bb9c89 09/12/2013 10:22 am Sofia Papagiannaki

pithos: Add missing locks

_lookup_container() locks the container path
but it was not called by some write backend methods
which expected the container path to be locked.

In those cases optionally _lookup_object() calls
the _lookup_container() in order to lock the container path....

3a5994a8 09/09/2013 01:59 pm Sofia Papagiannaki

Pithos: Catch invalid hashmap input

Refs: #3745

6e0f3e65 08/08/2013 05:40 pm Sofia Papagiannaki

pithos: Fix shared listing for implicitly shared objects

Provide also the appropriate tests

Refs: #4131

f5da7eaa 08/08/2013 11:00 am Sofia Papagiannaki

pithos: Fix IndexError in update from other object

752a2ddd 07/31/2013 06:32 pm Sofia Papagiannaki

pithos: Catch malformed X-Object-Source

Raise 400 (Bad Request) if the server fails to parse it.

29148653 07/17/2013 11:41 am Sofia Papagiannaki

pithos: pep8 fixes

54256e77 07/05/2013 07:33 pm Georgios D. Tsoukalas

Merge branch 'feature-pithos-atomic-api' into develop

0df5250a 07/04/2013 10:48 am Sofia Papagiannaki

Merge branch 'tmp-pithos-tests' into feature-pithos-atomic-api

Conflicts:
snf-pithos-app/pithos/api/util.py

80d668be 07/03/2013 08:01 pm Sofia Papagiannaki

pithos: Fix updated object size

If the updated object exceeded the size of the original object
the object size was not computed correctly.

133e3fcf 07/03/2013 06:37 pm Sofia Papagiannaki

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

e805709b 07/02/2013 06:08 pm Sofia Papagiannaki

pithos: Restore communication with openstack clients

Refs: #4092

1baa9737 07/02/2013 05:19 pm Sofia Papagiannaki

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...

7b40f056 07/02/2013 04:35 pm Sofia Papagiannaki

pithos: Fix control for satisfiable range

3bdb9222 07/02/2013 04:23 pm Sofia Papagiannaki

pithos api: Adjustable max number of items listed

Openstack storage api sets to 10000 the maximum number of
items returned by the listing functions.
However to test this behaviour is time consuming.
Change this threadhold to be adjustable via the settings...

b90584d0 06/19/2013 04:19 pm Sofia Papagiannaki

pithos: introduce lock_container_path api_method argument

263d27d9 06/19/2013 04:13 pm Sofia Papagiannaki

pithos: enable api calls to lock explicitly the path

c8860319 06/19/2013 02:10 pm Sofia Papagiannaki

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)

ee565728 06/18/2013 06:46 pm Kostas Papadimitriou

pithos-app: Set supported serializations in api views

55616866 06/17/2013 01:35 pm Kostas Papadimitriou

pithos: api_method_not_allowed typo's

63de12cf 06/10/2013 09:37 pm Sofia Papagiannaki

pithos: create view for reading an object's content

Use cookie for retrieving the authentication token

06e7d2f0 06/10/2013 09:37 pm Sofia Papagiannaki

pithos: fix UnboundLocalError in object read

6b560707 06/10/2013 11:06 am Sofia Papagiannaki

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 to
json as the default serialization.
So we introduced a new optional argument (defaults to json) to override...

e3709c69 06/06/2013 07:23 pm Sofia Papagiannaki

pithos api: Adjustable max number of items listed

Openstack storage api sets to 10000 the maximum number of
items returned by the listing functions.
However to test this behaviour is time consuming.
Change this threadhold to be adjustable via the settings...

27612504 06/06/2013 07:14 pm Sofia Papagiannaki

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 to
json as the default serialization.
So we introduced a new optional argument (defaults to json) to override...

11b7870d 06/05/2013 05:38 pm Georgios D. Tsoukalas

Merge branch 'feature-reconfigure-urls' into develop

Conflicts:
docs/pithos-api-guide.rst

1a3eff62 06/05/2013 02:06 pm Sofia Papagiannaki

pithos: Weaken X-Object-Public exposure requirement

8a0c7040367761cd5d5383ac53dfe1c0161c1d02
has restricted the X-Object-Public exposure
in container detailed list requests
only to the object owner and if public parameter is supplied.
Now we have weaken this requirement so this information...

e3ff6830 06/03/2013 11:49 am Georgios D. Tsoukalas

make synnefo URLs consistent and configurable

https://service.deployment.vendor.tld/service-base/api-prefix/hard/path |___________________________________| |__________| |________| |_______|
BASE_HOST BASE_PATH PREFIX Hardcoded...

e6fb591c 04/30/2013 05:03 pm Ilias Tsitsimpis

snf-pithos-app: Use astakosclient

67100dd2 04/30/2013 05:03 pm Ilias Tsitsimpis

PEP8 style fixes

e9d94604 04/16/2013 08:44 pm Sofia Papagiannaki

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 payload
the list with the missing blocks serialized in json format.

However, the common api_method decorator in case of api fault...

b698d39d 04/16/2013 08:22 pm Christos Stavrakakis

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'. Views
defining their response 'Content-Type' should set the
'override_serialization' attribute of response to 'True'.

6dd0fc7c 04/15/2013 04:53 pm Christos Stavrakakis

Add ASTAKOS_URL to pithos.api.settings

4ab620b6 04/15/2013 04:11 pm Christos Stavrakakis

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 in
commit 8df4fae).

Modify 'ASTAKOS_URL' to point to the node hosting the Astakos service...

04a1b675 04/08/2013 06:17 pm Christos Stavrakakis

Move astakos lib from snf-common to snf-django-lib

8df4fae6 04/08/2013 11:07 am Christos Stavrakakis

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 by
tests to bypass communication with astakos, a mocking library should
be used.

65bbcd43 04/08/2013 11:06 am Christos Stavrakakis

Use common 'api_method' decorator in pithos api

Update all pithos API methods to use the new common 'api_method'
decorator. However, this decorator is not enough for pithos since
pithos methods require some extra tasks:
  • Create a PithosBackend connection...
bd40abfa 04/08/2013 11:06 am Christos Stavrakakis

Move cloud faults to 'snf_django.lib.api.faults'

Gather all faults from all synnefo projects into common
'snf_django.lib.api.faults'.

8a0c7040 03/29/2013 12:17 pm Georgios D. Tsoukalas

minor refactor object_list for clarity

6fe32fb6 03/28/2013 10:57 pm Sofia Papagiannaki

Change pithos api public object handling

Expose public URL information only to the object owners.

f483f65d 02/14/2013 04:28 pm Sofia Papagiannaki

Add missing uuid translation

Translate X-Source-Account if TRANSLATE_UUIDS is set

a4f3b17c 02/14/2013 04:27 pm Sofia Papagiannaki

Do not call user_catalogs if AUTHENTICATION_USERS is set

469d0997 02/14/2013 04:26 pm Georgios D. Tsoukalas

ui compatibility: translate uuids to display names

dfa2d4ba 01/30/2013 04:25 pm Sofia Papagiannaki

Catch quota errors in pithos server

ccfd4e44 01/29/2013 01:31 pm Sofia Papagiannaki

Pithos: handle quotaholder exception errors

27932481 01/23/2013 06:51 pm Sofia Papagiannaki

Fix name error

890c2065 01/23/2013 06:51 pm Sofia Papagiannaki

Change feedback & user_catalogs astakos && pithos api calls

  • Substitute ``username`` with ``displayname``
ddea3095 01/16/2013 12:46 pm Sofia Papagiannaki

Fix detailed pithos object listing

Refs: #3149

6255b97d 01/15/2013 03:09 pm Sofia Papagiannaki

Limit lines length to 80

4d366a03 01/15/2013 03:09 pm Sofia Papagiannaki

Extend account_list pithos api call

Provide account name (not only uuid)

88dd5c4d 01/14/2013 01:20 pm Sofia Papagiannaki

Replace account uuid with username in response headers

c846fad1 01/11/2013 12:00 am Sofia Papagiannaki

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

32454501 01/07/2013 04:13 am Sofia Papagiannaki

Change pithos sharing to work with account uuids

02b8c298 01/07/2013 04:13 am Sofia Papagiannaki

Fix piths Object GET versionlist: catch ItemNotExists exception

7c09b0b7 09/12/2012 03:52 pm Sofia Papagiannaki

Catch explicitly ContainerExists in container_create instead of NameError

2715ade4 09/10/2012 04:09 pm Sofia Papagiannaki

Fix code formatting to conform to the PEP 8 style guide

5cd85b24 07/02/2012 03:57 pm Sofia Papagiannaki

fix indent

0b1f5802 07/02/2012 02:14 pm Sofia Papagiannaki

Fix broken compatibility with cloud files

e46b2bcf 06/29/2012 06:34 pm Sofia Papagiannaki

Call for delete container contents

Refs: #2611

7efc9f86 06/28/2012 03:51 pm Sofia Papagiannaki

change backend to raise custom exceptions

4d15c94e 06/25/2012 07:50 pm Sofia Papagiannaki

Progess I

Refs: #2611

dfdf4802 06/19/2012 07:37 pm Sofia Papagiannaki

fix feedback response in case of URLError

e53e90da 05/23/2012 06:19 pm Sofia Papagiannaki

fix detailed public listing

Refs: #2394

6ed4537f 05/22/2012 07:57 pm Sofia Papagiannaki

fix list_objects

Refs: #2394

90ee1eb3 05/22/2012 05:51 pm Sofia Papagiannaki

change API calls to include public objects in shared by me

Refs: #2394

dcffd53e 04/10/2012 07:06 pm Antony Chazapis

Solve OOS API compatibility problems.

Fixes #2300

b3155065 04/03/2012 10:48 am Antony Chazapis

Add dispatcher function for updating object checksums asynchronously.

Refs #1792

8efd183f 04/03/2012 01:46 am Antony Chazapis

Make checksum updates optional.

Refs #1792

64b6bc45 03/16/2012 02:54 pm root

Fix.

ce2a2ef0 03/16/2012 02:24 pm Antony Chazapis

Use cookie to get token when retrieving objects.

6e147ecc 02/23/2012 03:11 pm Antony Chazapis

Remove lib package.

88353602 02/22/2012 12:36 pm Kostas Papadimitriou

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...

969b4262 01/26/2012 01:24 pm Kostas Papadimitriou

Merge branch 'master' into packaging

Conflicts:
pithos/__init__.py

6c8595a5 01/23/2012 06:35 pm Kostas Papadimitriou

Merge branch 'master' into packaging

ab0982ad 01/23/2012 03:34 pm Kostas Papadimitriou

Merge branch 'master' into packaging

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

8c306eab 01/17/2012 06:42 pm Kostas Papadimitriou

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