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

Endpoint security modal displays incorrect data after custom parameter edit/delete

Open Piumal1999 opened this issue 6 months ago • 11 comments

Description

After editing a custom parameter name or deleting parameters in the OAuth endpoint security settings, the edit parameter row displays incorrect data, which can be confusing and may lead to misconfiguration.

Steps to Reproduce

Scenario 1:

  1. Add the following endpoint security configuration to a production or sandbox endpoint of an API:
    • Set the endpoint security type to OAuth2 - Client Credentials.
    • Fill in the mandatory fields.
    • Click Add New Parameter, add three custom parameters, and click Save.
  2. Reopen the endpoint security dialog box and delete the second custom parameter.
  3. Click the Edit button for the second custom parameter.
  4. The dialog will display the details of the deleted custom parameter instead of the correct data.

Scenario 2:

  1. Add the following endpoint security configuration to a production or sandbox endpoint of an API:
    • Set the endpoint security type to OAuth2 - Client Credentials.
    • Fill in the mandatory fields.
    • Click Add New Parameter, add three custom parameters, and click Submit.
  2. Reopen the endpoint security dialog box and click the Edit button for the first custom parameter.
  3. Edit the name of the parameter and click Save.
  4. Click the Edit button for what is now the second custom parameter.
  5. The dialog will display an incorrect parameter name and value.

https://github.com/user-attachments/assets/945b5869-b606-420b-bebc-709f520c943a

https://github.com/user-attachments/assets/f87dbbc5-3ec0-46b5-8089-6949f9a96f25

Version

4.5.0

Environment Details (with versions)

N/A

Piumal1999 avatar Jun 02 '25 09:06 Piumal1999

Hi @Piumal1999 , this looks interesting! Shall I take this up and start working on it for Hacktoberfest?

rdwaynedehoedt avatar Sep 22 '25 16:09 rdwaynedehoedt

Hi @Piumal1999 ,I’d like to reserve this issue. I can work on fixing the parameter edit/delete handling so that the correct parameter data is always displayed in the OAuth endpoint security dialog.

Iduranga-Uwanpriya avatar Sep 23 '25 01:09 Iduranga-Uwanpriya

Hi @Piumal1999 , I would like to work on this issue. Could you please assign it to me?

vimukthiwaththegama avatar Sep 24 '25 05:09 vimukthiwaththegama

Since @rdwaynedehoedt requested first, you could start on this. I'll assing this to you

chamilaadhi avatar Sep 25 '25 06:09 chamilaadhi

@chamilaadhi Thanks a lot for assigning this to me!

rdwaynedehoedt avatar Sep 28 '25 05:09 rdwaynedehoedt

Hi @rdwaynedehoedt how is the progress of this issue?

tharikaGitHub avatar Oct 07 '25 10:10 tharikaGitHub

Hi @rdwaynedehoedt have you started working on this issue already? Appreciate if you can provide regular updates here.

tharikaGitHub avatar Oct 14 '25 05:10 tharikaGitHub

Hi @vimukthiwaththegama are you still interested in taking this issue?

tharikaGitHub avatar Oct 17 '25 10:10 tharikaGitHub

Hi @tharikaGitHub ! If its still open, I'd love to give it a try

developer-diganta avatar Oct 21 '25 16:10 developer-diganta

Hi @developer-diganta Sure Thanks. I have assigned the issue to you. You can start working on it.

tharikaGitHub avatar Oct 22 '25 10:10 tharikaGitHub

Hi @developer-diganta Do you have any update on the progress of this issue?

tharikaGitHub avatar Oct 28 '25 12:10 tharikaGitHub