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

Picture views generation randomly fails to add file extension to filename

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 7.10
    • Fix Version/s: 7.10-HF30
    • Component/s: Image Management

      Description

      When picture views are generated for a picture, it happens that file extension of view's filename is missing. It happens randomly and inconsistently (D&D of same image give different results).

      How to reproduce:

      • Download the 2 screenshots attached to SUPNXP-20693
      • Drag & drop them in a folder
      • file extension of some/all picture views are missing

      Permanent delete and import of same images can give different results.

      See below 2 XML exports of the same image imported twice:

      <?xml version="1.0" encoding="UTF-8"?>
      
      <document repository="default" id="638e1623-d615-4646-ba2e-da6e8c4cc668">
        <system>
          <type>Picture</type>
          <path>default-domain/workspaces/SUPNXP-20693/Abstract Art.jpg</path>
          <lifecycle-state>project</lifecycle-state>
          <lifecycle-policy>default</lifecycle-policy>
          <facet>Versionable</facet>
          <facet>Publishable</facet>
          <facet>Picture</facet>
          <facet>Commentable</facet>
          <facet>HasRelatedText</facet>
          <facet>Thumbnail</facet>
          <access-control>
            <acl name="inherited">
              <entry principal="Administrator" permission="Everything" grant="true"/>
              <entry principal="members" permission="Read" grant="true"/>
            </acl>
          </access-control>
        </system>
        <schema xmlns:uid="http://project.nuxeo.com/geide/schemas/uid/" name="uid">
          <uid:major_version><![CDATA[0]]></uid:major_version>
          <uid:minor_version><![CDATA[1]]></uid:minor_version>
        </schema>
        <schema xmlns:imd="http://www.nuxeo.org/ecm/schemas/image-metadata" name="image_metadata">
          <imd:user_comment><![CDATA[CREATOR: gd-jpeg v1.0 (using IJG JPEG v80), quality = 90
      ]]></imd:user_comment>
        </schema>
        <schema xmlns:thumb="http://www.nuxeo.org/ecm/schemas/thumbnail" name="thumbnail"></schema>
        <schema xmlns:file="http://www.nuxeo.org/ecm/schemas/file/" name="file">
          <file:content>
            <encoding></encoding>
            <mime-type>image/jpeg</mime-type>
            <filename>Abstract Art.jpg</filename>
            <data>24966aa5.blob</data>
            <digest>95fc873d68d1e8b491a8ff43e723c599</digest>
          </file:content>
        </schema>
        <schema xmlns:common="http://www.nuxeo.org/ecm/schemas/common/" name="common">
          <common:size><![CDATA[628332]]></common:size>
          <common:icon><![CDATA[/icons/image.gif]]></common:icon>
        </schema>
        <schema xmlns:dc="http://www.nuxeo.org/ecm/schemas/dublincore/" name="dublincore">
          <dc:creator><![CDATA[Administrator]]></dc:creator>
          <dc:modified><![CDATA[2017-07-19T22:34:40.000Z]]></dc:modified>
          <dc:lastContributor><![CDATA[Administrator]]></dc:lastContributor>
          <dc:created><![CDATA[2017-07-19T22:34:37.978Z]]></dc:created>
          <dc:title><![CDATA[Abstract Art.jpg]]></dc:title>
          <dc:subjects/>
          <dc:contributors>
            <item><![CDATA[Administrator]]></item>
          </dc:contributors>
        </schema>
        <schema xmlns:relatedtext="http://www.nuxeo.org/ecm/schemas/relatedtext/" name="relatedtext">
          <relatedtext:relatedtextresources/>
        </schema>
        <schema xmlns:picture="http://www.nuxeo.org/ecm/schemas/picture" name="picture">
          <picture:views>
            <item>
              <filename><![CDATA[Thumbnail_Abstract Art.jpg]]></filename>
              <width><![CDATA[100]]></width>
              <description><![CDATA[Thumbnail size]]></description>
              <title><![CDATA[Thumbnail]]></title>
              <content>
                <encoding></encoding>
                <mime-type>image/jpeg</mime-type>
                <filename>Thumbnail_Abstract Art.jpg</filename>
                <data>72c4b50c.blob</data>
                <digest>7c75c6b5ce617d3adb8afd48bddaff80</digest>
              </content>
              <height><![CDATA[56]]></height>
              <info>
                <colorSpace><![CDATA[sRGB]]></colorSpace>
                <depth><![CDATA[8]]></depth>
                <width><![CDATA[100]]></width>
                <format><![CDATA[JPEG]]></format>
                <height><![CDATA[56]]></height>
              </info>
            </item>
            <item>
              <filename><![CDATA[Small_Abstract Art.jpg]]></filename>
              <width><![CDATA[280]]></width>
              <description><![CDATA[Small size]]></description>
              <title><![CDATA[Small]]></title>
              <content>
                <encoding></encoding>
                <mime-type>image/jpeg</mime-type>
                <filename>Small_Abstract Art.jpg</filename>
                <data>f9e90eae.blob</data>
                <digest>591b6fbfa18d1b40a65697067a53e7df</digest>
              </content>
              <height><![CDATA[157]]></height>
              <info>
                <colorSpace><![CDATA[sRGB]]></colorSpace>
                <depth><![CDATA[8]]></depth>
                <width><![CDATA[279]]></width>
                <format><![CDATA[JPEG]]></format>
                <height><![CDATA[157]]></height>
              </info>
            </item>
            <item>
              <filename><![CDATA[Medium_Abstract Art.jpg]]></filename>
              <width><![CDATA[550]]></width>
              <description><![CDATA[Medium size]]></description>
              <title><![CDATA[Medium]]></title>
              <content>
                <encoding></encoding>
                <mime-type>image/jpeg</mime-type>
                <filename>Medium_Abstract Art.jpg</filename>
                <data>f59d2b52.blob</data>
                <digest>c2e59024ffe5715e7e0d8b1db3de6ead</digest>
              </content>
              <height><![CDATA[309]]></height>
              <info>
                <colorSpace><![CDATA[sRGB]]></colorSpace>
                <depth><![CDATA[8]]></depth>
                <width><![CDATA[549]]></width>
                <format><![CDATA[JPEG]]></format>
                <height><![CDATA[309]]></height>
              </info>
            </item>
            <item>
              <filename><![CDATA[OriginalJpeg_Abstract Art.jpg]]></filename>
              <width><![CDATA[1920]]></width>
              <description><![CDATA[Original jpeg image]]></description>
              <title><![CDATA[OriginalJpeg]]></title>
              <content>
                <encoding></encoding>
                <mime-type>image/jpeg</mime-type>
                <filename>OriginalJpeg_Abstract Art.jpg</filename>
                <data>e9704dda.blob</data>
                <digest>a383b625a2177afcf1ebb484f4765f16</digest>
              </content>
              <height><![CDATA[1080]]></height>
              <info>
                <colorSpace><![CDATA[sRGB]]></colorSpace>
                <depth><![CDATA[8]]></depth>
                <width><![CDATA[1920]]></width>
                <format><![CDATA[JPEG]]></format>
                <height><![CDATA[1080]]></height>
              </info>
            </item>
          </picture:views>
          <picture:info>
            <colorSpace><![CDATA[sRGB]]></colorSpace>
            <depth><![CDATA[8]]></depth>
            <width><![CDATA[1920]]></width>
            <format><![CDATA[JPEG]]></format>
            <height><![CDATA[1080]]></height>
          </picture:info>
        </schema>
      </document>
      
      <?xml version="1.0" encoding="UTF-8"?>
      
      <document repository="default" id="fa39f31d-689c-497f-9d2b-f3d9354096ed">
        <system>
          <type>Picture</type>
          <path>default-domain/workspaces/SUPNXP-20693/Abstract Art.jpg</path>
          <lifecycle-state>project</lifecycle-state>
          <lifecycle-policy>default</lifecycle-policy>
          <facet>Versionable</facet>
          <facet>Publishable</facet>
          <facet>Picture</facet>
          <facet>Commentable</facet>
          <facet>HasRelatedText</facet>
          <facet>Thumbnail</facet>
          <access-control>
            <acl name="inherited">
              <entry principal="Administrator" permission="Everything" grant="true"/>
              <entry principal="members" permission="Read" grant="true"/>
            </acl>
          </access-control>
        </system>
        <schema xmlns:uid="http://project.nuxeo.com/geide/schemas/uid/" name="uid">
          <uid:major_version><![CDATA[0]]></uid:major_version>
          <uid:minor_version><![CDATA[1]]></uid:minor_version>
        </schema>
        <schema xmlns:imd="http://www.nuxeo.org/ecm/schemas/image-metadata" name="image_metadata">
          <imd:user_comment><![CDATA[CREATOR: gd-jpeg v1.0 (using IJG JPEG v80), quality = 90
      ]]></imd:user_comment>
        </schema>
        <schema xmlns:thumb="http://www.nuxeo.org/ecm/schemas/thumbnail" name="thumbnail"></schema>
        <schema xmlns:file="http://www.nuxeo.org/ecm/schemas/file/" name="file">
          <file:content>
            <encoding></encoding>
            <mime-type>image/jpeg</mime-type>
            <filename>Abstract Art.jpg</filename>
            <data>ef60a441.blob</data>
            <digest>95fc873d68d1e8b491a8ff43e723c599</digest>
          </file:content>
        </schema>
        <schema xmlns:common="http://www.nuxeo.org/ecm/schemas/common/" name="common">
          <common:size><![CDATA[628332]]></common:size>
          <common:icon><![CDATA[/icons/image.gif]]></common:icon>
        </schema>
        <schema xmlns:dc="http://www.nuxeo.org/ecm/schemas/dublincore/" name="dublincore">
          <dc:creator><![CDATA[Administrator]]></dc:creator>
          <dc:modified><![CDATA[2017-07-19T22:36:15.000Z]]></dc:modified>
          <dc:lastContributor><![CDATA[Administrator]]></dc:lastContributor>
          <dc:created><![CDATA[2017-07-19T22:36:15.228Z]]></dc:created>
          <dc:title><![CDATA[Abstract Art.jpg]]></dc:title>
          <dc:subjects/>
          <dc:contributors>
            <item><![CDATA[Administrator]]></item>
          </dc:contributors>
        </schema>
        <schema xmlns:relatedtext="http://www.nuxeo.org/ecm/schemas/relatedtext/" name="relatedtext">
          <relatedtext:relatedtextresources/>
        </schema>
        <schema xmlns:picture="http://www.nuxeo.org/ecm/schemas/picture" name="picture">
          <picture:views>
            <item>
              <filename><![CDATA[Thumbnail_Abstract Art.]]></filename>
              <width><![CDATA[100]]></width>
              <description><![CDATA[Thumbnail size]]></description>
              <title><![CDATA[Thumbnail]]></title>
              <content>
                <encoding></encoding>
                <mime-type>image/jpeg</mime-type>
                <filename>Thumbnail_Abstract Art.</filename>
                <data>b621b0ef.blob</data>
                <digest>7c75c6b5ce617d3adb8afd48bddaff80</digest>
              </content>
              <height><![CDATA[56]]></height>
              <info>
                <colorSpace><![CDATA[sRGB]]></colorSpace>
                <depth><![CDATA[8]]></depth>
                <width><![CDATA[100]]></width>
                <format><![CDATA[JPEG]]></format>
                <height><![CDATA[56]]></height>
              </info>
            </item>
            <item>
              <filename><![CDATA[Small_Abstract Art.]]></filename>
              <width><![CDATA[280]]></width>
              <description><![CDATA[Small size]]></description>
              <title><![CDATA[Small]]></title>
              <content>
                <encoding></encoding>
                <mime-type>image/jpeg</mime-type>
                <filename>Small_Abstract Art.</filename>
                <data>558564a5.blob</data>
                <digest>591b6fbfa18d1b40a65697067a53e7df</digest>
              </content>
              <height><![CDATA[157]]></height>
              <info>
                <colorSpace><![CDATA[sRGB]]></colorSpace>
                <depth><![CDATA[8]]></depth>
                <width><![CDATA[279]]></width>
                <format><![CDATA[JPEG]]></format>
                <height><![CDATA[157]]></height>
              </info>
            </item>
            <item>
              <filename><![CDATA[Medium_Abstract Art.]]></filename>
              <width><![CDATA[550]]></width>
              <description><![CDATA[Medium size]]></description>
              <title><![CDATA[Medium]]></title>
              <content>
                <encoding></encoding>
                <mime-type>image/jpeg</mime-type>
                <filename>Medium_Abstract Art.</filename>
                <data>c4c0cfde.blob</data>
                <digest>c2e59024ffe5715e7e0d8b1db3de6ead</digest>
              </content>
              <height><![CDATA[309]]></height>
              <info>
                <colorSpace><![CDATA[sRGB]]></colorSpace>
                <depth><![CDATA[8]]></depth>
                <width><![CDATA[549]]></width>
                <format><![CDATA[JPEG]]></format>
                <height><![CDATA[309]]></height>
              </info>
            </item>
            <item>
              <filename><![CDATA[OriginalJpeg_Abstract Art.]]></filename>
              <width><![CDATA[1920]]></width>
              <description><![CDATA[Original jpeg image]]></description>
              <title><![CDATA[OriginalJpeg]]></title>
              <content>
                <encoding></encoding>
                <mime-type>image/jpeg</mime-type>
                <filename>OriginalJpeg_Abstract Art.</filename>
                <data>42269756.blob</data>
                <digest>a383b625a2177afcf1ebb484f4765f16</digest>
              </content>
              <height><![CDATA[1080]]></height>
              <info>
                <colorSpace><![CDATA[sRGB]]></colorSpace>
                <depth><![CDATA[8]]></depth>
                <width><![CDATA[1920]]></width>
                <format><![CDATA[JPEG]]></format>
                <height><![CDATA[1080]]></height>
              </info>
            </item>
          </picture:views>
          <picture:info>
            <colorSpace><![CDATA[sRGB]]></colorSpace>
            <depth><![CDATA[8]]></depth>
            <width><![CDATA[1920]]></width>
            <format><![CDATA[JPEG]]></format>
            <height><![CDATA[1080]]></height>
          </picture:info>
        </schema>
      </document>
      

      Reproduced with the following docker container:

      docker run --name vanilla-nuxeo-7.10-HF -p 8080:8080 -ti --rm \
      -e LAUNCHER_DEBUG='-Djvmcheck=nofail' \
      -e NUXEO_INSTALL_HOTFIX="true" -e NUXEO_DEV_MODE="true" \
      -e NUXEO_CLID="YOUR_NUXEO_STUDIO_710_HERE" \
      -e NUXEO_PACKAGES='nuxeo-dam' \
      nuxeo:7.10
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour
                  1h