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 }}
Repository navigation
market_mad/s3/import reads READx_LENGTH instead of READ_LENGTH from marketplace template #8194
Description
In src/market_mad/remotes/s3/import (line 79), the S3 marketplace chunk size attribute is read from XPath MARKETPLACE/TEMPLATE/READx_LENGTH instead of MARKETPLACE/TEMPLATE/READ_LENGTH:
Meanwhile, FireEdge (src/fireedge/src/modules/resources/Marketplace/Forms/CreateForm/Steps/Configuration/fieldsS3.js) and the S3 marketplace documentation define the attribute as READ_LENGTH. As a result, a configured READ_LENGTH in the marketplace template is ignored during import and read_length always falls back to DEFAULT_READ_LENGTH (32 MB).
To Reproduce
Create an S3 Marketplace with READ_LENGTH = "64" in its template.
Import an image into the S3 Marketplace (src/market_mad/remotes/s3/import).
Observe that xpath(xml, 'MARKETPLACE/TEMPLATE/READx_LENGTH') returns nil and import uses DEFAULT_READ_LENGTH (32 MB).
Expected behavior src/market_mad/remotes/s3/import should read MARKETPLACE/TEMPLATE/READ_LENGTH (with a fallback to MARKETPLACE/TEMPLATE/READx_LENGTH for backward compatibility).
Activity
B OpenNebula#8194: Reject non-positive S3 import read lengths
B #8194: Read READ_LENGTH in market_mad/s3/import
B OpenNebula/one#8183, OpenNebula/one#8191, OpenNebula/one#8194, Open…