Statistics
| Branch: | Tag: | Revision:

root / snf-pithos-app / pithos / api / util.py @ 8c7e1398

History | View | Annotate | Download (46 kB)

# Date Author Comment
8c7e1398 02/03/2014 06:25 pm Sofia Papagiannaki

pithos: Retain query parameters during view authorization code grant.

Include view query parameters in the Redirection Endpoint

1d2af25c 02/03/2014 06:25 pm Sofia Papagiannaki

pithos: Optionally open object's content inline in the browser.

Refs: #5019

ec6f741b 12/23/2013 02:00 pm Sofia Papagiannaki

pithos: Reduce astakosclient instances

Use backend astakosclient instance to query the account quotas.

ae73cdc0 12/10/2013 04:22 pm Sofia Papagiannaki

pithos: Fix view issue with unicode paths

4bf0ab85 12/05/2013 03:22 pm Sofia Papagiannaki

pithos: Rename setting

Change PITHOS_SERVE_API_DOMAIN to PITHOS_UNSAFE_DOMAIN

e7f0ec5e 12/04/2013 06:58 pm Sofia Papagiannaki

pithos: Code simplification

256213e4 12/03/2013 09:47 pm Sofia Papagiannaki

pithos: Remove assigned but never used variable

46662ee6 12/03/2013 09:47 pm Kostas Papadimitriou

pithos: Restrict file serving endpoints to a specific host

Introduce new setting ``PITHOS_SERVE_API_DOMAIN``. When set, all api views
that serve pithos file contents will be restricted to be served only under
the domain specified in the setting value.

fe7d0186 12/03/2013 09:47 pm Sofia Papagiannaki

astakos oa2: rename settings and url prefixes

Change setting and url prefixes from `oa2` to
`oauth2`

798143d9 12/03/2013 09:47 pm Sofia Papagiannaki

pithos: Add missing import

b32183c6 12/03/2013 09:47 pm Sofia Papagiannaki

pithos views: In case of invalid access token request a new one

Instead of raising PermissionDenied redirect to the
object view url to re-initiate the procedure
for acquiring a new access token.

fcd85f90 12/03/2013 09:47 pm Sofia Papagiannaki

pithos views: Fix astakos authorization endpoint url

The astakos authorization endpoint url should be an absolute url.

8f2eb016 12/03/2013 09:44 pm Sofia Papagiannaki

pithos: Change pithos views authorization/authentication

Pithos views no longer use the information stored in
the PITHOS_ASTAKOS_COOKIE_NAME cookie
for authenticating the user and authorizing access to the
targeted resource.
They acquire, instead, from the authentication server (astakos)...

5ae33f6c 12/03/2013 09:44 pm Sofia Papagiannaki

pithos: Minor changes in view decorator

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

snf-pithos-app: Use the new AstakosClient

3dce76b5 10/29/2013 01:49 pm Sofia Papagiannaki

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

77582ddd 10/03/2013 05:36 pm Nanakos Chrysostomos

Merge branch 'feature-pithos-performance-optimizations' into develop

87835e94 10/02/2013 11:27 pm Nanakos Chrysostomos

pithos: Fix timestamps

f5ff1d1e 09/23/2013 07:36 pm Sofia Papagiannaki

pithos: Change error handling in views

The view_method decorator used to check the response status:
in case of unexpected response used to return
Internal Server Error (500).
This commit changes this behavior and
the view_method decorator returns whatever the api_method decorator...

d47565d8 09/12/2013 01:09 pm Build Bot

Revert "pithos: Use pithos backend as context manager"

This reverts commit 23b41f6fefa1a066748810c4642e58e18a4b83f9.

23b41f6f 09/12/2013 11:06 am Sofia Papagiannaki

pithos: Use pithos backend as context manager

Substitue pre_exec() and post_exec()

d4e4e501 07/25/2013 12:46 pm Christos Stavrakakis

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

8198fe61 07/24/2013 03:53 pm Sofia Papagiannaki

pithos: Pass full path of the next parameter in view redirect

a421e0b9 07/19/2013 01:28 pm Sofia Papagiannaki

pithos: Update view_method decorator

  • If no token found in the cookie redirect to astakos login
    with next parameter pointing to the request path
  • Extend the list of the valid response statuses
  • If no expected response status is received, pass to the raised...
48c5b124 07/18/2013 07:58 pm Sofia Papagiannaki

pithos: Update view_method decorator

  • If no token found in the cookie redirect to astakos login
    with next parameter pointing to the request path
  • Extend the list of the valid response statuses
  • If no expected response status is received, pass to the raised...
29148653 07/17/2013 11:41 am Sofia Papagiannaki

pithos: pep8 fixes

3248f20a 07/10/2013 04:37 pm Sofia Papagiannaki

pithos: Handle backend transaction management

In commit 9f135224edf6e50386dc29e0a35806a92c56a50c
the transaction management has been moved
from the pithos backend to pithos frontend.
This commit updates all modules use pithos backend
to handle transactions manually.

cc62d2ab 07/05/2013 06:53 pm Sofia Papagiannaki

pithos: Cleanup api_method code

74cbb94a 07/05/2013 05:35 pm Sofia Papagiannaki

pithos: Optionally deactivate backend pooling

This is useful because the ``pithos.backends.lib.sqlite``
backend module is not compatible with pooling.

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

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

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

369a7b41 07/02/2013 04:53 pm Sofia Papagiannaki

pithos: Change block size by configuration

This is useful for testing corner cases efficiently.

ff0beb64 07/02/2013 04:23 pm Sofia Papagiannaki

pithos: move transaction managment and quotaholder sync in frontend

Remove backend_method decorator and move logic in the pithos api method

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

4d244f4a 06/25/2013 08:20 pm Sofia Papagiannaki

pithos: Fix partial content responses

Refs: #4063

9f135224 06/19/2013 04:24 pm Sofia Papagiannaki

pithos: move transaction managment and quotaholder sync in frontend

Remove backend_method decorator and move logic in the pithos api method

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

pithos: introduce lock_container_path api_method argument

b5aeeb2f 06/18/2013 06:50 pm Kostas Papadimitriou

pithos-app: Update pithos.api.util.api_method wrapper

to match the updated snf_django api_method decorator

d823a562 06/18/2013 06:48 pm Kostas Papadimitriou

pithos-api: Update api_method wrapper

8e95eb05 06/12/2013 06:56 pm Sofia Papagiannaki

pithos: HEAD object request returned erroneous content type

According to commit: b698d39dd6cbe4bf47b63ed0d6a98b9b126ca40e
views defining their response 'Content-Type' should set the
'override_serialization' attribute of response to 'True'.
However, this was missing in the specific view....

cc1f91ad 06/11/2013 04:52 pm Sofia Papagiannaki

pithos: Fix X-Object-Public object header

Utilize settings.PITHOS_BASE_HOST instead of settings.PITHOS_BASE_URL
to construct the header value

d2d09227 06/11/2013 03:52 pm Sofia Papagiannaki

pithos: refine error handling in object_read view

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

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

pithos: fix public api

Pithos public api was broken since the pithos api decorator
used to call the common api decorator without passing the
``token_required`` optional argument (default to True).
As a result, all the requests failed with 401 Unauthorized status....

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

pithos: change X-Object-Public header

The header value should contain the absolute public url

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

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

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

02de6286 05/15/2013 06:18 pm Sofia Papagiannaki

pithos: change resource usage retrieval

Replace ``astakosclient.get_info()`` with ``astakosclient.get_quotas()``

93d963c4 05/01/2013 12:15 pm Sofia Papagiannaki

Merge branch 'feature-quotas-pithos' into feature-quotas

Conflicts:
snf-cyclades-app/synnefo/plankton/backend.py
snf-pithos-app/README
snf-pithos-app/pithos/api/util.py

16f2673e 05/01/2013 12:00 pm Sofia Papagiannaki

pithos: Rename backend quotaholder properties

Refer to astakosclient instead of quotaholder

b17e5550 05/01/2013 12:00 pm Giorgos Korfiatis

WIP astakosclient for quotas in pithos

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

snf-pithos-app: Use astakosclient

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

PEP8 style fixes

19ddd41b 04/17/2013 06:17 pm Sofia Papagiannaki

Change pithos default container policy quota to unlimited

Refs: #3543

  • Substitute the PITHOS_BACKEND_QUOTA setting with two
    distinct settings: PITHOS_BACKEND_ACCOUNT_QUOTA &
    PITHOS_BACKEND_CONTAINER_QUOTA
  • Set PITHOS_BACKEND_CONTAINER_QUOTA default value...
47ef53d5 04/15/2013 05:17 pm Christos Stavrakakis

Make 'api_method' to take astakos_url as argument

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

f0001470 04/11/2013 11:34 am Christos Stavrakakis

Merge branch 'feature-snf-django' into develop

Conflicts:
docs/older/Changelog.pithos-app
snf-astakos-app/astakos/im/api/__init__.py
snf-pithos-app/pithos/api/util.py

61c5b615 04/08/2013 07:10 pm Sofia Papagiannaki

Make pithos backend pool size configurable

Refs: #3561

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

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

896754a6 04/08/2013 11:07 am Christos Stavrakakis

Move parsedate module to snf_django

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

4a105ce2 03/28/2013 05:21 pm Sofia Papagiannaki

Change pithos public URL implementation

Refs: commit: 56f3c759

Do not include encoded serial in the public URL.

Change PITHOS_PUBLIC_URL_MIN_LENGTH setting to
PITHOS_PUBLIC_URL_SECURITY.

Log public set/unset functions.

56f3c759 03/27/2013 06:51 pm Sofia Papagiannaki

Change pithos public implementation

Public URLs should consist of a random part.
A public URL should be unique and should not be
equal to any deleted public URL.
Finally publishing a public object has no effect.
Therefore, to generate a new public URL for an...

7273ee62 03/19/2013 11:22 am Sofia Papagiannaki

Fix pithos get object metadata response headers

X-Object-Modified-By header was accidentally
eliminated in the response

f5a1e653 03/15/2013 01:53 pm Sofia Papagiannaki

Clear pithos InternalServerError response

Do not include in the InternalServerError response
the actual error.

b336e6fa 03/11/2013 06:18 pm Georgios D. Tsoukalas

Fix+move HTTP quotaholder client in synnefo.lib

Allow per-service configuration of the (http) quotaholder client.
Kamaki is no longer needed in service (or ganeti) nodes,
because the client has been moved to snf-common.

Also fix the default quotaholder settings for pithos backend to be disabled...

1f3f907f 02/19/2013 12:00 pm Sofia Papagiannaki

Explicitly enabled/disable pithos quotaholder component

Use PITHOS_USE_QUOTAHOLDER setting

4a9e3f32 02/14/2013 04:28 pm Sofia Papagiannaki

Fix pithos sharing translation

Perform only one split to separate group owner from name

0325be55 02/14/2013 04:27 pm Sofia Papagiannaki

Check for None in is_uuid

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

ui compatibility: translate uuids to display names

2150482f 02/14/2013 04:26 pm Sofia Papagiannaki

Fix get_user argument

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

Catch quota errors in pithos server

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``
b8098f77 01/16/2013 02:47 pm Sofia Papagiannaki

Debit pithos object owner not the request user

2042a902 01/16/2013 12:57 pm Sofia Papagiannaki

Fix get_pithos_usage if no usage is returned by astakos.

a9420179 01/15/2013 05:04 pm Sofia Papagiannaki

Fix syntax error

7f1f0464 01/15/2013 04:46 pm Georgios D. Tsoukalas

fix radosblocker merge, fix some tabs/whitespace

7dc78140 01/15/2013 04:01 pm Sofia Papagiannaki

Merge branch 'radosblocker' of https://code.grnet.gr/git/pithos into latest-quota

Conflicts:
snf-pithos-app/pithos/api/util.py
snf-pithos-backend/pithos/backends/modular.py
snf-pithos-backend/pithos/backends/util.py

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

9839cc96 01/07/2013 03:47 pm root

Check whether account is already uuid before transforming

874cddc7 01/07/2013 01:46 pm Sofia Papagiannaki

Catch correct Exception

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

Change pithos sharing to work with account uuids

3173699c 12/20/2012 10:41 am Sofia Papagiannaki

Pithos backend should send the token to the quotaholder

019d9e19 12/20/2012 02:54 am Sofia Papagiannaki

Pithos issue_commission using user uuid instead of id

b3102a96 12/19/2012 07:37 pm Sofia Papagiannaki

Fix pithos api_method

bf45cb4a 12/14/2012 04:22 pm Sofia Papagiannaki

Merge branch 'dev' of https://code.grnet.gr/git/pithos into latest-quota

Conflicts:
.gitignore
devtools/fabfile.py
snf-pithos-app/pithos/api/util.py

83feb574 12/14/2012 04:04 pm Sofia Papagiannaki

Fix pithos api_method assertions

d62295ba 12/14/2012 03:26 pm Sofia Papagiannaki

Merge branch 'projects' of https://code.grnet.gr/git/astakos into latest-quota

Conflicts:
.gitignore
snf-astakos-app/conf/20-snf-astakos-app-settings.conf

2492a42c 11/26/2012 03:27 pm Filippos Giannakos

Merge remote-tracking branch 'origin/dev' into radosblocker

Conflicts:
snf-pithos-app/pithos/api/util.py
snf-pithos-backend/pithos/backends/lib/hashfiler/blocker.py
snf-pithos-backend/pithos/backends/lib/hashfiler/mapper.py
snf-pithos-backend/pithos/backends/modular.py...

47462eda 11/26/2012 02:46 pm Filippos Giannakos

make rados storage configurable

8313c681 11/12/2012 12:44 pm root

Merge branch 'dev' of https://code.grnet.gr/git/pithos into dev

Conflicts:
snf-pithos-app/pithos/api/util.py
snf-pithos-backend/pithos/backends/modular.py

b1dadd0e 11/09/2012 08:04 pm Sofia Papagiannaki

By default report size change in object delete/update (do not include older version size)