Script filename from SasUri cannot contain /
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 45/100
Research direction
Start in pkg/download/blob.go at the filename extraction and file opening code referenced in the issue. Trace how the SasUri path becomes fileName, then verify handling for foo/bar.sh and paths containing .. or /. Done means a script URI with nested path components can be processed without the missing-directory failure or unsafe path behavior.
Written by the indexing model from the issue text.
Description
I have a script source SasUri like:
https://xxx.blob.windows.net/container/foo/bar.sh
According to:
fileName becomes foo/bar.sh. However, directory foo doesn't exist so the open below always fails.
Suggest using fixed file name like a GUID. Otherwise you have to deal with .. and / in paths which could cause a lot of security troubles.
- Dominant language
- Go
- Stars
- 2
- Forks
- 16
- Avg merge
- 22h 41m
- Merged PRs (30d)
- 3
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Azure/run-command-handler-linux
-
Difficulty 4/5 3-5 days Newbie friendliness 20/100
All issues in Azure/run-command-handler-linux
Similar issues
-
feature-request helm
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
gravitational/teleport#69785 ·
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
crossplane/crossplane#7859 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100