-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
blueprint: Import parses unwanted hidden files #4984
Comments
Thank you for your feedback. This has been routed to the support team for assistance. |
route to CXP team |
@simonkeyd Apologies for the late reply. Thanks for reaching out to us and sharing this feedback. We are looking into this issue and we will provide an update. In the meantime, I am following up with the reviewers on your above PR for the approval. |
@simonkeyd Your above PR #4985 has been reviewed and the comments have been added for you to consider. Please check once you get a chance. Also could you please try the below action plan and check if that helps: Could you please try to update the Windows system language setting ? Control panel -> Clock and Region -> Region -> Administrative -> Change system locale -> Check Beta: Use Unicode UTF-8 for worldwide language support. The change will require reboot. Please let me know if you still face the same issue. Awaiting your reply. |
@simonkeyd I wanted to do quick follow-up to check if you had a chance to look at my above comment. Please let us know if you are still facing the issue after following my above plan. Awaiting your reply. |
Blueprint extension was parsing all files in the artifacts folder including hidden files. This unwanted behavior can also raise errors (eg. UnicodeDecodeError). This commit fixes this by preventing hidden Linux and Windows files from being parsed. closes Azure#4984
@navba-MSFT in most cases one wouldn't want hidden files to be parsed as they can contain unchecked code/content. For example in my particular use case |
This is autogenerated. Please review and update as needed.
Describe the bug
blueprint
import will import all files in theartifacts
folder including hidden Linux files and might raise anUnicodeDecodeError
(eg. for Vim swap files which often include non-ASCII chars)Command Name
az blueprint import Extension Name: blueprint. Version: 0.3.1.
Errors:
To Reproduce:
vim generic_blueprint/artifacts/generic_artifact.json
az blueprint import --name generic_blueprint --input-path ./generic_blueprint --management-group deadbeef-dead-beef-8badf00d1337
Expected Behavior
Import works flawlessly
Environment Summary
Additional Context
The text was updated successfully, but these errors were encountered: