Uploaded image for project: 'Runtime'
  1. Runtime
  2. RUNTIME-3219

An error occured when the usergroup tool is opened with a deleted user

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.2.5, 4.3.0
    • 4.2.3
    • None
    • None
    • 4.3 M3

      TypeError: Cannot read property 'fullname' of null
      TypeError: Cannot read property 'fullname' of null
      at constructor._getUserCb (http://cms.atd31.fr/plugins/core-ui/resources/js/Ametys/plugins/coreui/users/UsersGroupsTool.js:66:65)
      at constructor.<anonymous> (http://cms.atd31.fr/plugins/extjs6/resources/ext-all.js:7101:28)
      at constructor.<anonymous> (http://cms.atd31.fr/plugins/core-ui/resources/js/Ametys/data/ServerComm.js:442:22)
      at Array.forEach (<anonymous>)
      at Object.ExtArray.forEach (http://cms.atd31.fr/plugins/extjs6/resources/ext-all.js:3302:17)
      at constructor._callProcessed (http://cms.atd31.fr/plugins/core-ui/resources/js/Ametys/data/ServerComm.js:439:13)
      at constructor.<anonymous> (http://cms.atd31.fr/plugins/core-ui/resources/js/Ametys/data/ServerComm.js:868:37)
      at Array.forEach (<anonymous>)
      at Object.ExtArray.forEach (http://cms.atd31.fr/plugins/extjs6/resources/ext-all.js:3302:17)
      at constructor._dispatch (http://cms.atd31.fr/plugins/core-ui/resources/js/Ametys/data/ServerComm.js:863:25)
      

          [RUNTIME-3219] An error occured when the usergroup tool is opened with a deleted user

          You can reproduce, by entering this in the console.

          Ametys.tool.ToolsManager.openTool("uitool-usersgroups", {login: "gerard", populationId: "bouchard"})
          

          Raphaël Franchet added a comment - You can reproduce, by entering this in the console. Ametys.tool.ToolsManager.openTool( "uitool-usersgroups" , {login: "gerard" , populationId: "bouchard" })

          This tool is no listening for the bus. It only displays the group of one user. So when you come back, it still displays the groups of a given user.
          Two possible evolutions: listing to the bus OR multiple tools.

          But for the moment, I just fixed the issue.

          Raphaël Franchet added a comment - This tool is no listening for the bus. It only displays the group of one user. So when you come back, it still displays the groups of a given user. Two possible evolutions: listing to the bus OR multiple tools. But for the moment, I just fixed the issue.

          Laurence Aumeunier added a comment - - edited

          If this is the tool for users of a group, the tool should be just in "outofdate" state, no ?
          If should be closed or go to empty state only if the group was deleted

          Laurence Aumeunier added a comment - - edited If this is the tool for users of a group, the tool should be just in "outofdate" state, no ? If should be closed or go to empty state only if the group was deleted

          The tool should close (with message?) or go to empty is it supports it

          Raphaël Franchet added a comment - The tool should close (with message?) or go to empty is it supports it

            raphael Raphaël Franchet
            fravetier Frederic Ravetier (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: