huaweicloud-sdk-python-obs icon indicating copy to clipboard operation
huaweicloud-sdk-python-obs copied to clipboard

Issue: uploadFile() will fail when resuming a failed upload session, if optional parameter 'headers' is not supplied

Open 4ccsds opened this issue 3 years ago • 2 comments

reproduce: call uploadFile() without optional parameter 'headers' to start a resumable upload, manually break the uploading, then resume it by calling uploadFile() in same manner again, then Exception('some parts are failed when upload. Please try again') will be raised. This can be repeated.


uploadFile => _resumer_upload => _upload: if self._record is None: self._prepare() ### this line will populate self.headers ### but if self._record exists, self.headers will not be touched and could be None if optional parameter 'headers' is not supplied to uploadFile().


[email protected]

4ccsds avatar Jul 01 '21 03:07 4ccsds

Thanks! We will fix this bug in next version

mpb159753 avatar Jul 09 '21 09:07 mpb159753

new version has already released

mpb159753 avatar Jul 23 '21 08:07 mpb159753