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

XML Note should display tags

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 9.10-HF14, 10.1-SNAPSHOT
    • Fix Version/s: 9.10-HF15, 10.1
    • Component/s: Web UI
    • Release Notes Summary:
      Notes using XML format display XML tags.
    • Release Notes Description:
      Hide

      XML format Notes display XML tags.

      Show
      XML format Notes display XML tags.
    • Backlog priority:
      400
    • Sprint:
      nxGang Sprint 10.1.6
    • Story Points:
      1

      Description

      Steps to reproduce:

      • Using JS Client, create an XML Note document:
        nuxeo.repository()
          .create('/path', {
            'entity-type': 'document',
            'type': 'Note',
            'name': 'note-2-xml',
            'properties': {
              'dc:title': 'Note:xml-2',
              'note:mime_type': 'text/xml',
              'note:note': '<note><to>Testers</to><from>Nuxeo</from><heading>Message</heading><body>Thank you!</body></note>'
            }
          });
        

        => The created contains the XML tags (since NXP-24100 fix) but is still not displayed correctly in the UI (see XML_in_WebUI.png screenshot):

        ...
          "properties": {
            "note:note": "<note><to>Testers</to><from>Nuxeo</from><heading>Message</heading>   <body>Thank you!</body></note>",
            "note:mime_type": "text/xml",
        ...
        
      • For comparison, using JS Client, the same document is displayed correctly in JSF (see XML_in_JSF.png screenshot).

      Expected behavior:

      • The view layout of an XML Note document should not include a rich text editor.
      • The XML tags should be displayed.

        Attachments

        1. XML_in_JSF.png
          9 kB
          Karin Touchie
        2. XML_in_WebUI.png
          16 kB
          Karin Touchie

          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 - 2 hours
                  2h