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

End-user UI displays user name without accents (umlaut etc)

    XMLWordPrintable

    Details

    • Target Version/s:
    • Story Points:
      2
    • Sprint:
      2021.2 UI NIghtOwl, 2021.3 UI NightOwl, 2021.4 UI NightOwl, 2021.6 UI NightOwl
    • Support Ticket IDs:

      Description

      Reproducible on IDM 6.5.0.3 and 7.0.0-SNAPSHOT (build: 20200608083929, revision: ca359bb).

      TEST CASE:
      ~~~~~~~~

      • Create a managed user with givenName "user-test1", sn "Schött".
      • Upon login to end-user UI, this is displayed:
      Hello, User Test 1 Schott

      => The umlaut is not displayed. (Similar behaviour is observed in the User | Profile page.)

       

      The end-user-ui calls lodash _.startCase() before displaying givenName + sn.

      _.startCase() removes the umlaut and other accents:

      https://github.com/lodash/lodash/issues/3242
      "This is by design for v4. In v5, case methods will no longer _.deburr input."

       

      WORKAROUND:
      ~~~~~~~~~~~

      Remove the call to _.startCase().

      In end-user-ui/src/components/dashboard/widgets/WelcomeWidget.vue :

      $ diff end-user-ui/src/components/dashboard/widgets/WelcomeWidget.vue.orig end-user-ui/src/components/dashboard/widgets/WelcomeWidget.vue
      19c19
      <     import _ from 'lodash';
      ---
      >     // import _ from 'lodash';
      42c42
      < fullName = _.startCase(this.userDetails.givenName + ' ' + this.userDetails.sn);
      ---
      > fullName = this.userDetails.givenName + ' ' + this.userDetails.sn;

       
      In end-user-ui/src/components/profile/index.vue :

      $ diff end-user-ui/src/components/profile/index.vue.orig end-user-ui/src/components/profile/index.vue
      34c34
      < import _ from 'lodash';
      ---
      > // import _ from 'lodash';
      79c79
      < fullName = _.startCase(this.$root.userStore.state.givenName + ' ' + this.$root.userStore.state.sn);
      ---
      > fullName = this.$root.userStore.state.givenName + ' ' + this.$root.userStore.state.sn;

       

        Attachments

          Activity

            People

            Assignee:
            chuck.masucci Chuck Masucci
            Reporter:
            wei-yee.lum Wei-Yee Lum
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: