wso2 / api-manager

All issues, tasks, improvements and new features of WSO2 API Manager
Apache License 2.0
34 stars 8 forks source link

Devportal visibility role permission not getting reflected properly in registry resources #2485

Closed niranRameshPeiris closed 8 months ago

niranRameshPeiris commented 8 months ago

Description

When we update an API by adding a developer visibility role, the registry resource permission related to the new role won't be applied correctly.

Steps to Reproduce

The steps required to reproduce the issue are as below.

  1. Create three roles called "Internal/devportalrole1", "Internal/devportalrole2" and "Internal/publisherrole".
  2. Log into the publisher portal and create an API called "testapi".
  3. Add the "Internal/publisherrole" role under publisher visibility restricted roles.
  4. Add the "Internal/devportalrole1" role under devportal visibility restricted roles.
  5. Save the changes, deploy a new revision, and publish the API.
  6. Then go back to the publisher portal and add the "Internal/devportalrole2" role under devportal visibility restricted roles.
  7. Save the changes, and deploy a new revision.

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

tharikaGitHub commented 8 months ago

Closing as the public PR is merged.

GihanAyesh commented 8 months ago

Fix PR: https://github.com/wso2/carbon-apimgt/pull/12286