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

Fix preview of CSV file

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 10.10
    • Fix Version/s: None
    • Component/s: Preview

      Description

      Steps to reproduce

      1. Create a File document with a CSV file as the attachment
      2. Observe that the preview is not rendered and the message below is displayed
        {"entity-type":"exception","status":500,"message":"java.lang.UnsupportedOperationException"}
        

      The trace contains

      ERROR [WebEngineExceptionMapper] java.lang.UnsupportedOperationException
      java.lang.UnsupportedOperationException: null
      	at org.nuxeo.ecm.core.api.blobholder.AbstractBlobHolder.setBlob(AbstractBlobHolder.java:44) ~[nuxeo-core-api-10.10-HF17.jar:?]
      	at org.nuxeo.ecm.platform.preview.converters.HtmlPreviewConverter.convert(HtmlPreviewConverter.java:140) ~[nuxeo-preview-core-10.10-HF16.jar:?]
      	at org.nuxeo.ecm.core.convert.service.ConversionServiceImpl.convert(ConversionServiceImpl.java:332) ~[nuxeo-core-convert-10.10-HF17.jar:?]
      	at org.nuxeo.ecm.platform.preview.adapter.base.ConverterBasedHtmlPreviewAdapter.getPreviewBlobs(ConverterBasedHtmlPreviewAdapter.java:171) ~[nuxeo-preview-core-10.10-HF16.jar:?]
      	at org.nuxeo.ecm.platform.preview.adapter.base.ConverterBasedHtmlPreviewAdapter.getPreviewBlobs(ConverterBasedHtmlPreviewAdapter.java:124) ~[nuxeo-preview-core-10.10-HF16.jar:?]
      	at org.nuxeo.ecm.platform.preview.adapter.base.AbstractHtmlPreviewAdapter.getFilePreviewBlobs(AbstractHtmlPreviewAdapter.java:121) ~[nuxeo-preview-core-10.10-HF16.jar:?]
      	at org.nuxeo.ecm.restapi.server.jaxrs.adapters.PreviewAdapter.getPreviewBlobs(PreviewAdapter.java:175) ~[nuxeo-rest-api-server-10.10-HF15.jar:?]
      	at org.nuxeo.ecm.restapi.server.jaxrs.adapters.PreviewAdapter.preview(PreviewAdapter.java:89) ~[nuxeo-rest-api-server-10.10-HF15.jar:?]
      

      The problem seems to be that the setBlob method is called in a SimpleCacheableBlobholder object and it raises this exception.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                tmartins Thierry Martins
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  PagerDuty

                  Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.