Error message displays when user who created note has been deleted.

Description

 Steps to reproduce:

  1. Create a user with notes permissions and permissions to any app that has the notes helper app (Users, Courses, eholdings, Licenses, Agreements, Requests) 

  2. Create a note 

  3. Login as another user and delete the user you just created 

  4. Go to the record that includes the note that was created by the now deleted user

  5. Click on the Note to view the Note record  

Expected outcome: User is able to view note 

BE will return null if a user does not exist.
FE will handle it like this:
Show Unknown user - if the person who created the note does not exist AND show Unknown user - if the person who updated the note does not exist 

 

 

Actual outcome:

Note that user is able to view the note under the Notes accordion AND click on the Edit link in the Notes list under the Notes accordion BUT once the user clicks on the Notes row then the error displays. Also user is able to assign that note to another record without issue. 

 

CSP Request Details

None

CSP Rejection Details

None

Potential Workaround

None

Attachments

4
  • 11 Aug 2022, 06:33 AM
  • 05 Aug 2022, 11:27 AM
  • 19 Jul 2022, 03:49 PM
  • 19 Jul 2022, 03:30 PM

Checklist

hide

TestRail: Results

Activity

Show:

Pavlo Smahin August 11, 2022 at 1:02 PM

, I think that it's probably due to how deletion in mod-users works. Maybe there is some scheduled job that deletes users. If it's a problem we should investigate this in mod-users.

Khalilah Gambrell August 11, 2022 at 11:54 AM

  - the delay maybe related to re-indexing? I have no clue.   an hour seems a very long time to see the Source updated on a Note. Any thoughts as to why?

Valery_Pilko August 11, 2022 at 8:14 AM

Update:
After 1 hour, "Source" field displays the "Unknown user" value. Probably, there is a time lag between deleting of user and updating the source value.

Valery_Pilko August 11, 2022 at 6:38 AM

Verified at MG bugfest environment - if user who created / edited "Note" record was deleted, the other users can open this note and no errors displayed.
Tested for the following apps: Users, Courses, eHoldings, Licenses, Agreements, Requests.
See attached screencast:

Also, at "Source" field is being displayed the username of deleted user instead of "Unknown user" value.
, was it expected behavior?

Oleksii Petrenko August 8, 2022 at 4:23 PM

Deployed to MG bf. Please proceed with verification.

Done

Details

Assignee

Reporter

Priority

Story Points

Sprint

Development Team

Spitfire

Fix versions

Release

Morning Glory (R2 2022) Bug Fix

RCA Group

Related dependency upgrade

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs
Created July 19, 2022 at 3:54 PM
Updated October 17, 2022 at 7:59 AM
Resolved August 5, 2022 at 12:59 PM
TestRail: Cases
TestRail: Runs

Flag notifications