jamf / mut

MIT License
141 stars 10 forks source link

Update to one field cleared ALL EA values. #36

Closed limonesJM closed 5 years ago

limonesJM commented 5 years ago

I added asset tags to all my machines and the upload worked great. Unfortunately, all values for my extension attributes were removed at the same time. I did not have columns for the EAs in the template and am wondering if that was the cause.

mike-levenick commented 5 years ago

It certainly should not have.

mike-levenick commented 5 years ago

Update: I just re-created this. I'm investigating now.

limonesJM commented 5 years ago

Wonderful. I was just in the process of providing the requested information: Jamf Pro 10.14 MUT 5.0.3 Can I send you my CSV with different entries? (I can't send out actual serial no. and asset tags) EAs are populated by scripts

THANK YOU

mike-levenick commented 5 years ago

Hello,

I am really sorry about this. I discovered the issue. Basically, when MUT builds the XML, it includes all the subgroups (purchasing, general, location, etc.) regardless of whether or not they are populated.

It seems that the Jamf Pro API treats the "extension_attributes" subgroup differently than any of the others, and if it is included with nothing in it, it nukes all EAs, instead of ignoring it.

With all other subgroups, it simply ignores those subgroups if they are empty.

I have corrected the issue in MUT and am building a fixed version 5.0.5 presently.

mike-levenick commented 5 years ago

@limonesJM https://github.com/mike-levenick/mut/releases/tag/v5.0.5

Please upgrade immediately.

limonesJM commented 5 years ago

@mike-levenick THANK YOU. Testing on 2 smaller groups of computers was successful and had no data loss. I have another mass update to do later this week and will let you know if anything goes wrong.

Again, THANK YOU