Statistics
| Branch: | Tag: | Revision:

root / snf-cyclades-app / synnefo / plankton @ 4e571185

Name Size
  management
__init__.py 0 Bytes
backend.py 21.5 kB
models.py 0 Bytes
tests.py 11.4 kB
urls.py 3.4 kB
utils.py 2.2 kB
views.py 14.9 kB

Latest revisions

# Date Author Comment
4e571185 02/25/2014 03:01 pm Dionysis Grigoropoulos

plankton: Handle a potential 500 error in plankton

  • Catch a potential 500 error, when registering a file as an Image, while
    trying to decode "Image name" into unicode.
  • Add corresponding test case
8c911970 02/24/2014 01:14 pm Christos Stavrakakis

cyclades: s/BaseCommand/SynnefoCommand

Replace use of BaseCommand with SynnefoCommand which will convert the
arguments/options to unicode objects.

a4e9c19c 02/21/2014 04:11 pm Christos Stavrakakis

plankton: Fix handling of HTTP headers

Handle properly image properties that are passed through HTTP headers.
We convert the request headers to image properties by unquoting them and
then decoding them to Unicode objects using 'utf-8' encoding. Image keys...

df455d57 02/21/2014 04:05 pm Christos Stavrakakis

cyclades: Replace 'uenc' with 'smart_unicode'

Replace use of 'synnefo.util.text.uenc' function with
'django.utils.encoding.smart_unicode'.

'uenc' function depends on the locale category LC_CTYPE, which is not
appropriate for Cyclades API. We explicitly use 'smart_unicode' and...

5a6cee09 02/21/2014 04:05 pm Christos Stavrakakis

snf_django: Handle unicode errors in JSON bodies

Catch unicode errors when JSON deserializing the body of a request.
Also, rename 'get_request_dict' function to 'get_json_body', as it is a
more represenative name for what the function is doing.

54d26a27 01/30/2014 12:13 pm Dionysis Grigoropoulos

cyclades: Fix numerous bugs in plankton views

  • Check if the user specified an invalid disk/container format when
    registering an image.
  • Check if the user provided a valid disk/container format when
    updating a registered image.
  • Check if the user provided an image ID when registering/updating an...
606837c6 01/29/2014 03:43 pm Christos Stavrakakis

plankton: Fix wrong import

s/lib/util

78fa9134 01/29/2014 03:24 pm Christos Stavrakakis

plankton: Validate parameters and catch assertions

d58ea30a 01/29/2014 01:41 pm Christos Stavrakakis

plankton: Fix storing of image properties

Image properties where stored all together as one metadata (JSON dumped
string). This caused problems with the maximum allowed length of for a
metadata value. This commit fixes this by storing each property as a
separate metadata which is prefixed with the 'PROPERTY_PREFIX'.

0efb43cd 01/29/2014 01:41 pm Christos Stavrakakis

plankton: Validate meta key/value length

Fail with BadRequest if length of metadata key or value is not valid.

View revisions

Also available in: Atom