Skip to content

[Web App Marketplace] Handle empty or Missing responses properly #19

@sacheeramesh

Description

@sacheeramesh

Handle Empty or Missing Groups in Web App Marketplace

Description

In the Web App Marketplace, when calling the getGroups function and no groups are found, the system does not handle this scenario properly. If no groups exist, the API should return an empty array instead of causing errors.
If groups are mandatory for the app’s process, the UI should handle it gracefully by displaying a proper error message or guidance to the user. The current behavior is not acceptable as it breaks the user flow.

Expected Behavior

  • getGroups should:
    • Return an empty array ([]) when no groups are available.
    • Not throw unhandled errors.
  • If groups are mandatory for the app process:
    • Display a clear, user-friendly error message in the UI (e.g., “No groups available. Please contact the administrator.”).
    • Prevent the user from proceeding until the issue is resolved.

Actual Behavior

  • When no groups exist, the form or app process fails unexpectedly instead of handling the scenario gracefully.

Steps to Reproduce

  1. Navigate to the Web App Marketplace.
  2. Trigger the process that calls getGroups when no groups exist.
  3. Observe that the system fails or behaves unpredictably.

Notes

Labels

bug, backend, ui, error-handling, web-app-marketplace

Image

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions