Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-30670

Picture conversions not computed for version even if it contains generic image preview

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2021.10
    • Fix Version/s: 2021.27
    • Component/s: DAM

      Description

      How to reproduce:

      • with an event handler on the documentCreated event, create a version
        function run(input, params) {
        
          input = Document.CreateVersion(input, {
            'increment':'Major',
            /*required:false - type: boolean*/
            'saveDocument': true
          });
        }
        
      • create a new Picture document with a main file

      Result:
      unless the conversion was already cached, the picture conversion is most likely to contain the default generic empty...jpg image

      The compute code handles versions but this is never used because no conversion task is created for versions. The condition here is never true which results in the DISABLE_PICTURE_VIEWS_GENERATION_LISTENER being set.

      In this simple situation, it sounds fair to expect the application to create and set the conversions for the version. However I don't know if this is generally true. 

       

       

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: