Azure / apiops

APIOps applies the concepts of GitOps and DevOps to API deployment. By using practices from these two methodologies, APIOps can enable everyone involved in the lifecycle of API design, development, and deployment with self-service and automated tools to ensure the quality of the specifications and APIs that they’re building.
https://azure.github.io/apiops
MIT License
309 stars 181 forks source link

Value of policy for get operation is getting replaced by ASCII character after running extractor file #590

Open Anand2042 opened 2 months ago

Anand2042 commented 2 months ago

Release version

APIOPS toolkit for Azure APIM

Describe the bug

In the get operation, user is applying one rewrite policy and the value of policy get changed when extracted the file while running the extraction file in pipeline and then user publish the pipeline but it start showing error while running the operation.

Expected behavior

In the get operation, when user is running extraction file then the value of policy should be as it is required and set in portal.

Actual behavior

But when user is running the extraction file then some character get replaced with ASCIII character in the value of policy and then manually modifying the changes in pipeline to publish the pipeline successfully.

Reproduction Steps

User using the rewrite policy in get and then running the extractor file. After extraction we can notice in file of policy created in artifacts that some of the value of policy is getting changed with ASCII character.

github-actions[bot] commented 2 months ago
  Thank you for opening this issue! Please be patient while we will look into it and get back to you as this is an open source project. In the meantime make sure you take a look at the [closed issues](https://github.com/Azure/apiops/issues?q=is%3Aissue+is%3Aclosed) in case your question has already been answered. Don't forget to provide any additional information if needed (e.g. scrubbed logs, detailed feature requests,etc.).
  Whenever it's feasible, please don't hesitate to send a Pull Request (PR) our way. We'd greatly appreciate it, and we'll gladly assess and incorporate your changes.
waelkdouh commented 2 months ago

Can you please check if there is an existing issue that addresses the same issue? Please search both open and closed issues.

Anand2042 commented 1 month ago

yes, searched the open and closed issues and reviewing it whether our issue is mentioned there or not.

guythetechie commented 1 month ago

Can you post samples? What does your original policy look like, and what does it look like after extraction?