flexion / ef-cms

An Electronic Filing / Case Management System.
23 stars 10 forks source link

BUG: Users are being created without a userId #10459

Closed zachrog closed 2 months ago

zachrog commented 3 months ago

Describe the Bug Some users in production do not have a custom:userId attribute in cognito. This means that they have no userId when they log in and the system will crash. Below is a report of affected cognito users.

prod-users-no-custom-userId.txt

This issue may be related to bug #10353

Business Impact/Reason for Severity Users are unable to log into the Dawson system

In which environment did you see this bug? production

Who were you logged in as?

What were you doing when you discovered this bug? (Using the application, demoing, smoke tests, testing other functionality, etc.)

To Reproduce Unknown how this bug is occurring. It can be confirmed that DAWSON is creating these malformed users.

Expected Behavior All users get created and retain their custom:userId

Actual Behavior Sometimes users are created without a userId or their userId is being removed.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Cause of Bug, If Known

Process for Logging a Bug:

Severity Definition:

Definition of Ready for Bugs(Created 10-4-21)

Definition used: A failure or flaw in the system which produces an incorrect or undesired result that deviates from the expected result or behavior. (Note: Expected results are use cases that have been documented in past user stories as acceptance criteria and test cases, and do not include strange behavior unrelated to use cases.)

The following criteria must be met in order for the development team to begin work on the bug.

The bug must:

Process: If the unexpected results are new use cases that have been identified, but not yet built, new acceptance criteria and test cases should be captured in a new user story and prioritized by the product owner.

If the Court is not able to reproduce the bug, add the “Unable to reproduce” tag. This will provide visibility into the type of support that may be needed by the Court. In the event that the Court cannot reproduce the bug, the Court will work with Flexion to communicate what type of troubleshooting help may be needed.

Definition of Done (Updated 4-14-21)

Product Owner

Engineering

ttlenard commented 3 months ago

Some Investigation notes:

I am seeing similar errors in the logs for a handful of these users. For the users that I looked into, I see that they are getting an error that their user already exists, even though they only first created their account.

image.png image.png

For the users with duplicate accounts, I believe that this is related to bug #10353. I was able to recreate this by adjusting this setting for my mouse, and I was able to duplicate this issue:

Here is a real user:

image.png

Here are the logs from test. Notice I was able recreate it:

image.png

To recreate, adjust your mouse settings to this:

image.png

And you can see the results in Cognito. Two accounts created:

image.png

Do we just need to disable the continue button after the first click? Seems this might be part of the problem?

image.png
Mwindo commented 3 months ago

I'm updating #10353 with some findings that are relevant to this bug.

Mwindo commented 3 months ago

Part of this is explained by #10353 (see comment thread there). The other part is explained by users who encountered errors on the old Cognito-hosted signup page. We will run a script to fix these users' accounts so that they can actually use DAWSON.

Mwindo commented 3 months ago

@jimlerza Feel free to reassign this as needed now that you have a handle on it!