overture-stack / score

Secure Cloud Object REsource: file transfer microservice
https://www.overture.bio/products/score
GNU Affero General Public License v3.0
18 stars 10 forks source link

Generate Logical Parts for object downloads when no .meta file is available #413

Closed Azher2Ali closed 3 weeks ago

Azher2Ali commented 3 weeks ago

When objectSpec is null, we retrieve objectMetadata to create a new objectSpec. This process involves calculating a list of parts using the divide method, which takes offset and length as inputs. If forExternalUse is false and length is 0, we utilize meta.getContentLength() to get the metadata length, which helps in generating the list of parts for creating the objectSpec