-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
Can't seem to upload com.apple.mobiledevice.passwordpolicy config profiles #157
Comments
I'm wondering if it's something to do with the characters in the regex, but can't see anything obvious in there. I think something changed with |
Just did an even more minimal setup (just uploading the category and the profile) and got the below: Sanitized Verbose Output (-vvvv)
Report Plist <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>failures</key>
<array>
<dict>
<key>message</key>
<string>Error in com.jc0b.jamf.SonomaCISConfigProfile: Processor: com.github.grahampugh.jamf-upload.processors/JamfComputerProfileUploader: Error: byte indices must be integers or slices, not str</string>
<key>recipe</key>
<string>com.jc0b.jamf.SonomaCISConfigProfile</string>
<key>traceback</key>
<string>Traceback (most recent call last):
File "/Library/AutoPkg/autopkglib/__init__.py", line 840, in process
self.env = processor.process()
File "/Library/AutoPkg/autopkglib/__init__.py", line 626, in process
self.main()
File "/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.grahampugh-recipes/JamfUploaderProcessors/JamfComputerProfileUploader.py", line 143, in main
self.execute()
File "/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.grahampugh-recipes/JamfUploaderProcessors/JamfUploaderLib/JamfComputerProfileUploaderBase.py", line 514, in execute
self.upload_mobileconfig(
File "/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.grahampugh-recipes/JamfUploaderProcessors/JamfUploaderLib/JamfComputerProfileUploaderBase.py", line 260, in upload_mobileconfig
self.status_check(
File "/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.grahampugh-recipes/JamfUploaderProcessors/JamfUploaderLib/JamfUploaderBase.py", line 553, in status_check
+ r.output["errors"][0]["description"]
TypeError: byte indices must be integers or slices, not str
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/bin/autopkg", line 2278, in run_recipes
autopackager.process(recipe)
File "/Library/AutoPkg/autopkglib/__init__.py", line 852, in process
raise AutoPackagerError(
autopkglib.AutoPackagerError: Error in com.jc0b.jamf.SonomaCISConfigProfile: Processor: com.github.grahampugh.jamf-upload.processors/JamfComputerProfileUploader: Error: byte indices must be integers or slices, not str
</string>
</dict>
</array>
<key>summary_results</key>
<dict/>
</dict>
</plist> Not sure if either of these is the |
When trying to use jamf-upload to upload a .mobileconfig file with the preference domain
com.apple.mobiledevice.passwordpolicy
, Jamf returns an error:Conflict Unable to update the database
.I'm trying to upload .mobileconfigs from the macOS Security Compliance Project. The others work fine, but this specific preference domain triggers this error, even with an absolutely minimal .mobileconfig profile.
Resources to reproduce this are in this gist, as well as some information about what profiles look like when uploaded via Jamf Compliance Editor (which does work).
The output of running the recipe with
-vvvv
is as follows:The text was updated successfully, but these errors were encountered: