Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-24907

Impossible to save a Content with a RichText field in Firefox

    Details

      Description

      Steps to reproduce (happens on Firefox):

      1. On PlatfomUI, create a content type with a RichText field;

      2. On "Home", create a content of said content type;

      3. Open firebug and go to Console;

      4. Write some text onto the richtext field of the content;

      5. Click on "Save". Verify that you'll get the following error on the console:

      POST http://ezp5.rui/api/ezp/v2/content/objects          400 Bad Request  	562ms	  CAPI.js (line 1406)
      "NetworkError: 400 Bad Request - http://ezp5.rui/api/ezp/v2/content/objects"                            objects
      

      and the error has the following Response body:

      {"ErrorMessage":{"_media-type":"application\/vnd.ez.api.ErrorMessage+json","errorCode":400,"errorMessage"
      :"Bad Request","errorDescription":"Content fields did not validate"}}
      

        Issue Links

          Activity

          Hide
          Damien Pobel (Inactive) added a comment -

          The second part of the issue is exactly EZP-24732

          Show
          Damien Pobel (Inactive) added a comment - The second part of the issue is exactly EZP-24732
          Hide
          Damien Pobel (Inactive) added a comment -

          And the first part seems to happen only in Firefox.

          Show
          Damien Pobel (Inactive) added a comment - And the first part seems to happen only in Firefox.
          Hide
          Damien Pobel (Inactive) added a comment - - edited

          To make things a bit clearer, we use 2 issues since this issue initially was about 2 very different bugs.
          This one about the message "Argument '$inputValue' is invalid: Could not create XML document: Entity 'nbsp' not defined" is handled in EZP-24732, this one is about creating a content with a RichText field in Firefox.

          Show
          Damien Pobel (Inactive) added a comment - - edited To make things a bit clearer, we use 2 issues since this issue initially was about 2 very different bugs. This one about the message "Argument '$inputValue' is invalid: Could not create XML document: Entity 'nbsp' not defined" is handled in EZP-24732 , this one is about creating a content with a RichText field in Firefox.
          Show
          Damien Pobel (Inactive) added a comment - PR: https://github.com/ezsystems/PlatformUIBundle/pull/382
          Show
          Damien Pobel (Inactive) added a comment - Merged in master in https://github.com/ezsystems/PlatformUIBundle/commit/899fe3aad1a6c8e55a279835f4b31b3b3c77da93
          Hide
          Rui Silva (Inactive) added a comment -

          Tested and approved by QA for master.

          Show
          Rui Silva (Inactive) added a comment - Tested and approved by QA for master.

            People

            • Assignee:
              Unassigned
              Reporter:
              Rui Silva (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: