Problem

If you try to upload the one of the attached Word documents  (or PDF, PPT), it sometime fails and detect it as an image/jpeg, and leave the workflow instance stale.

Some error related to the image thumbnail creation also indicate that it tries to process the file as an image instead of the original content type (doc, ppt, pdf etc..).

Resolution

This issue is due to the wrong dc:format metadata created. There is a workaround by extending the DAM update asset workflow model to fix this.

  1. Install attached content package via CQ Package Manager
       * This provides a workflow ecma-script at /etc/workflows/scripts/dam/resetMimeType.ecma
  2. Open the Workflow admin console
  3. Edit the 'DAM Update Asset' workflow model
  4. Insert a Process step right after the 'Metadata extraction' step
  5. Set any title, e.g. 'Reset mimetype'
  6. In the Process tab of the properties dialog, select above ecma script: /etc/workflows/scripts/dam/resetMimeType.ecma
  7. Check the 'Handler Advance' flag checkbox
  8. Submit the dialog
  9. Save the workflow model

Now, try to upload the word document (or other document type that failed).

Laadi alla

Applies to

CQ 5.3

CQ 5.4

See töö on litsentseeritud Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported litsentsiga  Süsteemi Creative Commons tingimused ei kehti Twitter™-i ja Facebooki postitustele.

Juriidilised märkused   |   Privaatsuspõhimõtted veebis