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

White character as a content type identifier leads to an error that should be a gracefully handled

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: High High
    • Resolution: Fixed
    • Affects Version/s: 1.9.1, 1.7.4, 1.10.0
    • Fix Version/s: None
    • Labels:
      None

      Description

      In similar to EZP-27512, when we set a space/tab/any other white character as a content type identifier, the following error is raised

      Failed to load 'http://192.168.56.102/pjax/contenttype/update/2/eng-GB'
      

      instead of regular validation error message.

      Steps to reproduce

      1. Create a new content type
      2. Set the identifier as a space
      3. Save the content type
      4. Notification contains text

      Failed to load 'http://192.168.56.102/pjax/contenttype/update/2/eng-GB'

      instead of a regular validation error message. Error labels aren't displayed under form fields.

        Issue Links

          Activity

          Show
          Adam Wójs added a comment - PR: https://github.com/ezsystems/repository-forms/pull/138
          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:
              Adam Wójs
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: