[proxy] storage: storage fields overspecified

Bug #1230390 reported by Allele Dev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
zaqar
Fix Released
Undecided
Unassigned

Bug Description

In the marconi/proxy/storage implementation for mongodb, the field specifiers for query results are unnecessary specific. A fix to this bug would omit what wasn't necessary using the strategy given below.

Schema fields overspecified - use {'_id': 0} instead. Example of current state:

```python
fields = {'p': 1, 'q': 1, 'n': 1, 'h': 1, 'm': 1, '_id': 0}
```

Allele Dev (alleledev)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to marconi (master)

Reviewed: https://review.openstack.org/50305
Committed: http://github.com/openstack/marconi/commit/cb408d8d01757ab8929fb007db41c1f76d2cbe47
Submitter: Jenkins
Branch: master

commit cb408d8d01757ab8929fb007db41c1f76d2cbe47
Author: Alejandro Cabrera <email address hidden>
Date: Tue Oct 8 07:58:12 2013 -0400

    fix: proxy mongodb storage fields overspecified

    It's unnecessary to specify all the fields that should be returned by
    a mongodb query, because by default, it will return all the
    fields. This patch makes it so that only the '_id' field is mentioned
    specifically, and that's because we don't want it leaking into the
    transport layer.

    Change-Id: Ib59e551b0c85f2972de86baeaa2c7e65738a9a47
    Closes-Bug: 1230390

Changed in marconi:
status: New → Fix Committed
Thierry Carrez (ttx)
Changed in marconi:
milestone: none → icehouse-1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in marconi:
milestone: icehouse-1 → 2014.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.