I created a XML that looks like this one:
<com.pmease.quickbuild.model.Authorization>
<configuration>1</configuration>
<group>2621</group>
<permissions>
<string>ACCESS_SETTINGS</string>
<string>PROMOTE_BUILD</string>
<string>ACCESS_BUILD_LOG</string>
<string>EDIT_SETTINGS</string>
<string>PMD REPORT</string>
<string>ADD_CHILDREN</string>
<string>STOP_BUILD</string>
<string>RUN_BUILD</string>
<string>NUNIT REPORT</string>
<string>FINDBUGS REPORT</string>
<string>ACCESS_BUILD_CHANGES</string>
<string>ACCESS_BUILD_STEPS</string>
<string>MODIFY_BUILD</string>
<string>EMMA REPORT</string>
<string>JUNIT REPORT</string>
<string>COBERTURA REPORT</string>
<string>CHECKSTYLE REPORT</string>
<string>ACCESS_STATISTICS</string>
<string>NCOVER REPORT</string>
<string>ACCESS_BUILD_VARIABLES</string>
<string>CPD REPORT</string>
<string>TESTNG REPORT</string>
<string>MBUNIT REPORT</string>
<string>FXCOP REPORT</string>
</permissions>
</com.pmease.quickbuild.model.Authorization>
Note: Group 2621 **does not** exist and was added there by mistake.
Posted it via REST API like this (used it several times with other authorizations):
curl -k -s -X POST -u karim.heredia:****
-d@myauth.xml https://server.com/rest/authorizations
Authorization is created and an ID is returned.
However, from there on, the server log starts getting full with this exception:
jvm 1 | org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [com.pmease.quickbuild.model.Group#2621]
Also, getting the resource
https://server.com/rest/authorizations gives the same exception. I had to manually get into the database and remove the offending row.