A mock DynamoDB that runs locally for testing purposes - DEPRECATED, PLEASE USE DYNAMODB LOCAL: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.html
Apache License 2.0
78
stars
39
forks
source link
Attributes comparison in AlternatorDBHandler doesn't work #72
There seems to be a wrong pattern here, because item.get(key) produces an AttributeValue which is then compared to an unwrapped value (e.g. String), so equals() always fails.
AlternatorDBHandler.java:424
(value.getValue().getN() != null && !item.get(key).equals(value.getValue().getN())) || (value.getValue().getS() != null && !item.get(key).equals(value.getValue().getS())) || (value.getValue().getNS() != null && !item.get(key).equals(value.getValue().getNS())) || (value.getValue().getSS() != null && !item.get(key).equals(value.getValue().getSS()))
There seems to be a wrong pattern here, because item.get(key) produces an AttributeValue which is then compared to an unwrapped value (e.g. String), so equals() always fails.