Skip to content
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

fix file backend pushinfo retrieval #135

Merged
merged 2 commits into from
Jul 16, 2024

Conversation

jessepeterson
Copy link
Member

The file storage backend was returning an error when retrieving push info from a non-existent or improperly enrolled device (i.e. missing TokenUpdate message). However given that the push info retriever shouldn't error for a single enrollment like that (in case there are multiple) we now mask that error. Also add a regression test for this.

//
// If an ID does not exist or is not enrolled properly then
// implementations should silently skip returning any push data for
// them. It is up to the caller to discern any missing IDs from the

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How would one discern this is the case? Does this make it more obvious or less obvious what is going in from the consumer perspective?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The caller would need to compare the input set of IDs to the returned (output) set of IDs to see what's missing or different. This is how the MySQL backend works, fwiw.

@jessepeterson jessepeterson merged commit 5c66c9d into micromdm:main Jul 16, 2024
9 checks passed
@jessepeterson jessepeterson deleted the fix-file-pushinfo branch July 16, 2024 04:52
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 this pull request may close these issues.

2 participants