Program: 89389
Project: 89389
Buggy source:
/** 
 * Creates a Basic Zone User VM in the database and returns the VM to the caller.
 * @param zone - availability zone for the virtual machine
 * @param serviceOffering - the service offering for the virtual machine
 * @param template - the template for the virtual machine
 * @param securityGroupIdList - comma separated list of security groups id that going to be applied to the virtual machine
 * @param hostName - host name for the virtual machine
 * @param displayName - an optional user generated name for the virtual machine
 * @param diskOfferingId - the ID of the disk offering for the virtual machine. If the template is of ISO format, the diskOfferingId is for the root disk volume. Otherwise this parameter is used to indicate the offering for the data disk volume. If the templateId parameter passed is from a Template object, the diskOfferingId refers to a DATA Disk Volume created. If the templateId parameter passed is from an ISO object, the diskOfferingId refers to a ROOT Disk Volume created
 * @param diskSize - the arbitrary size for the DATADISK volume. Mutually exclusive with diskOfferingId
 * @param group - an optional group for the virtual machine
 * @param hypervisor - the hypervisor on which to deploy the virtual machine
 * @param userData - an optional binary data that can be sent to the virtual machine upon a successful deployment. This binary data must be base64 encoded before adding it to the request. Currently only HTTP GET is supported. Using HTTP GET (via querystring), you can send up to 2KB of data after base64 encoding
 * @param sshKeyPair - name of the ssh key pair used to login to the virtual machine
 * @param requestedIps TODO
 * @param defaultIp TODO
 * @param accountName - an optional account for the virtual machine. Must be used with domainId
 * @param domainId - an optional domainId for the virtual machine. If the account parameter is used, domainId must also be used
 * @return UserVm object if successful.
 * @throws InsufficientCapacityException if there is insufficient capacity to deploy the VM.
 * @throws ConcurrentOperationException if there are multiple users working on the same VM or in the same environment.
 * @throws ResourceUnavailableException if the resources required to deploy the VM is not currently available.
 * @throws InsufficientResourcesException
 */
UserVm createBasicSecurityGroupVirtualMachine(DataCenter zone,ServiceOffering serviceOffering,VirtualMachineTemplate template,List<Long> securityGroupIdList,Account owner,String hostName,String displayName,Long diskOfferingId,Long diskSize,String group,HypervisorType hypervisor,String userData,String sshKeyPair,Map<Long,String> requestedIps,String defaultIp) throws InsufficientCapacityException, ConcurrentOperationException, ResourceUnavailableException, StorageUnavailableException, ResourceAllocationException ;

Fixed version (ground truth):
/** 
 * Creates a Basic Zone User VM in the database and returns the VM to the caller.
 * @param zone - availability zone for the virtual machine
 * @param serviceOffering - the service offering for the virtual machine
 * @param template - the template for the virtual machine
 * @param securityGroupIdList - comma separated list of security groups id that going to be applied to the virtual machine
 * @param hostName - host name for the virtual machine
 * @param displayName - an optional user generated name for the virtual machine
 * @param diskOfferingId - the ID of the disk offering for the virtual machine. If the template is of ISO format, the diskOfferingId is for the root disk volume. Otherwise this parameter is used to indicate the offering for the data disk volume. If the templateId parameter passed is from a Template object, the diskOfferingId refers to a DATA Disk Volume created. If the templateId parameter passed is from an ISO object, the diskOfferingId refers to a ROOT Disk Volume created
 * @param diskSize - the arbitrary size for the DATADISK volume. Mutually exclusive with diskOfferingId
 * @param group - an optional group for the virtual machine
 * @param hypervisor - the hypervisor on which to deploy the virtual machine
 * @param userData - an optional binary data that can be sent to the virtual machine upon a successful deployment. This binary data must be base64 encoded before adding it to the request. Currently only HTTP GET is supported. Using HTTP GET (via querystring), you can send up to 2KB of data after base64 encoding
 * @param sshKeyPair - name of the ssh key pair used to login to the virtual machine
 * @param requestedIps TODO
 * @param defaultIp TODO
 * @param accountName - an optional account for the virtual machine. Must be used with domainId
 * @param domainId - an optional domainId for the virtual machine. If the account parameter is used, domainId must also be used
 * @return UserVm object if successful.
 * @throws InsufficientCapacityException if there is insufficient capacity to deploy the VM.
 * @throws ConcurrentOperationException if there are multiple users working on the same VM or in the same environment.
 * @throws ResourceUnavailableException if the resources required to deploy the VM is not currently available.
 * @throws InsufficientResourcesException
 */
UserVm createBasicSecurityGroupVirtualMachine(DataCenter zone,ServiceOffering serviceOffering,VirtualMachineTemplate template,List<Long> securityGroupIdList,Account owner,String hostName,String displayName,Long diskOfferingId,Long diskSize,String group,HypervisorType hypervisor,String userData,String sshKeyPair,Map<Long,String> requestedIps,String defaultIp,String keyboard) throws InsufficientCapacityException, ConcurrentOperationException, ResourceUnavailableException, StorageUnavailableException, ResourceAllocationException ;