Skip to content

MDM throws nonsensical error when updating resources after $mdm-clear #4968

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jdar8 opened this issue Jun 7, 2023 · 0 comments · Fixed by #4975
Closed

MDM throws nonsensical error when updating resources after $mdm-clear #4968

jdar8 opened this issue Jun 7, 2023 · 0 comments · Fixed by #4975

Comments

@jdar8
Copy link
Collaborator

jdar8 commented Jun 7, 2023

Describe the bug
This issue requests better error handling for an invalid condition: an $mdm-clear, no $mdm-submit, and updating existing resources.
The $mdm-clear operation "is intended to be used during the rules-tuning phase of the MDM implementation" which typically involves performing a $mdm-clear, tuning rules, then a $mdm-submit. If an update to an existing resource is performed after the $mdm-clear, but before the $mdm-submit, there will be a NullPointerException.

To Reproduce
Steps to reproduce the behavior:

  1. Post mdm bundle
  2. Perform $mdm-clear
  3. Post the bundle again (with some edits to make it slightly different)

Expected behavior
Better error handling in this edge case scenario where a resource is updated between a $mdm-clear and $mdm-submit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant