Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 3.26.1, 3.27.0
-
Fix Version/s: 3.28.0
-
Labels:
Description
In PyPiHostedFacetImpl on getIndex() createIndexAsset() is called which creates a TempBlob that is never cleaned up.
I believe the TempBlob created should be wrapped in a try block like the others so this TempBlob is deleted after getIndex
```
private Asset createIndexAsset(final String name,
final StorageTx tx,
final String indexPath,
final Bucket bucket) throws IOException
```
Should be
```
try (TempBlob tempBlob = storageFacet.createTempBlob(new ByteArrayInputStream(html.getBytes(UTF_8)), HASH_ALGORITHMS);
```