Uploaded image for project: 'Red Hat Directory Server'
  1. Red Hat Directory Server
  2. DIRSRV-158

Database suffix field accepts dash symbol which ends in error

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Normal Normal
    • dirsrv-13.0
    • dirsrv-12.5
    • cockpit-389-ds
    • None
    • cockpit-389-ds-3.0.6-1.el10dsrv
    • None
    • rhel-idm-ds
    • 0
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Directory Server
    • None
    • None

      Description of a problem

      The Database Suffix field allows adding a dash symbol which ends in error when creating the final instance.

      Version-Release number of the selected component

      rpm -q 389-ds-base cockpit-389-ds

      389-ds-base-2.5.2-1.el9.x86_64
      cockpit-389-ds-2.5.1-2.module+el9dsrv+22071+e756ccfb.noarch

      Browser (if applicable)

      Firefox, Chrome

      Steps to reproduce

      1. Click create new instance
      2. Check Enable Database
      3. To 'Database Suffix' field add 'dc=example,dc-com'
      4. Click create instance

      Actual results

      Page gets stuck loading loop in and Oops message is displayed.
      After refresh, we will have a ghost instance that cannot be removed.

      Expected results

       

      Additional information

      Uncaught SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
          handleCreateInstance https://server.example.com:9090/cockpit/@localhost/389-console/index.js:670
          l https://server.example.com:9090/cockpit/@localhost/389-console/index.js:13
          c https://server.example.com:9090/cockpit/@localhost/389-console/index.js:13
          i https://server.example.com:9090/cockpit/@localhost/389-console/index.js:13
      index.js:670:1411

              idm-ds-dev-bugs IdM DS Dev
              bsmejkal@redhat.com Barbora Simonova
              IdM DS QE IdM DS QE
              Evgenia Martyniuk Evgenia Martyniuk
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: