Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-10635

camel-mongodb-gridfs - The component should not store state

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.18.1
    • 2.18.2, 2.19.0
    • camel-mongodb
    • None
    • Unknown

    Description

      The component is wrong at
      https://github.com/apache/camel/blob/master/components/camel-mongodb-gridfs/src/main/java/org/apache/camel/component/gridfs/GridFsComponent.java#L42

      Where it stores the first looked up client and store that for remainder. So if there are other endpoints referring to other clients then that wont work as the db is not null next time.

      Instead the client should be looked up per endpoint and not stored as state on the component.

      Attachments

        Issue Links

          Activity

            People

              acosentino Andrea Cosentino
              davsclaus Claus Ibsen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: