Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-81162

CLI - improve error message format

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • rhel-9.7
    • rhel-9.5
    • 389-ds-base
    • None
    • No
    • Low
    • ZStream
    • rhel-idm-ds
    • ssg_idm
    • 0
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • Approved Blocker
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      Issue Description

      When a generic exception is logged it contains lots of information, and is not really human readable or friendly:

      # dsconf slapd-localhost logging access set max-logs 3245345345345345sdfsdfsf
      Error: 103 - 3 - 53 - Server is unwilling to perform - [] - Invalid value "3245345345345345sdfsdfsf" for attribute (nsslapd-accesslog-maxlogsperdir), value must be between 1 and 2147483647 - modify_ext_s(('cn=config', [(2, 'nsslapd-accesslog-maxlogsperdir', [b'3245345345345345sdfsdfsf'])]),{'serverctrls': None, 'clientctrls': None, 'escapehatch': 'i am sure'}) on instance localhost
      

      For non-json/non-verbose operations it would be nice to just provide the minimum necessary information

      # dsconf slapd-localhost logging access set max-logs 3245345345345345sdfsdfsf
      Error:  Server is unwilling to perform(53) - Invalid value "3245345345345345sdfsdfsf" for attribute (nsslapd-accesslog-maxlogsperdir), value must be between 1 and 2147483647
      

              idm-ds-dev-bugs IdM DS Dev
              vashirov@redhat.com Viktor Ashirov
              IdM DS Dev IdM DS Dev
              IdM DS QE IdM DS QE
              Evgenia Martyniuk Evgenia Martyniuk
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: