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

Bad Request exception when saving empty non-mandatory URL with Text

    XMLWordPrintable

Details

    Description

      400 Bad Request exception occurs when saving content item with empty non-mandatory URL but with Text.

      Prereq.: Create a Content Type with a URL field type which not required.

      Steps

      1. Go to Content / Content structure.
      2. Start creating new item using the CT with URL.
      3. Insert both URL and Text. (screen1)
      4. Save. [OK]
      5. Remove both URL and Text, leave them blank. (screen2)
      6. Save. [OK]
      7. Insert only URL. (screen3)
      8. Save. [OK]
      9. Insert only Text. (screen4)
      10. Save.

      Actual: 400 Bad Request "Argument '%argumentName%' is invalid: expected value to be of type 'string'" (screen5)

      Remarks: I guess workaround is to make URL required.

      Attachments

        1. EZP-28617 1.png
          EZP-28617 1.png
          54 kB
        2. EZP-28617 2.png
          EZP-28617 2.png
          50 kB
        3. EZP-28617 3.png
          EZP-28617 3.png
          52 kB
        4. EZP-28617 4.png
          EZP-28617 4.png
          52 kB
        5. EZP-28617 5.png
          EZP-28617 5.png
          348 kB

        Activity

          People

            Unassigned Unassigned
            michal.szoltysek@ibexa.co Michał Szołtysek
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: