Confuse on changelog v1.2 on loadContents

Greetings!

According to CommandLineTool v1.2 ChangeLog:

  • When using loadContents it now must fail when attempting to load a file greater than 64 KiB instead of silently truncating the data.

However it looks like v1.0 or v1.1 also fail when loadContents for large files instead of silently truncating. Am I missing something? I am using cwl-runner 3.0.20201203173111 for testing.

Thank you for your time in advance. I am trying to decide whether to revisit my previous v1.0 tools since they are written without concerning file size.

Hi @green555,

Can you provide a reproducible example that shows the error that you’re seeing?

Alexis

Hello @green555

We decided to make cwltool more conservative even for CWL v1.0 and v1.1, as an exception was decided to be better than silently truncating too-large files.