rackspace / php-opencloud

The PHP SDK for OpenStack clouds
developer.rackspace.com
Other
451 stars 250 forks source link

Fix segment name to avoid corrupted retrieval of a file with 10 or more segments #680

Closed evach-vf closed 8 years ago

evach-vf commented 8 years ago

Zero-padding the segment number to 5 digits allows to support the minimum chunk size of 1MB and the maximum of 5GB.

Without padding, when retrieving a file segmented in 10 or more segments, it will be reassembled in the wrong order and thus will be rendered useless.

Fixes issue #679.

coveralls commented 8 years ago

Coverage Status

Coverage remained the same at 88.818% when pulling d8aa69dc655f0654ce07e5ad3dc3ae9452ab7e76 on vanilla:working into 3ffee7b90884a3c556578db8ff9ab2b20b65f18c on rackspace:working.