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

pki ca-user-del command failing for username with special characters

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • rhel-10.0.z
    • rhel-9.6
    • pki-core
    • None
    • No
    • None
    • rhel-sst-idm-cs
    • ssg_idm
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None

      What were you trying to do that didn't work?

      Automation regression

      Please provide the package NVR for which the bug is seen:

      idm-pki-ca noarch 11.6.0-0.3.alpha2.el9 rhel-9.6-AppStream 2.1 M
      2025-01-22T17:40:23 idm-pki-kra noarch 11.6.0-0.3.alpha2.el9
      389-ds-base-2.6.0-2.el9.x86_64

      CTC2 compose : 

      http://download.devel.redhat.com/rhel-9/nightly/RHEL-9/RHEL-9.6.0-20250121.2/compose/

      How reproducible is this bug?:

      Always

      Steps to reproduce

      1. Create user with special char userid :

      pki -d nssdb -c SECret.123 -p 8443 -n 'PKI Administrator for hosted.upshift.rdu2.redhat.com' ca-user-add 'shalini!?@~#*^_+$1' --fullName shalini1
      -------------------------------
      Added user "shalini!?@~#*^_+$1"
      -------------------------------
        User ID: shalini!?@~#*^_+$1
        Full name: shalini1

      1. Delete user with same id

      [root@vm-10-0-185-188 ~]# pki -d nssdb -c SECret.123 -p 8443 -n 'PKI Administrator for hosted.upshift.rdu2.redhat.com' ca-user-del 'shalini!?@~#*^_+$1'
      ResourceNotFoundException: No such object: No such object

      Expected results

      Should pass

      Actual results

      Failing with following error in debug logs:

      2025-01-28 12:28:57 [https-jsse-jss-nio-8443-exec-17] INFO: PKIExceptionMapper: Returning ResourceNotFoundException
      2025-01-28 12:28:57 [https-jsse-jss-nio-8443-exec-17] INFO: PKIExceptionMapper: XML exception:
      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
      <PKIException>
          <ClassName>com.netscape.certsrv.base.ResourceNotFoundException</ClassName>
          <Attributes/>

       

      TC failing in automation :

      test_pki_ca_user_del_max_len_user_id [\{{{}2047_symb{}}}]
          <Code>404</Code>
          <Message>No such object: No such object</Message>
      </PKIException>

              rhcs-maint RHCS Maintenance
              skhande shalini khandelwal
              RHCS Maintenance RHCS Maintenance
              IdM CS QE IdM CS QE
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: