Invalid response on put_item with few attributes of type "B"

Bug #1298613 reported by Oleksandr Minakov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MagnetoDB
Fix Released
High
Dmitriy Ukhlov

Bug Description

22:49:17,184 Request: POST http://127.0.0.1:8080/v1/testtenantid/data/tables
22:49:17,184 Request Headers: {'Content-Type': 'application/json', 'Accept': 'application/json'}
22:49:17,184 Request Body: {"key_schema": [{"key_type": "HASH", "attribute_name": "message"}], "table_name": "testtempest1270980185", "attribute_definitions": [{"attribute_type": "B", "attribute_name": "message"}]}
22:49:17,628 Response Status: 200
22:49:17,628 Response Headers: {'date': 'Thu, 27 Mar 2014 20:49:17 GMT', 'content-length': '563', 'content-type': 'application/json'}
22:49:17,628 Response Body: {"table_description": {"key_schema": [{"key_type": "HASH", "attribute_name": "message"}, {"key_type": "RANGE", "attribute_name": null}], "creation_date_time": 0, "links": [{"href": "http://127.0.0.1:8080/v1/testtenantid/data/tables/testtempest1270980185", "rel": "self"}, {"href": "http://127.0.0.1:8080/v1/testtenantid/data/tables/testtempest1270980185", "rel": "bookmark"}], "table_name": "testtempest1270980185", "table_size_bytes": 0, "table_status": "ACTIVE", "attribute_definitions": [{"attribute_type": "B", "attribute_name": "message"}], "item_count": 0}}
22:49:17,629 Request: POST http://127.0.0.1:8080/v1/testtenantid/data/tables/testtempest1270980185/put_item
22:49:17,629 Request Headers: {'Content-Type': 'application/json', 'Accept': 'application/json'}
22:49:17,629 Request Body: {"item": {"message": {"B": "blob"}, "blob": {"B": "tyui"}, "author": {"B": "qwer"}}}
22:49:17,635 Response Status: 500
22:49:17,636 Response Headers: {'date': 'Thu, 27 Mar 2014 20:49:17 GMT', 'content-length': '149', 'content-type': 'application/x-amz-json-1.0'}
22:49:17,636 Response Body: {"__type":"com.amazonaws.dynamodb.v20111205#InternalServerError","message":"The server encountered an internal error trying to fulfill the request."}

Expected response status 200, expected response body {}.

Tags: data-api
description: updated
Changed in magnetodb:
importance: Undecided → Medium
milestone: none → 2.0.2
tags: added: data-api
Changed in magnetodb:
milestone: 2.0.2 → 2.0.3
Changed in magnetodb:
milestone: 2.0.3 → 2.0.4
Changed in magnetodb:
importance: Medium → High
Changed in magnetodb:
milestone: 2.0.4 → 2.0.5
Dmitriy Ukhlov (dukhlov)
Changed in magnetodb:
assignee: nobody → Dmitriy Ukhlov (dukhlov)
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/95180

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

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

commit f5f0e20cae0f9436c09b0f0e9f0929d3e3cd1080
Author: Dmitriy Ukhlov <email address hidden>
Date: Fri May 23 17:53:24 2014 +0300

    Fix put item with blob attr test

    Also a lot of put item tests were moved to stable branch

    Change-Id: I7288fa1b58dac1b6277956806617114805974b79
    Closes-Bug: #1298613

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.