More validation for update item
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MagnetoDB |
New
|
Undecided
|
Unassigned |
Bug Description
The schema looks like:
https:/
The put request looks like:
https:/
We don't allow to modify primary key fields in a update item. So ideally the primary key fields should not be allowed at all in 'attribute_updates' field. Even if they are allowed there should be a check whether they are the same as the values in 'key' field. I would call it a logic bug also the reason of which is clear from the second query run by C*. Had there been a row with key as (b,1), it would be modified instead of the key queried for.
The first C* query run is:
SELECT * FROM "u_default_
The second C* query run is:
UPDATE "u_default_
issues' AND dyn_attr_
istency=QUORUM