Remove any DOCTYPE declaration if passed through 'body.storage.value' in an API call

XMLWordPrintable

      Issue summary

      If you create a page using the REST call /rest/api/content and include a DOCTYPE declaration in the storage format, it will throw the following error.

          "message": "Error parsing xhtml: Unrecognized XML directive; expected CDATA or comment ('<![CDATA[' or '<!--').\n at [row,col {unknown-source}]: [1,323]",
          "reason": "Bad Request",
          "statusCode": 400

      Removing the DOCTYPE declaration allows the page to be created successfully.

      Suggestion

      Add a method to detect the DOCTYPE declaration if this is passed in the body.storage.value of a REST API call, and remove it so the request is successful.

            Assignee:
            Unassigned
            Reporter:
            Athirah Zolkefli (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: