jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eli Polonsky (JIRA)" <j...@apache.org>
Subject [jira] [Created] (JCLOUDS-162) SoftLayer ProductOrder is not constructed properly
Date Tue, 02 Jul 2013 13:06:28 GMT
Eli Polonsky created JCLOUDS-162:
------------------------------------

             Summary: SoftLayer ProductOrder is not constructed properly
                 Key: JCLOUDS-162
                 URL: https://issues.apache.org/jira/browse/JCLOUDS-162
             Project: jclouds
          Issue Type: Bug
          Components: jclouds-compute
    Affects Versions: 1.6.1, 1.6.0, 1.5.10, 1.7.0, 1.5.11, 1.6.2
            Reporter: Eli Polonsky
             Fix For: 1.5.11


When trying to provision a compute instance of SoftLayer the following code is broken:

      ProductOrderReceipt productOrderReceipt = client.getVirtualGuestClient().orderVirtualGuest(order);
      VirtualGuest result = get(productOrderReceipt.getOrderDetails().getVirtualGuests(),
0);

This is because the ProductOrderReciept.orderDetails.virtualGuests field is not populated
with any virtaul guests and returns as an empty map. causing an IndexOutOfBoundsException
when performing the get.

from my investigation, this is because the ConstructorProperties in ProducOrder has a typo:

   @ConstructorProperties({
         "packageId", "location", "prices", "virtualGuest", "quantity", "useHourlyPricing"
   })

notice the 'virtualGuest' property, it should be, to my understanding, 'virtualGuests'.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message