Uploaded image for project: 'Ibexa IBX'
  1. Ibexa IBX
  2. IBX-6206

SQL statement is visible in duplicate segment id exception

    XMLWordPrintable

Details

    Description

      SQL statement is visible in duplicate segment id exception.

      Steps:

      1. In Admin / Segment Groups select a group.
      2. Deliberately add two segments with the same id.

      Actual result: Exception is visible in UI:

      An exception occurred while executing 'INSERT INTO `ibexa_segments` (identifier, name) VALUES(?, ?)' with params ["sa", "sa"]: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'sa' for key 'ibexa_segments_identifier'
      

      Expected result: User-friendly error message is displayed.

      Designs

        Attachments

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: