You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jclouds.apache.org by "Ignasi Barrera (JIRA)" <ji...@apache.org> on 2014/07/17 14:19:04 UTC
[jira] [Resolved] (JCLOUDS-162) SoftLayer ProductOrder is not
constructed properly
[ https://issues.apache.org/jira/browse/JCLOUDS-162?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ignasi Barrera resolved JCLOUDS-162.
------------------------------------
Resolution: Won't Fix
Fix Version/s: (was: 1.5.11)
There is no going to be a 1.5.11 release and Softlayer has been refactored in the later release. The mentioned entity no longer exists.
> 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.7.0, 1.5.10, 1.6.0, 1.6.1, 1.5.11, 1.6.2
> Reporter: Eli Polonsky
> Labels: SoftLayer
>
> 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 was sent by Atlassian JIRA
(v6.2#6252)