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

Fix nuxeo-dam Picture rendition as OriginalJpeg

    XMLWordPrintable

    Details

    • Release Notes Summary:
      Picture renditions can be published.
    • Tags:
    • Backlog priority:
      500
    • Impact type:
      API change
    • Upgrade notes:
      Hide

      Removed as deprecated since 7.2

      RenditionServiceImpl#automationService
      
      RenditionServiceImpl#getAutomationService()
      

      Deprecated

      RenditionServiceImpl#getRenditionDefinition(String name)
      
      RenditionServiceImpl#storeRendition(DocumentModel sourceDocument, Rendition rendition)
      

      Added

      RenditionService#getAvailableRenditionDefinition(DocumentModel doc, String renditionName)
      
      RenditionServiceImpl#storeRendition(DocumentModel sourceDocument, Rendition rendition, RenditionDefinition renditionDefinition)
      
      Show
      Removed as deprecated since 7.2 RenditionServiceImpl#automationService RenditionServiceImpl#getAutomationService() Deprecated RenditionServiceImpl#getRenditionDefinition( String name) RenditionServiceImpl#storeRendition(DocumentModel sourceDocument, Rendition rendition) Added RenditionService#getAvailableRenditionDefinition(DocumentModel doc, String renditionName) RenditionServiceImpl#storeRendition(DocumentModel sourceDocument, Rendition rendition, RenditionDefinition renditionDefinition)
    • Sprint:
      nxfit 10.10.3, nxfit 10.10.4
    • Story Points:
      3

      Description

      With nuxeo-dam, you can publish a Picture with other rendition types as "OriginalJpeg" , "small", "medium" or "thumbnail"; this however chokes with NPE.

      Steps to reproduce:

      • Install Nuxeo 7.10 (with HF43) and nuxeo-dam
      • Install additional product (ImageMagick...) and start the configuration
      • Create a publishing section
      • Create a Picture document with a picture payload => works
      • Go in the publishing tab, choose as rendition format e.g. OriginalJpeg (one of the 4 renditoins specific to Picture document type) and publish in the preceding section => chokes with NullPointerException

      (the publication happens OK with the standard rendition formats)

      server.log shows:

      [...]
      Caused by: java.lang.NullPointerException
              at org.nuxeo.ecm.platform.rendition.service.RenditionCreator.<init>(RenditionCreator.java:89)
              at org.nuxeo.ecm.platform.rendition.service.DefaultStoredRenditionManager.createStoredRendition(DefaultStoredRenditionManager.java:33)
              at org.nuxeo.ecm.platform.rendition.service.RenditionServiceImpl.storeRendition(RenditionServiceImpl.java:180)
              at org.nuxeo.ecm.platform.rendition.service.RenditionServiceImpl.getRendition(RenditionServiceImpl.java:330)
              at org.nuxeo.ecm.platform.rendition.service.RenditionServiceImpl.getRendition(RenditionServiceImpl.java:311)
              at org.nuxeo.ecm.platform.rendition.publisher.RenditionPublicationFactory.publishDocument(RenditionPublicationFactory.java:59)
              at org.nuxeo.ecm.platform.publisher.api.AbstractBasePublicationTree.publish(AbstractBasePublicationTree.java:120)
              at org.nuxeo.ecm.platform.publisher.impl.core.SectionPublicationTree.publish(SectionPublicationTree.java:108)
              at org.nuxeo.ecm.platform.publisher.impl.service.PublisherServiceImpl.publish(PublisherServiceImpl.java:411)
              at org.nuxeo.ecm.platform.publisher.impl.service.AbstractRemotableTree.publish(AbstractRemotableTree.java:68)
              at org.nuxeo.ecm.platform.publisher.web.PublishActionsBean.doPublish(PublishActionsBean.java:216)
              at org.nuxeo.ecm.platform.publisher.web.PublishActionsBean.doPublish(PublishActionsBean.java:204)
      [...]

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day, 4 hours
                  1d 4h

                    PagerDuty

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