-
Notifications
You must be signed in to change notification settings - Fork 201
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
[BUG] Extractor replacing encoded characters in policies #555
Comments
|
We also facing the same issue. |
Hi, I'm also facing the same. I tried switching between versions v4.10.2 and v5.1.2 but no luck. This creates a major issue when we re-deploy the extracted file back to APIM portal (as a backup). I hope this will get resolved as soon as possible! |
We were able to work around my original example by re-writing the apim policy to add query parameter policies to include them rather than adding them onto the end of the url rewrite (which is likely the better way to do it in general anyway) but it did mean updating pre-existing APIs that have worked on the extract with older versions and could mainfest elsewhere so be good to have it resolved. |
Hi, |
Hi, We're having the same issue with version v5.1.4. |
Did you try the latest v6? Also did you try the suggestion by @ochadwick-westminster ? |
Hi, I no longer have the issue with v5.0.1 or latest v6.
All my APIM instances are updated with this release so I can't be 100% sure but I no longer have the issue when running the extractor using Azure DevOps pipeline. I also tried to retrieve the policy using the REST API endpoint and I don't have the issue either. If someone else who didn't get the APIM update can try to call this REST API endpoint and check if you have the encoding issue? When retrieving the policy using the REST API, if you don't have the You can check the Activity logs of your APIM to check if you got the update or not yet. |
Please take a look at @vandriot response. |
Please remember to close the issue if you error has been resolved |
@waelkdouh - I checked this again as mentioned by @vandriot and I don't have this issue anymore. Thanks for the help!!! @ochadwick-westminster - maybe you can check this at your end and close this one. Thanks. |
Release version
v4.10.2
Describe the bug
Whilst extracing another, unrelated API, we have encountered an issue where 2 pre-existing API's that are included in the extractor config. These APIs both contain inbound policies in the policy.xml that were, for example:
When the extract now runs, the encoded & characters are getting set back to ampersands. Nothing has been changed on these APIs and the version of APIOps we are using, 4.10.2, has not been changed.
The API in APIM contains the encoded characters, and APIOps has successfully extracted these APIs mulitple times previously without incident. I have tired running APIOps locally on my machine and the problem seems to be in the extract process, as the files extracted contain the problem before any further pipeline steps are applied.
I have also tried running locally with the latest release but encounter the same problem.
The policy when viewed in APIM looks like:
However when viewed in the repo after extraction, it shows:
Expected behavior
The policy content is preserved exactly as defined in APIM.
Actual behavior
The encoded characters are being decoded when extracted.
Reproduction Steps
I'm unclear what steps to add as this seems to have started happening with no changes on either the APIs in question or the APIOps version being used.
The text was updated successfully, but these errors were encountered: