Created attachment 1365706 [details] Tomcat Log Description of problem: Calling the kickstart.profile.software.setSoftwareList method of the Spacewalk API via XMLRPC returns an internal server error to the client. On the server side, the catalina.out logs show a org.hibernate.NonUniqueObjectException. Full exception log is attached. Version-Release number of selected component (if applicable): 2.7 How reproducible: Every time Steps to Reproduce: 1. Have a preexisting kickstart profile on Spacewalk server 2. Using Python 2.7 and xmlrpclib v1.0.1, create instance of xmlrpclib.Server with Spacewalk API URL 3. Authenticate Server instance using auth.login method to get sessionKey 4. Call kickstart.profile.software.setSoftwareList() API method with sessionKey from step 3, ksLabel from step 1, and any list of packages Actual results: Spacewalk server returns Internal Server Error message to client. Spacewalk server throws org.hibernate.NonUniqueObjectException Expected results: Spacewalk server updates kickstart profile package list with packages listed in packageList parameter of setSoftwareList() function. Additional info: This issue seems closely related to this other bug: https://bugzilla.redhat.com/show_bug.cgi?id=1520664
I confirm that this is related to bz1520664
spacewalk 8f3473214cbe73997aa23e69663aff732f2a4940
Thank you! I was able to apply the patch to 2.7 with slight modification. I am now able to update a profile software list via XMLRPC.
Moving ON_QA
Spacewalk 2.8 has been released. https://github.com/spacewalkproject/spacewalk/wiki/ReleaseNotes28