-
Notifications
You must be signed in to change notification settings - Fork 3.4k
[App Service] Skip symlinks in file processing #33145
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
base: dev
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -67,6 +67,11 @@ def zip_contents_from_dir(dirPath, lang): | |||||||||||||||||||
|
|
||||||||||||||||||||
| for filename in files: | ||||||||||||||||||||
| absname = os.path.abspath(os.path.join(dirname, filename)) | ||||||||||||||||||||
|
|
||||||||||||||||||||
| if os.path.islink(absname): | ||||||||||||||||||||
| logger.warning("Skipping symbolic link: %s", absname) | ||||||||||||||||||||
| continue | ||||||||||||||||||||
|
|
||||||||||||||||||||
|
Comment on lines
+70
to
+74
|
||||||||||||||||||||
| if os.path.islink(absname): | |
| logger.warning("Skipping symbolic link: %s", absname) | |
| continue | |
| if os.path.islink(absname): | |
| logger.warning("Skipping symbolic link: %s", absname) | |
| continue |
Copilot
AI
Apr 7, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new symlink-skipping behavior is user-visible for webapp up packaging (symlinked files will no longer be included). Please add/adjust a test to cover this case (e.g., create a temp dir with a symlink and assert it is excluded from the produced zip) to prevent regressions across platforms.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This path is being skipped intentionally, but it's logged at WARNING level. In the same function, other intentionally skipped content (e.g., .env) is logged at INFO; consider using INFO (or DEBUG) here as well to avoid alarming/noisy warnings during normal deployments.