Project

General

Profile

Bug #64773

Disallow unrecognised keys in datastore insert/update

Added by Waqar Ahmed 7 months ago. Updated 5 months ago.

Status:
Ready for Testing
Priority:
No priority
Assignee:
Waqar Ahmed
Category:
Middleware
Target version:
Severity:
High
Reason for Closing:
Reason for Blocked:
Needs QA:
Yes
Needs Doc:
No
Needs Merging:
No
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

We should raise an appropriate error message if a key is sent to datastore service insert/update and it isn't recognised by the model in question

Risk
We risk breaking datastore insert/update functionality and more importantly all services which might be sending keys which are not recognised by their datastore model

Acceptance Criteria
The following services were affected by this change and we should ensure that updating/adding data to them is not affected.
Accounts
Cloud Sync
Crypto
Iscsi
Snapshot
Replication
System Dataset

However, we should still test all aspects of the system which interact with the database in term of adding/updating resources. That would mean essentially testing the whole system to ensure that it is not affected by this change.

Associated revisions

Revision e7002b50 (diff)
Added by Waqar Ahmed 6 months ago

Throw validation errors for incorrect keys in datastore

This commit introduces validation to the datastore service ensuring that no such key is passed to insert/update which does not belong to the respective model.
Ticket: #64773

Revision 0d0c4a68 (diff)
Added by Waqar Ahmed 6 months ago

Throw validation errors for incorrect keys in datastore

This commit introduces validation to the datastore service ensuring that no such key is passed to insert/update which does not belong to the respective model.
Ticket: #64773

Revision 4f89d6e8 (diff)
Added by Waqar Ahmed 6 months ago

Raise validation errors for incorrect keys in datastore service

This commit introduces validation to the datastore service ensuring that no such key is passed to insert/update which does not belong to the respective model.
Ticket: #64773

Revision 2d29b4b3 (diff)
Added by Waqar Ahmed 6 months ago

Disallow invalid keys in datastore insert/update (#2401)

Raise validation errors for incorrect keys in datastore service

This commit introduces validation to the datastore service ensuring that no such key is passed to insert/update which does not belong to the respective model.
Ticket: #64773

History

#1 Updated by Waqar Ahmed 6 months ago

  • Status changed from Not Started to In Progress

#2 Updated by Waqar Ahmed 6 months ago

  • Description updated (diff)
  • Status changed from In Progress to Ready for Testing

#3 Updated by Dru Lavigne 6 months ago

  • Needs Doc changed from Yes to No
  • Needs Merging changed from Yes to No

#4 Updated by Dru Lavigne 6 months ago

  • Target version changed from 11.3 to 11.3-BETA1

Also available in: Atom PDF