Uploaded image for project: 'Nuxeo AI Core'
  1. Nuxeo AI Core
  2. AICORE-470

Caption file is saved several times for the same language

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1.1, 3.1.1-2021
    • Fix Version/s: 2.5.4, 3.1.2-2021
    • Component/s: AI Cloud Services

      Description

      Could be because several AWS enrichers are configured and the DocumentTranscribed called several times, each time adding the caption file.

      https://github.com/nuxeo/nuxeo-ai/blob/56cb880e87616d4e0e6b255b5ce0f5479564aa7b/addons/nuxeo-ai-aws-core/src/main/java/org/nuxeo/ai/listeners/DocumentTranscribed.java#L136

      Should use the set method instead of add (add doesn't replace the element at the index and instead shifts all the elements to the right)

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: