With the vscan curation task enabled as part of the submission workflow, any file uploaded causes the following error to be thrown:
Looking at the code that calls the curation task I can see that no context is passed to the curate command at the next line. Mark Wood, who helped me analyze this bug, also noted that the curate method seems to want an object ID and not the object itself. So, probably we need to tweak line 617 a bit to pass the current context object, and to pass an object id. Or we can rewrite the curate method to "do the right thing" when it's passed an object.