api-manager icon indicating copy to clipboard operation
api-manager copied to clipboard

Incosistant behaviour on thumbnail upload and remove scenarios [APIM 4.1.0] [PUBLISHER] [RESTFul APIs]

Open Sumudu-Sahan opened this issue 9 months ago • 0 comments

Description

ISSUE 1 - Behavior of the thumbnail attribute

  • When calling the publisher REST APIs after removing the existing thumbnail image of the API, sending wrong values under the hasThumbnail attribute.

ISSUE 2 - Showing a wrong message

  • When removing an existing thumbnail image from an API and saving it, the publisher UI is showing an uploading success message.

Steps to Reproduce

ISSUE 1 - Behavior of the thumbnail attribute

  • Start the pack and go to the publisher portal.
  • Create an API.
  • Under the Basic Info section, upload a thumbnail image and save it.
  • Then remove the thumbnail from the API via the same publisher UI.
  • After that, execute the below 3 REST APIs.

Get all APIs [1] Screenshot 2024-05-21 at 13 22 38

Get details of the API [2] Screenshot 2024-05-21 at 13 22 54

Get the thumbnail of the API [3] Screenshot 2024-05-21 at 13 23 04

ISSUE 2 - Showing a wrong message

  • Go to the publisher portal and create an API.
  • Then under the Basic Info section, upload a thumbnail image and save it.
  • Then try to remove it.
  • Able to see a wrong UI message (upload success) after removing the thumbnail.

https://github.com/wso2/api-manager/assets/18566908/fdc6c07d-0e54-4f1b-9971-4dfaf0a0ea17

[1] https://apim.docs.wso2.com/en/4.1.0/reference/product-apis/publisher-apis/publisher-v3/publisher-v3/#tag/APIs/operation/getAllAPIs [2] https://apim.docs.wso2.com/en/4.1.0/reference/product-apis/publisher-apis/publisher-v3/publisher-v3/#tag/APIs/operation/getAPI [3] https://apim.docs.wso2.com/en/4.1.0/reference/product-apis/publisher-apis/publisher-v3/publisher-v3/#tag/APIs/operation/getAPIThumbnail

Affected Component

APIM

Version

4.1.0

Environment Details (with versions)

No response

Relevant Log Output

No response

Related Issues

No response

Suggested Labels

No response

Sumudu-Sahan avatar May 22 '24 06:05 Sumudu-Sahan