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

RenderDocument & RenderDocumentFeed not working with REST

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 10.10
    • Fix Version/s: HOTFIX_10.10, 11.1
    • Component/s: Renditions

      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:
              3 Start watching this issue

              Dates

              • Created:
                Updated:

                PagerDuty

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