Skip to content

[UI] Create button state not reset after API Product creation failure due to duplicate resources across base APIs #4461

@VenukshiMendis

Description

@VenukshiMendis

Description

When creating an API Product, if identical resources (e.g. GET /hello ) are selected from multiple base APIs, the backend correctly returns a 400 Bad Request response indicating a conflict.
However, in this scenario, the Publisher UI fails to handle the error state properly — Create & Publish button remains stuck in the “Creating revision” state, instead of returning back to its previous state after the error response is received.

Image

Steps to Reproduce

  1. Create two base APIs (e.g., API1 and API2) that both contain a resource GET /users/{id}.
  2. Create a new API Product in the Publisher.
  3. Add the same resource (GET /users/{id}) from both base APIs.
  4. Click Create API Product.

Version

4.6.0

Environment Details (with versions)

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions