Skip to content

Updating to Jamf Pro 11.25.2 breaks on-prem DP sync #81

@justintrant

Description

@justintrant

Hello,

Since updating to Jamf Pro v11.25.2 we have experienced issues replicating to on-prem distribution points:
26/03/13 02:19:32-ERROR: Failed to update the view for the source: Error Domain=NSURLErrorDomain Code=-999 "cancelled" UserInfo={NSErrorFailingURLStringKey=https://jssurl/:8443/api/v1/packages?page=0&page-size=200&sort=id%253Aasc, NSErrorFailingURLKey=https://jssurl/:8443/api/v1/packages?page=0&page-size=200&sort=id%253Aasc, _NSURLErrorRelatedURLSessionTaskErrorKey=( "LocalDataTask <039C1B9C-1D76-4372-9170-5877DE622299>.<1>" ), _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <039C1B9C-1D76-4372-9170-5877DE622299>.<1>, NSLocalizedDescription=cancelled}

The issue seems to be as below:

The updateListViewModels() call on line 172 has a guard if updateListViewModelsTask == nil — so it won't re-enter. But the Task created at line 174 runs updateSrcListViewModel() which calls PackageListViewModel.update() which calls loadPackages().

The actual cancellation is happening because loadDps() (line 70) runs in an unstructured Task, and within that task it calls loadPackages() at line 124. Then separately, updateDpsForSourceAndDestination() on line 134 triggers the picker UI to change, which triggers updateListViewModels(), which calls loadPackages() concurrently on the same JamfProInstance. Both use the same urlSession.

But NSURLErrorDomain -999 is specifically "the system cancelled the request", which in Swift typically happens when a URLSessionTask is cancelled due to Task cancellation propagation, or when authentication changes mid-request (e.g., a token refresh invalidating an in-flight request).

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions