Azure / Azure/azure-storage-python

blob_size is undefined in baseblobservice

Offen
#675 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Python
Sterne
343
Forks
243
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

### Which service(blob, file, queue) does this issue concern?
blob

### Which version of the SDK was used? Please provide the output of `pip freeze`.
v2.1.0

### What problem was encountered?
`blob_size` is undefined in line 2212 in `azure-storage-python/azure-storage-blob/azure/storage/blob/baseblobservice.py`

### Have you found a mitigation/solution?
Maybe we also set `blob_size` in the except branch in line 2189 and so we have it defined in both cases.

Note: for table service, please post the issue here instead: https://github.com/Azure/azure-cosmosdb-python.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

The bug is in azure-storage-python/azure-storage-blob/azure/storage/blob/baseblobservice.py, around lines 2189-2212. Start by tracing how blob_size is assigned in the normal and exception paths for the reported blob operation. Done means the operation no longer raises an undefined-variable error when the exception path is taken.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
azure, python
Bereich
cloud
Issue-Typ
Bug
Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Aktivitätsstatus
Veraltet
Klarheit
Klar beschrieben
Anfängerfreundlichkeit
45/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.