500 error on trying to create table with attribute definition without attribute type

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

Bug Description

2014-10-28 14:17:13,142 Request: POST http://192.168.122.100:8480/v1/c6258aee9f2e4c88afe6028af67a8bc6/data/tables
2014-10-28 14:17:13,143 Request Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '1437578463044c55a064824fa27414f0'}
2014-10-28 14:17:13,143 Request Body: {"key_schema": [{"key_type": "HASH", "attribute_name": "test"}], "table_name": "testtempest1304998517", "attribute_definitions": [{"attribute_name": "test"}]}
2014-10-28 14:17:13,160 Response Status: 500
2014-10-28 14:17:13,161 Response Headers: {'date': 'Tue, 28 Oct 2014 14:17:13 GMT', 'content-length': '219', 'content-type': 'application/json', 'connection': 'close, close'}
2014-10-28 14:17:13,161 Response Body: {"explanation": "The server has either erred or is incapable of performing the requested operation.", "code": 500, "error": {"message": "", "traceback": null, "type": "AssertionError"}, "title": "Internal Server Error"}

Expected error code: 400

Tags: data-api
tags: added: data-api
Changed in magnetodb:
milestone: none → kilo-1
importance: Undecided → Medium
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/132219

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/132219
Committed: https://git.openstack.org/cgit/stackforge/magnetodb/commit/?id=9da7234e71c28570aa6fbfa5d4eb83ab67a669b6
Submitter: Jenkins
Branch: master

commit 9da7234e71c28570aa6fbfa5d4eb83ab67a669b6
Author: Illia Khudoshyn <email address hidden>
Date: Fri Oct 31 13:35:32 2014 +0200

    Raise ValidationError if attribute type is missing

    Change-Id: I92c88f6ee50183a6f2c36cf370dd4b15e56a227c
    Closes-Bug: #1386717

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