Uploaded image for project: 'MidPoint'
  1. MidPoint
  2. MID-3376

ReturnDefaultAttributes is ignored by connId

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: distant future
    • Component/s: None
    • Labels:
      None

      Description

      If midPoint needs to fetch all returned-by-default attributes plus a couple of other ones, it sets options like this:

      1. optionsBuilder.setReturnDefaultAttributes(true)
      2. optionsBuilder.setAttributesToGet(additional ones)
        See ConnectorInstanceIcfImpl.convertToIcfAttrsToGet(..) method.

      However, connId (at least attributesToGetSearchResultsHandler) ignores the ReturnDefaultAttributes flag:

      • If attributesToGet is set, they override all other settings. All attributes except those listed there are removed.

      If a connector supports ReturnDefaultAttributes, a workaround is to disable attributesToGet search request handler:

      <icfc:resultsHandlerConfiguration>
          <icfc:enableAttributesToGetSearchResultsHandler>false</icfc:enableAttributesToGetSearchResultsHandler>
      </icfc:resultsHandlerConfiguration>
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mederly Pavol Mederly
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: