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

Fix 'file' and 'files' schemas' XML in 'XML export' rendition

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 9.10, 10.1
    • Fix Version/s: None
    • Component/s: Renditions

      Description

      file:content/name is exported as <filename> and file:content/length is missing. See the XML export and the JSON export of the same document below:

      XML export

      <?xml version="1.0" encoding="UTF-8"?>
      
      <document repository="default" id="3b4a8e5a-4d77-406b-8048-31e91a98ac14">
        <system>
          <type>File</type>
          <path>default-domain/workspaces/ws1/SUPNXP-23157 1</path>
          <lifecycle-state>project</lifecycle-state>
          <lifecycle-policy>default</lifecycle-policy>
          <facet>Versionable</facet>
          <facet>NXTag</facet>
          <facet>Publishable</facet>
          <facet>Commentable</facet>
          <facet>HasRelatedText</facet>
          <facet>Thumbnail</facet>
          <access-control>
            <acl name="inherited">
              <entry principal="Administrator" permission="Everything" grant="true"/>
              <entry principal="members" permission="Read" grant="true"/>
            </acl>
          </access-control>
        </system>
        <schema xmlns:file_schema="http://www.nuxeo.org/ecm/project/schemas/vdutat-sandbox-92-nuxeo/file_schema" name="file_schema"></schema>
        <schema xmlns:uid="http://project.nuxeo.com/geide/schemas/uid/" name="uid">
          <uid:major_version><![CDATA[0]]></uid:major_version>
          <uid:minor_version><![CDATA[0]]></uid:minor_version>
        </schema>
        <schema xmlns:thumb="http://www.nuxeo.org/ecm/schemas/thumbnail" name="thumbnail">
          <thumb:thumbnail>
            <encoding></encoding>
            <mime-type>image/png</mime-type>
            <filename>blank.png</filename>
            <data>b6787ece.blob</data>
            <digest>955a0ea66b997b61f007a93fa5586a06</digest>
          </thumb:thumbnail>
        </schema>
        <schema xmlns:file="http://www.nuxeo.org/ecm/schemas/file/" name="file">
          <file:content>
            <encoding></encoding>
            <mime-type>application/pdf</mime-type>
            <filename>blank.pdf</filename>
            <data>b9b88f4b.blob</data>
            <digest>84e96476a8250179222453750a2df8ad</digest>
          </file:content>
        </schema>
        <schema xmlns:common="http://www.nuxeo.org/ecm/schemas/common/" name="common">
          <common:icon><![CDATA[/icons/pdf.png]]></common:icon>
        </schema>
        <schema xmlns:files="http://www.nuxeo.org/ecm/schemas/files/" name="files">
          <files:files/>
        </schema>
        <schema xmlns:dc="http://www.nuxeo.org/ecm/schemas/dublincore/" name="dublincore">
          <dc:creator><![CDATA[Administrator]]></dc:creator>
          <dc:modified><![CDATA[2018-05-31T19:04:16.000Z]]></dc:modified>
          <dc:lastContributor><![CDATA[Administrator]]></dc:lastContributor>
          <dc:created><![CDATA[2018-05-31T19:04:16.000Z]]></dc:created>
          <dc:title><![CDATA[SUPNXP-23157 1]]></dc:title>
          <dc:contributors>
            <item><![CDATA[Administrator]]></item>
          </dc:contributors>
        </schema>
        <schema xmlns:relatedtext="http://www.nuxeo.org/ecm/schemas/relatedtext/" name="relatedtext">
          <relatedtext:relatedtextresources/>
        </schema>
        <schema xmlns:nxtag="http://www.nuxeo.org/ecm/schemas/facetedTag/" name="facetedTag">
          <nxtag:tags/>
        </schema>
      </document>
      

      JOSN export

      
      
      {
        "entity-type": "document",
        "repository": "default",
        "uid": "3b4a8e5a-4d77-406b-8048-31e91a98ac14",
        "path": "/default-domain/workspaces/ws1/SUPNXP-23157 1",
        "type": "File",
        "state": "project",
        "parentRef": "aa99a19c-97c3-425b-b87b-a3cec2c31a90",
        "isCheckedOut": true,
        "isVersion": false,
        "isProxy": false,
        "changeToken": "4-0",
        "title": "SUPNXP-23157 1",
        "lastModified": "2018-05-31T19:04:16.000Z",
        "properties": {
          "uid:uid": null,
          "uid:major_version": 0,
          "uid:minor_version": 0,
          "thumb:thumbnail": {
            "name": "blank.png",
            "mime-type": "image/png",
            "encoding": null,
            "digestAlgorithm": "MD5",
            "digest": "955a0ea66b997b61f007a93fa5586a06",
            "length": "1019",
            "data": "http://localhost:8080/nuxeo/nxfile/default/3b4a8e5a-4d77-406b-8048-31e91a98ac14/thumb:thumbnail/blank.png"
          },
          "file:content": {
            "name": "blank.pdf",
            "mime-type": "application/pdf",
            "encoding": null,
            "digestAlgorithm": "MD5",
            "digest": "84e96476a8250179222453750a2df8ad",
            "length": "6611",
            "data": "http://localhost:8080/nuxeo/nxfile/default/3b4a8e5a-4d77-406b-8048-31e91a98ac14/file:content/blank.pdf"
          },
          "common:icon-expanded": null,
          "common:icon": "/icons/pdf.png",
          "files:files": [],
          "dc:description": null,
          "dc:language": null,
          "dc:coverage": null,
          "dc:valid": null,
          "dc:creator": "Administrator",
          "dc:modified": "2018-05-31T19:04:16.000Z",
          "dc:lastContributor": "Administrator",
          "dc:rights": null,
          "dc:expired": null,
          "dc:format": null,
          "dc:created": "2018-05-31T19:04:16.000Z",
          "dc:title": "SUPNXP-23157 1",
          "dc:issued": null,
          "dc:nature": null,
          "dc:subjects": [],
          "dc:contributors": [
            "Administrator"
          ],
          "dc:source": null,
          "dc:publisher": null,
          "relatedtext:relatedtextresources": [],
          "nxtag:tags": []
        },
        "facets": [
          "Versionable",
          "NXTag",
          "Publishable",
          "Commentable",
          "HasRelatedText",
          "Thumbnail"
        ],
        "contextParameters": {
          "acls": [
            {
              "name": "inherited",
              "aces": [
                {
                  "id": "Administrator:Everything:true:::",
                  "username": "Administrator",
                  "externalUser": false,
                  "permission": "Everything",
                  "granted": true,
                  "creator": null,
                  "begin": null,
                  "end": null,
                  "status": "effective"
                },
                {
                  "id": "members:Read:true:::",
                  "username": "members",
                  "externalUser": false,
                  "permission": "Read",
                  "granted": true,
                  "creator": null,
                  "begin": null,
                  "end": null,
                  "status": "effective"
                }
              ]
            }
          ],
          "permissions": [
            "Read",
            "Write",
            "ReadChildren",
            "AddChildren",
            "Everything",
            "RemoveChildren",
            "ReadWrite"
          ]
        }
      }
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: