Uploaded image for project: 'jclouds'
  1. jclouds
  2. JCLOUDS-1227

Unable to configure property based regions if all have the same URL

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.1.0
    • jclouds-core
    • None

    Description

      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:

      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)
      

      This is caused by the use of a Guava BiMap in the SupplyKeyMatchingValueOrNull, which enforces unique keys and values.

      The implementation should be changed to allow regions being configured in the context properties.

      Attachments

        Activity

          People

            nacx Ignasi Barrera
            nacx Ignasi Barrera
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: