Uploaded image for project: 'Grouper'
  1. Grouper
  2. GRP-2845

JDBCSourceAdapter2 and getSubjectIdentifierAttributesAll breaks subject cache

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • None
    • 2.5.29
    • subject API
    • None
    • master branch on gitlab, 2.5.29 image, presumably previous versions as well.

    Description

      The JDBCSourceAdapter2 falls back to the JDBCSourceAdapter implementation of getSubjectIdentifierAttributesAll, which uses config parameters that aren't loaded by JDBCSourceAdapter2, resulting in getSubjectIdentifierAttributesAll to always only return the subject ID. This causes problems in the subject cache leading to errors like:

      In subject source: personSource the identifier: 'xxxx' can find subject: 'yyyy', but the attribute for that identifier is not configured in the subject source. In order for caching to be effective, please list all identifier attributes in the subject source. You can configure to suppress this log message in subject config.

      For the JDBCSourceAdapter2, there is no way for this to be accomplished with the current code. Implementing getSubjectIdentifierAttributesAll for the jdbc2 adapter is easy, so I'll implement and submit a PR on gitlab.

      Attachments

        1. [GRP-2845].patch
          2 kB
          Jonathan Johnson (unicon.net)

        Activity

          People

            chris.hyzer@at.internet2.edu Chris Hyzer (upenn.edu)
            zachary.hansonhart@at.internet2.edu Zachary Hanson-hart
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: