Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

APICTL Publisher Access Control restrictions getting removed #2222

Closed
jichinthaka opened this issue Oct 17, 2023 · 2 comments
Closed

APICTL Publisher Access Control restrictions getting removed #2222

jichinthaka opened this issue Oct 17, 2023 · 2 comments

Comments

@jichinthaka
Copy link

jichinthaka commented Oct 17, 2023

Description

Hi Team,

We noticed that after executing the apictl init command and checking initiated Project/Meta-information/api.yaml file, only the accessControlRoles value was removed from the api.yaml file.

When Importing APIs Via Dev First Approach and Initialize the API Project using OpenAPI/Swagger Specification[1] approach only the issue is observed.

But, if we manually edit the initiated api.yaml file with the accessControlRoles and import the API, the restrictions in API are added properly.

The problem doesn't happen during import, but during project initialization.

[1] - https://apim.docs.wso2.com/en/3.2.0/learn/api-controller/importing-apis-via-dev-first-approach/

Regards
-Imesh

Steps to Reproduce

Steps to Reproduce,

  1. Add an environment,
    apictl add-env -e dev --apim https://localhost:9443
  2. Login to an environment
    apictl login dev -u admin -k
  3. Initialize an API Project using the OpenAPI/Swagger Specification approach
    petstore.yaml.zip
    swagger.yaml.zip,
    apictl init SwaggerPetstore-1.0.0 --definition petstore.yaml --oas /Users/chaveeka/Documents/Issues/TIETOOEMSUB-493/tien/swagger.yaml
  4. After executing the apictl init command you will observe that in the SwaggerPetstore-1.0.0/Meta-information/api.yaml , the accessControlRoles value will get removed.

Affected Component

APICTL

Version

APIM 3.2.0.298

Environment Details (with versions)

No response

Relevant Log Output

No response

Related Issues

No response

Suggested Labels

No response

@npamudika
Copy link

npamudika commented Oct 24, 2023

This is fixed with the APICTL 3.2.9 release - https://github.com/wso2/product-apim-tooling/releases/tag/v3.2.9

@npamudika
Copy link

Closing as this is N/A to the master branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants