Fix analytics publishing for Windows devices #240

Merged
pahansith merged 1 commits from navodzoysa/device-mgt-core:fix-windows-analytics into master 1 year ago
Collaborator

Purpose

Fixes https://roadmap.entgra.net/issues/10375

Changes

  • Check if the username taken from CarbonContext is not null and if it is null then get the device owner from device enrollment info and authorize if user is the device owner.

  • Handle Connection Refused exception by returning a 503 (Service Unavailable). This was added because if the reporting backend is down, the exception thrown will stop the device from syncing.

## Purpose Fixes https://roadmap.entgra.net/issues/10375 ## Changes * Check if the username taken from CarbonContext is not null and if it is null then get the device owner from device enrollment info and authorize if user is the device owner. * Handle Connection Refused exception by returning a 503 (Service Unavailable). This was added because if the reporting backend is down, the exception thrown will stop the device from syncing.
navodzoysa added 1 commit 1 year ago
pahansith merged commit 51f1bf1280 into master 1 year ago
The pull request has been merged as 51f1bf1280.
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: community/device-mgt-core#240
Loading…
There is no content yet.