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

WebUI: Instance Name is not validated properly

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • cockpit-389-ds
    • None
    • sst_idm_ds
    • 0
    • False
    • Hide

      None

      Show
      None

      Description of a problem

      The console crashes after creating an instance whose name starts with dash
      

      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)

      Chrome
      

      Steps to reproduce

      1. Create a new instance named -foo 
      
      

      Actual results

      Instance is created and started successfully (according to dsctl) 
      But cockpit displays the Oups then everythin is broken until you use dsctl -- -foo remove --do-it to remove the instance
      

      Expected results

      1 - cockpit should not allow names starting with -
      2 - dscreate should also forbid it
      

      Additional information

              idm-ds-dev-bugs IdM DS Dev
              progier Pierre Rogier
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: