Uploaded image for project: 'OpenIDM'
  1. OpenIDM
  2. OPENIDM-4238

openidm-admin and anonymous have userName property with OrientDB repo but not with JDBC repo

    XMLWordPrintable

    Details

      Description

      With OpenIDM using OrientDB repo, openidm-admin has a userName:

      curl --header "X-OpenIDM-Password: openidm-admin" --header "X-OpenIDM-Username: openidm-admin" --request GET "http://localhost:8080/openidm/repo/internal/user/openidm-admin"
      {
        "_id": "openidm-admin",
        "_rev": "1",
        "roles": [
          {
            "_ref": "repo/internal/role/openidm-admin"
          },
          {
            "_ref": "repo/internal/role/openidm-authorized"
          }
        ],
        "userName": "openidm-admin",
        "password": "openidm-admin"
      }
      

      With OpenIDM using MySQL repo (and probably other JDBC repo, I did not check), openidm-admin has a no userName:

      curl --header "X-OpenIDM-Password: openidm-admin" --header "X-OpenIDM-Username: openidm-admin" --request GET "http://localhost:8080/openidm/repo/internal/user/openidm-admin"
      ResponseContent: {
        "_id": "openidm-admin",
        "_rev": "0",
        "password": "openidm-admin",
        "roles": [
          "openidm-admin",
          "openidm-authorized"
        ]
      }
      

      This is simply because we don't create the column in the openidm.sql init file for MySQL:

      INSERT INTO `openidm`.`internaluser` (`objectid`, `rev`, `pwd`, `roles`) VALUES ('openidm-admin', '0', 'openidm-admin', '["openidm-admin","openidm-authorized"]');
      

      Note:

      • This situation is probably here for a long time. This is not a regression.
      • This situation also happen for anonymous
      • I don't know of any impact this could have on the product, but it would be food to have homogenous properties for the different repos anyway

        Attachments

          Activity

            People

            Assignee:
            andi Andi Egloff
            Reporter:
            laurent.bristiel Laurent Bristiel [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: