Perhaps related to #642078: Can not manually attach files to release nodes without previewing but as I was working on some changes to project_release_check_supported_versions(), if you manually attach a file to a new release node, it looks like the record for that file doesn't actually appear in the {project_release_file} table as project_release_nodeapi() is invoked for the new release node. Therefore, inside any functions invoked by project_release_nodeapi() and down can't assume the new file is in the DB yet. While we shouldn't really be testing for the file at this point (see #642096: Provide a better mechanism for sorting releases with version_extra defined: introduce version_extra_weight for more), we should see why the record isn't there yet, and perhaps fix that. Could bite us later, or bite someone else trying to do interesting things with release nodes.