Uploaded image for project: 'Spring Data for Apache Solr'
  1. Spring Data for Apache Solr
  2. DATASOLR-276

CDI support can fail due to Set.toString() used as Map key

    Details

    • Type: Bug
    • Status: Waiting for Review
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.4.2 (Fowler SR2), 1.3.4 (Evans SR4), 1.5.1 (Gosling SR1), 2.0 M1 (Hopper)
    • Fix Version/s: None
    • Component/s: Repository
    • Labels:
      None

      Description

      Current CDI support can fail, because it stores SolrOperations instances in a map with String key representing a set of Qualifiers:

      solrOperationsMap.put(bean.getQualifiers().toString(), ((Bean<SolrOperations>) bean));
      

      However, Set doesn't define iteration order (or even String representation for that matter), so with 2+ Qualifiers there's a good chance to get them in the wrong order and fail to find operations.

      Related issue: DATACASS-249

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cstrobl Christoph Strobl
                Reporter:
                mp911de Mark Paluch
                Last updater:
                Oliver Drotbohm
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: