OneIdentity / IdentityManager.Imx

HTML5 source code for Identity Manager web apps
Other
26 stars 107 forks source link

System entitlements: Restoring view with multiple target systems fails #136

Closed rogerholtenok closed 1 month ago

rogerholtenok commented 2 months ago

Hi.

I've had some trouble with saved views that include multiple target systems. I can reproduce the error by doing the following:

  1. Filter on multiple target systems: bilde

  2. The target systems show up correctly as separate chips and can be removed: bilde

  3. Save it as a view, reset views, and restore the saved view. The following error message is shown along with an empty chip that can't be removed: bilde

I believe I tracked the problem down to the function getSelectedFilterFromName in imxweb/projects/qbm/src/lib/data-source-toolbar/data-source-toolbar.component.ts. Target systems are stored as a comma separated string, but the function doesn't split them up before passing them to findFilterOptionFromValue. It fails to find the filter option and ends up returning an empty DataModelFilterOption object.

Kind regards, Roger Holten

SebastianWeberQuest commented 1 month ago

Hi @rogerholtenok,

you're right. This works not like expected. So I've created an internal ticket --> 455931