Invalid response on get_item with empty or not full key

Bug #1290878 reported by Andrii Ostapenko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MagnetoDB
Fix Released
Low
Illia Khudoshyn

Bug Description

If we send get_item request with empty or not full key dict we are expecting ValidationException, but no error raises, server returns empty dict
Request data:
paws: DEBUG: Data: {"TableName": "testtempest1703446958", "Key": {}}

Server returns:
paws: DEBUG: Saw HTTP status: 200
paws: DEBUG: {}

Tags: dynamodb-api
Revision history for this message
Ilya Sviridov (isviridov) wrote :

Could you please provide exact server response?

description: updated
description: updated
Revision history for this message
Andrii Ostapenko (aostapenko) wrote :

Request data:
paws: DEBUG: Data: {"TableName": "testtempest1703446958", "Key": {}}

Server returns:
paws: DEBUG: Saw HTTP status: 200
paws: DEBUG: {}

description: updated
description: updated
tags: added: dynamodb-api
Changed in magnetodb:
milestone: none → 2.0.1
importance: Undecided → Medium
Changed in magnetodb:
importance: Medium → Low
milestone: 2.0.1 → 2.0.2
Changed in magnetodb:
milestone: 2.0.2 → 2.0.3
Changed in magnetodb:
milestone: 2.0.3 → 2.0.4
Changed in magnetodb:
milestone: 2.0.4 → next
Changed in magnetodb:
milestone: next → none
Changed in magnetodb:
assignee: nobody → Illia Khudoshyn (ikhudoshyn)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to magnetodb (master)

Fix proposed to branch: master
Review: https://review.openstack.org/130224

Changed in magnetodb:
status: New → In Progress
Changed in magnetodb:
milestone: none → kilo-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to magnetodb (master)

Reviewed: https://review.openstack.org/130224
Committed: https://git.openstack.org/cgit/stackforge/magnetodb/commit/?id=495e1bfa4d88b447f8beab8d354ee72c0fdc2b05
Submitter: Jenkins
Branch: master

commit 495e1bfa4d88b447f8beab8d354ee72c0fdc2b05
Author: Illia Khudoshyn <email address hidden>
Date: Wed Oct 22 16:51:24 2014 +0300

    Validate get_item for presence of a range key

    Raise ValidationError if table schema has a range key
    and get_item request misses a value for the range key

    Change-Id: Iff3d72f0539e503476feb1e7400242057abc2e3d
    Fixes-bug: 1290878

Changed in magnetodb:
status: In Progress → Fix Committed
Changed in magnetodb:
status: Fix Committed → Fix Released
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.