Hello, Stackers.

    I’d like to gather Trove team around question related to
Datastores/Version API responses (request/response payloads and HTTP codes).

    Small INFO

When deployer creates datastore and versions for it Troves` backend
receives request to store DBDatastore and DBDatastoreVersion objects with
certain parameters. The most interesting attribute of DBDatastoreVersion is
“packages” - it’s being stored as String object (and it’s totally fine).
But when we’re trying to query given datastore version through the
Datastores API attribute “packages” is being returned as String object too.
And it seems that it breaks response pattern - “If given attribute
represents complex attribute, such as: list, dict, tuple - it should be
returned as is.

So, the first question is - are we able to change it in terms of V1?

The second question is about admin_context decorator (see [1]). This method
executes methods of given controller and verifies that user is able to
execute certain procedure.

    Taking into account RFC 2616 this method should raise HTTP Forbidden
(code 403) if user tried to execute request that he’s not allowed to.

    But given method return HTTP Unauthorized (code 401) which seems weird
since user is authorized.

    This is definitely a bug. And it comes from [2].



Best regards,

Denis Makogon
OpenStack-dev mailing list

Reply via email to