table name can not contain '.' and '-' symbols

Bug #1298816 reported by Andrii Ostapenko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MagnetoDB
New
Low
Unassigned

Bug Description

Now table name can not contain '.' and '-' symbols. However AWS says: “For table and secondary index names, allowed characters are a-z, A-Z, 0-9, '_' (underscore), '-' (dash), and '.' (dot).

2014-03-28 07:10:46,895 Request: POST http://localhost:8480/v1/default_tenant/data/tables
2014-03-28 07:10:46,896 Request Headers: {'Content-Type': 'application/json', 'Accept': 'application/json'}
2014-03-28 07:10:46,896 Request Body: {"key_schema": [{"key_type": "HASH", "attribute_name": "forum"}, {"key_type": "RANGE", "attribute_name": "subject"}], "table_name": "Aa5-._", "attribute_definitions": [{"attribute_type": "S", "attribute_name": "forum"}, {"attribute_type": "S", "attribute_name": "subject"}]}
2014-03-28 07:10:46,904 Response Status: 500
2014-03-28 07:10:46,905 Response Headers: {'date': 'Fri, 28 Mar 2014 07:10:46 GMT', 'content-length': '149', 'content-type': 'application/x-amz-json-1.0'}
2014-03-28 07:10:46,905 Response Body: {"__type":"com.amazonaws.dynamodb.v20111205#InternalServerError","message":"The server encountered an internal error trying to fulfill the request."}

On server side:
2014-03-28 07:10:46.903 23596 ERROR magnetodb.storage.impl.cassandra_impl [-] Table Aa5-._ creation failed.
2014-03-28 07:10:46.903 23596 ERROR magnetodb.storage.impl.cassandra_impl [-] Error executing query CREATE TABLE "default_tenant"."user_Aa5-._" ( "user_forum" text,"user_subject" text, "system_attrs" map<text, blob>, "system_attr_types" map<text, text>, "system_attr_exist" set<text>, system_hash text, PRIMARY KEY ("user_forum","user_subject")):code=2200 [Invalid query] message=""user_Aa5-._" is not a valid column family name (must be alphanumeric character only: [0-9A-Za-z]+)"

Changed in magnetodb:
importance: Undecided → Low
milestone: none → 2.0.4
tags: added: data-api validation
Changed in magnetodb:
milestone: 2.0.4 → next
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.