Azure / Azure/run-command-handler-linux
Script filename from SasUri cannot contain /
Offen
- Vorherrschende Sprache
- Go
- Sterne
- 2
- Forks
- 16
- Ø Merge
- 1 T. 9 Std.
- Gemergte PRs (30 T.)
- 2
Beschreibung
I have a script source SasUri like:
```
https://xxx.blob.windows.net/container/foo/bar.sh
```
According to:
https://github.com/Azure/run-command-handler-linux/blob/6efb77e0fec9b1ff87c980d1a207f0fc73493b8a/pkg/download/blob.go#L82-L99
`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.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Bewertung
Dieses Issue wurde noch nicht bewertet.