Skip to content

[Bug Report] - Adding a non-existant contact displays an exception message #697

@lee-coates

Description

@lee-coates

Describe the bug:

When adding a contact that does not exist in the pod, an exception message is displayed on the web page instead of informing the user that the contact could not be found. The exception message is long and likely would not make sense to an end user.

Current Error Message:
Add contact failed. Reason: Fetching the Resource at [http://localhost:3000/test-name/profile/card#me] failed: [404] [Not Found] <b0> <http://purl.org/dc/terms/title> "NotFoundHttpError"; <http://purl.org/dc/terms/description> "".

Expected behavior:

If the user adds a contact that does not exist, the displayed message should indicate that the contact could not be found in the pod. The message could further inform the user to ensure the contact's name matches the username the contact signed up for in the same pod.

Actual Behavior:

If the user adds a contact that does not exist, the displayed message includes technical information that is unhelpful to end users.

Screenshots:

codepdx_issue_add_contact_error_message

To Reproduce:

Steps to reproduce the behavior:

  1. Login and navigate to Add Contact
  2. Fill in the OIDC Provider and a bogus username
  3. Hit add contact
  4. See error

Desktop (please complete the following information):

  • OS: Fedora 41, KDE Plasma 6.2.3
  • Browser: Firefox
  • Version: 132.0.1 (64-bit)

Possible Fix:

If the caught exception notes that a correctly formatted username was not found, then the message should indicate the user does not exist or could not be found.

Additional context:

This has only been tested with a local pod. Testing with community pods is yet to be tested.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomers

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions