When using a download plugin, the size doesn't get updated/checked #1392
Labels
Discussion_Needed
developers should discuss this issue.
Sugar
nice to have features... not super important.
v2compatibility
problem with sr3 and v2 work together.
v3
issue deferred to or affects version 3
work-around
a work-around is provided, mitigating the issue.
I'm not sure that this behavior is wrong. It does seem to cause v2 compatibility issues though.
When a download plugin is used, the part of the code that compares the downloaded file size with the expected size in the message is not executed.
This means that there's no check to see if the downloaded size is wrong, and if there's no size already set in the message from the upstream source, the sarra/subscriber will not set it. This causes issues for downstream v2 subscribers due to #1391.
There's a lot of ways we could change this, if we want to.
Some options that come to mind are:
FlowCB.download
to return a status code and downloaded size (could be optional), then modify the main flow code to look at the returned size.Flow.download
. (fixes the redundancy issue)sarracenia/sarracenia/flow/__init__.py
Lines 2236 to 2307 in 372e77b
Edit: I think this might be the same for identity, it doesn't appear to get set when the download plugin is used, but I need to adjust the options in the config and look at the code to be 100% sure
The text was updated successfully, but these errors were encountered: