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

D-Bus request object has wrong value for 'ca' property

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • rhel-8.9.0, rhel-9.3.0
    • certmonger
    • sst_idm_ipa
    • ssg_idm
    • 1
    • False
    • Hide

      None

      Show
      None
    • No
    • Red Hat Enterprise Linux
    • None
    • None
    • None
    • Unspecified Release Note Type - Unknown
    • None

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

      Using the certmonger D-Bus API I am examining a tracking request's ca property which should return the D-Bus object path of the CA associated with the tracking request:

      [root@ipa6 ~]# busctl get-property org.fedorahosted.certmonger /org/fedorahosted/certmonger/requests/Request13 org.fedorahosted.certmonger.request ca
      o "/org/fedorahosted/certmonger/requests/CA2"
      

      Note the path returned and try to find it in the list of objects that exist on the bus:

      [root@ipa6 ~]# busctl tree org.fedorahosted.certmonger 
      └─/org
        └─/org/fedorahosted
          └─/org/fedorahosted/certmonger
            ├─/org/fedorahosted/certmonger/cas
            │ ├─/org/fedorahosted/certmonger/cas/CA1
            │ ├─/org/fedorahosted/certmonger/cas/CA2
            │ ├─/org/fedorahosted/certmonger/cas/CA3
            │ ├─/org/fedorahosted/certmonger/cas/CA4
            │ ├─/org/fedorahosted/certmonger/cas/CA5
            │ ├─/org/fedorahosted/certmonger/cas/CA6
            │ └─/org/fedorahosted/certmonger/cas/CA7
            └─/org/fedorahosted/certmonger/requests
              ├─/org/fedorahosted/certmonger/requests/Request10
              ├─/org/fedorahosted/certmonger/requests/Request11
              ├─/org/fedorahosted/certmonger/requests/Request12
              ├─/org/fedorahosted/certmonger/requests/Request13
              ├─/org/fedorahosted/certmonger/requests/Request14
              ├─/org/fedorahosted/certmonger/requests/Request3
              ├─/org/fedorahosted/certmonger/requests/Request4
              ├─/org/fedorahosted/certmonger/requests/Request5
              ├─/org/fedorahosted/certmonger/requests/Request6
              ├─/org/fedorahosted/certmonger/requests/Request7
              ├─/org/fedorahosted/certmonger/requests/Request8
              └─/org/fedorahosted/certmonger/requests/Request9
      

      There is no object /org/fedorahosted/certmonger/requests/CA2.

      The correct object path is /org/fedorahosted/certmonger/cas/CA2.

      Please provide the package NVR for which bug is seen:

      certmonger-0.79.17-1.el9.x86_64
      certmonger-0.79.17-2.el8.x86_64

      How reproducible:

      Always

      Steps to reproduce

      1. Install certmonger
      2. Request a certificate
      3. Use the D-Bus API to inspect the tracking request, obtain the ca property
      4. Use the D-Bus API to introspect the path obtained

      Expected results

      The path starts with /org/fedorahosted/certmonger/requests/

      Actual results

      The path should start with {{/org/fedorahosted/certmonger/cas

            rhn-engineering-rcrit Rob Crittenden
            staticyrro7 Sam Morris
            Rob Crittenden Rob Crittenden
            IPA QE Bot IPA QE Bot
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: