Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-98124

[API] It is possible to create Form Views without a name (empty string) through API

    Details

      Description

      Description

      It is possible to create Form Views without a name (empty string) through API

      Steps to Reproduce

      1. Open the console and send the following cURL:
      curl -i -X POST \
      http://localhost:8080/o/data-engine/v1.0/sites/20128/data-definitions \
      -H 'Authorization: Basic dGVzdEBsaWZlcmF5LmNvbTp0ZXN0' \
      -H 'Content-Type: application/json' \
      -d '{
      "dataDefinitionFields": [
      {
      "fieldType": "text",
      "name": "product"
      }
      ],
      "description": {
      "value": "Description"
      },
      "name": {
      "value": ""
      }
      }'

      Expected Result

      The API should not allow the creation of a Form View without a name;

      Actual Result

      The API is not handling the creation of a Form View without a name (empty string). This action is breaking the Form View list.

      Reproduced In

      master: 7b26f1191c7737228c9fd6e4b41a125d03efbaf1

        Attachments

          Activity

            People

            Assignee:
            alex.candido Alex Candido
            Reporter:
            alex.candido Alex Candido
            Participants of an Issue:
            Recent user:
            Tomáš Polešovský
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              41 weeks, 6 days ago

                Packages

                Version Package
                7.3.1 CE GA2
                7.3.10 DXP GA1
                Master