getEntitlements doesn't check to see if the return from "group.getGroupType()" is null before trying to call "getLabel()" on it. The result is that this function will return an exception whenever a system is in a user created group (which will have groupType null within the DB). The result of this, is that if you a script using the RHN API calls system.getEntitlements, if the system is associated with a system group, an internal exception will occur. A method "getEntitlements" was added to Server.java within the 5.0 code base. This method does correctly check for a null return non getGroupType(), but the getEntitlements method within SystemHandler.java was not changed to handle it properly.
Created attachment 151190 [details] patch for xmlrpc We have two option: include groups label or include group labels. As users can label his group as eg. Provisioning, this is no way. So we just ignore the users groups.
Created attachment 151191 [details] test script This is script I used for testing this bug.
Commited into RELEASE-4.2.0-satellite (rev. 114019) It successfully passed my test.
RHN 4.2.1 now released into production.