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

RenderDocument & RenderDocumentFeed not working with REST

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 10.10
    • Fix Version/s: 10.10-HF42, 11.x, 2021.2
    • Component/s: Renditions
    • Release Notes Summary:
      The operations RenderDocument & RenderDocumentFeed are usable with REST.
    • Backlog priority:
      650
    • Team:
      PLATFORM
    • Sprint:
      nxplatform #26, nxplatform #27
    • Story Points:
      2

      Description

      1. install Nuxeo
      2. create a Note document
      3. issue the following command (please replace the credentials, hostname and document id to make the command work:
        curl -u Administrator:Administrator -X POST 'http://localhost:8080/nuxeo/api/v1/automation/Render.Document' \
        --header 'Content-Type: application/json' \
        --data-raw '{
            "params": {
            	"template": "foo ${Document['\''dc:title'\'']} bar",
                "type": "ftl"
            },
            "input": "52cb4a1e-514f-4373-b121-7f0960334ecd",
            "context": {}
        }'
        

      Result is:

      foo  bar
      

      Expected behavior: the result should be

      foo MYNOTETITLE bar

      Note: RenderDocumentFeed seems to have the same behavior

        Attachments

          Activity

            People

            • Votes:
              1 Vote for this issue
              Watchers:
              5 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 - 4 hours
                4h