Skip to content
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

Policies fail to save with no category #15

Closed
sheagcraig opened this issue Dec 3, 2014 · 3 comments
Closed

Policies fail to save with no category #15

sheagcraig opened this issue Dec 3, 2014 · 3 comments

Comments

@sheagcraig
Copy link
Collaborator

Pulling an existing policy with no category, or creating a new one, and then trying to .save() results in a HTTP 409 error: "Conflict/Error: Problem with category name".

It seems that Jamf has changed it so, lacking a category, a policy now has a category id of -1 and a name of "No category assigned". However, it won't accept those values when you try to PUT/update.

I imagine that this also affects other things that have categories, like Packages.

@sheagcraig
Copy link
Collaborator Author

Indeed, I can look for empty categories prior to the PUT, strip out the "-1/No category assigned", and THEN PUT, and it will merrily accept it, and add it back in upon GETting it again.

@sheagcraig
Copy link
Collaborator Author

Confirmed: It fails on packages as well.
Confirmed: It fails even on 9.61.

@sheagcraig
Copy link
Collaborator Author

Also, it appears that changing the category name to "Unknown", then doing the PUT works. So I think JAMF probably forgot to change it in the code at that point. I have opened a support case with them on this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant