You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 25, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 25, 2026. It is now read-only.
The class com.google.cloud.storage.spi.v1.HttpStorageRpc in google-cloud-storage provides two methods named open() that return the location header from the HTTP response. Both methods fail to properly close the underlying HTTP response returned from com.google.api.client.http.HttpRequest.
The javadoc on com.google.api.client.http.HttpRequest.execute() states:
Callers should call HttpResponse.disconnect when the
returned HTTP response object is no longer needed.
However, HttpResponse.disconnect does not have to be
called if the response stream is properly closed
However the usage in HttpStorageRpc.open() extracts the location header and returns it directly without closing the http response:
Activity
fix: call response.disconnect() after resolving resumable upload url