There are multiple issues (dating back quite a long time, it would appear) with uploads:
itertools.tee()'d iterator (but this may not be a big performance problem if sniffers were guaranteed to only read a few KB to a few MB)A few potential solutions:
Milestoned to 18.05 so it does not hold up the release but fixes should be backported to 18.01.
Not duplicates, but related, thanks.
Agreed, if someone is going to spend some time on this, good to look at these other issues as well.
I think we should move as much as possible of this out of Galaxy into its own lib that we can test separately and other projects can make use of the sniffers. Some general scientific sniffer library, if possible.
A fair amount of galaxy.datatypes is already fairly independent, I'd guess the most Galaxy-specific aspect of it is the registry (datatypes_conf.xml).
Most helpful comment
I think we should move as much as possible of this out of Galaxy into its own lib that we can test separately and other projects can make use of the sniffers. Some general scientific sniffer library, if possible.