jamf / JamfMigrator

A tool to migrate data granularly between Jamf Pro servers
MIT License
140 stars 10 forks source link

v2.8.2 quits while migrating iOS Smart Groups #20

Closed red5coder closed 6 years ago

red5coder commented 6 years ago

When attempting to migrate iOS smart groups in version 2.8.2, JamfMigrator will quite.

I have tested the previous version ,2.7.2 and this still works as expected.

The error seems to be on line 2477 inside ViewConroller.swift.

let localTmp = (self.counters[endpointType]?["fail"])!

This seems to be nil, which is causing the implicit unwrapping to fail.

BIG-RAT commented 6 years ago

Looks like if the first group to migrate fails the app would crash. Let me know if the crash still occurs with the update - thanks.

red5coder commented 6 years ago

Great stuff. That version works fine. I can now see what the potential issue was. One of the groups we are importing, its criteria is a group check for another group that we are also importing which doesn't exist at that point. So this particular group import fails gracefully now. Thank you.