We shouldnt throw a ValidationException on empty dynamodb key. Closes #1505.

This commit is contained in:
Steve Pulec 2018-04-14 11:16:43 -04:00
commit 783504c897
2 changed files with 28 additions and 2 deletions

View file

@ -161,8 +161,7 @@ class DynamoHandler(BaseResponse):
name = self.body['TableName']
item = self.body['Item']
res = re.search('\"\"', json.dumps(item))
if res:
if any(list(param.values())[0] == '' for param in item.values() if isinstance(param, dict)):
er = 'com.amazonaws.dynamodb.v20111205#ValidationException'
return (400,
{'server': 'amazon.com'},