[
https://issues.apache.org/jira/browse/JCLOUDS-1227?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ignasi Barrera resolved JCLOUDS-1227.
-------------------------------------
Resolution: Fixed
Fix Version/s: 2.1.0
> Unable to configure property based regions if all have the same URL
> -------------------------------------------------------------------
>
> Key: JCLOUDS-1227
> URL: https://issues.apache.org/jira/browse/JCLOUDS-1227
> Project: jclouds
> Issue Type: Bug
> Components: jclouds-core
> Affects Versions: 2.0.0
> Reporter: Ignasi Barrera
> Assignee: Ignasi Barrera
> Fix For: 2.1.0
>
>
> When configuring the regions of a provider using the context properties, if
> there are no specific endpoints for each region, the following exception is
> thrown:
> {code}
> Multiple entries with same value: <regionId1>=<endpoint> and
> <regionId2>=<endpoint>
> java.lang.IllegalArgumentException
> at
> com.google.common.collect.ImmutableMap.checkNoConflict(ImmutableMap.java:150)
> at
> com.google.common.collect.RegularImmutableBiMap.<init>(RegularImmutableBiMap.java:131)
> at
> com.google.common.collect.ImmutableBiMap.copyOf(ImmutableBiMap.java:210)
> at
> org.jclouds.suppliers.SupplyKeyMatchingValueOrNull.get(SupplyKeyMatchingValueOrNull.java:53)
> {code}
> This is caused by the use of a Guava BiMap in the
> [SupplyKeyMatchingValueOrNull|https://github.com/jclouds/jclouds/blob/master/core/src/main/java/org/jclouds/suppliers/SupplyKeyMatchingValueOrNull.java],
> which enforces unique keys and values.
> The implementation should be changed to allow regions being configured in the
> context properties.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)