History | View | Annotate | Download (14.9 kB)
plankton: Handle a potential 500 error in plankton
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 andthen decoding them to Unicode objects using 'utf-8' encoding. Image keys...
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 notappropriate for Cyclades API. We explicitly use 'smart_unicode' and...
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 amore represenative name for what the function is doing.
cyclades: Fix numerous bugs in plankton views
plankton: Fix wrong import
s/lib/util
plankton: Validate parameters and catch assertions
cyclades: Check if the name of an image is null
wheezy: Rename depricated HttpRequest attribute
From django docs:""" HttpRequest.raw_post_data renamed to HttpRequest.body
This attribute was confusingly named HttpRequest.raw_post_data, but itactually provided the body of the HTTP request. It’s been renamed to...
plankton: Cleanup and improve code
Improve performance in listing images
Use '_get_domain_objects' function of Pithos backend, to list allobjects in a 'plankton' domain, instead of looping over all accessibleaccounts, containers and objects. This function also returns metadataand permissions for each object in order to avoid two extra calls for...
plankton: raise BadRequest for invalid location
Modify 'add_image' plankton API method, to check that location parameteris a valid Pithos url, and raise BadRequest if not.
Move common test code to snf_django.lib.testing
Use the common 'api_method' decorator in plankton
Use the common 'api_method' decorator in all plankton API methods.Modify the 'plankton_method' decorator to only create and closethe ImageBackend.
Delete Image without deleting file from Pithos
Until now, deleting an image resulted in deletion of the correspondingfile from Pithos. Plankton Images are files in Pithos with specialmetadata on the 'plankton' metadata domain. Adding an Image to plankton...
Fix pep8 warnings
plankton: Handle correctly request filters
Make sure that when listing public images plankton verifies thatsize_max and size_min req filters are integers, and return a BadRequest response otherwise.
Make Plankton API return all available images
Modify Plankton API, such that GET to /images/ retrieves a list ofavailable images that the authenticated user has access to. Thisincludes images owned by the user, images shared with the user andpublic images.
Fix white space
Extend Plankton API with shared-images
Extend Plankton API, to support listing all non-public images thatare available to the user. This can be done by issuing a GET toshared-images/ and shared-images/detail.
Switch to the logging middleware
Unquote header names and values
Renamed snf-app to snf-cyclades-app