You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix: linear check for wildcards in output paths #408
The check for wildcards in output paths (pro_tes/ga4gh/tes/versions.py, new since v0.4.0) uses a regular expression whose running time grows quadratically with the length of the path on some inputs. It runs on the request thread for every new task, and outputs[].path has no length limit other than the size limit of request bodies. A long path can therefore block an API worker for longer than the Gunicorn timeout.
Found in the pre-release review of 0.5.0.
Fix
Replace the regular expression with a linear scan that finds the same wildcards.
Limit the size of paths in validate_task (4096 bytes, as PATH_MAX on Linux); longer ones get 400 Bad Request.
Activity