When logging in with an exam user, retrieving user details fails, resulting in the following error:
HttpStatus: 502
Error: GetUserFailed
Data: "LmnApiService"
This behavior might make sense in this use case, as exam users may not require access to detailed user information. However, the resulting error notifications are confusing and do not clearly convey why the request fails.
Expected Behavior:
When logging in with an exam user, if user details are not available by design, the system should return a clearer message indicating that user details are restricted for exam users. This would improve the user experience and reduce confusion.
Steps to Reproduce:
Log in using an exam user account.
Attempt to access user details.
Observe the 502 error and confusing error message.
Suggested Solution:
Modify the error handling to provide a clearer notification, such as "User details are restricted for exam users," when access to user details is intentionally blocked for exam accounts. This would help users understand the limitation without misinterpreting it as a system error.
Example Error:
Instead of:
HttpStatus: 502, Error: GetUserFailed
Consider:
HttpStatus: 403, Error: UserDetailsRestricted, Message: "User details are not accessible for exam accounts."
Description:
When logging in with an exam user, retrieving user details fails, resulting in the following error:
This behavior might make sense in this use case, as exam users may not require access to detailed user information. However, the resulting error notifications are confusing and do not clearly convey why the request fails.
Expected Behavior:
When logging in with an exam user, if user details are not available by design, the system should return a clearer message indicating that user details are restricted for exam users. This would improve the user experience and reduce confusion.
Steps to Reproduce:
Suggested Solution:
Modify the error handling to provide a clearer notification, such as "User details are restricted for exam users," when access to user details is intentionally blocked for exam accounts. This would help users understand the limitation without misinterpreting it as a system error.
Example Error:
Instead of:
HttpStatus: 502, Error: GetUserFailed
Consider:
HttpStatus: 403, Error: UserDetailsRestricted, Message: "User details are not accessible for exam accounts."