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

Staging: whitespace in a a required text block field causes sync failure

    Details

      Description

      Steps to reproduce:

      Prepare the environment:

      • Prepare 2 eZ Publish 4.7 installations, fully patched. One will be your source server, and the other will be the target server;
      • Install eZ Content Staging 4.7.1 on both installations. More details here:

      https://doc.ez.no/Extensions/eZ-Publish-extensions/eZ-Content-Staging/eZ-Content-Staging-1.x/Installation

      Note: when installing eZ Content Staging 4.7.1 in the source server, make sure to use:

      TransportClass=eZRestApiEmbeddedClientStagingTransport471
      

      Pre-requisites:

      1. Create a new content class on source installation:

      Name : Required test
      ID : required_test
      Container : Not checked

      Object name pattern : <name>

      Add two attributes as the following :

      Attribute Type : Text line

      • Name of the attribute : Name
      • ID of the attribute : name
      • Is required : checked

      Attribute Type : Text block

      • Name of the attribute : Description
      • ID of the attribute : description
      • Is required : checked

      2. Submit the creation of the class;
      3. Export the new class through a package and then import it on the target installation.

      Reproduce the issue:

      1. On source installation, create an object for the new "Required test" class:

      Name: Required text block with space
      Description:

      Since the description field is required, enter a whitespace in it (ASCII CODE 32).

      2. Publish object (validation passes even with a whitespace);
      3. Go to "setup" tab -> Content staging, and sync the new object. The following error is generated:

      Event synchronisation action results :
       
      * Object 10112 to be synchronised to feed 47ezfc_cs2.com: failure (HTTP error 400 (Bad Request)) [Event 19]
      

      The folowing error is generated on var/log/error.log:

      [ Dec 03 2014 17:17:18 ] [127.0.0.1] eZContentStagingEvent::syncEvents:
      Failed syncing event 19, transport error code: HTTP error 400 (Bad Request)
      

        Issue Links

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Nuno Oliveira (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: