elasticio / sftp-component

SFTP component for the elastic.io platform
Apache License 2.0
2 stars 3 forks source link

Polling Trigger Does Not Appear to Respect MAX File Size #111

Closed jhorbulyk closed 2 years ago

jhorbulyk commented 2 years ago

Component Bug Report

Description

Polling Trigger Does Not Appear to Respect MAX File Size

Component Version

Steps to Reproduce

  1. Create a file that is slightly larger than the max allowed upload size of 100 MB. For example in Unix run the command dd if=/dev/zero of=minNotAllowed.file bs=104857601 count=1
  2. Upload this file to an otherwise empty folder in the SFTP server.
  3. Create a flow with a single step: SFTP.PollFiles
    • Directory Name: Point to directory created above
    • Emit Behaviour: Emit Individually
    • Leave other fields blank
  4. Generate a sample

Actual Result

Expected Result

Workaround(s)

Be honest and don't upload too big files.

jhorbulyk commented 2 years ago

It looks like the MAX_FILE_SIZE env var has been set to 104857600 on app.elastic.io which the component interprets as 104857600 MB = 100 TB. This is likely the problem.