liflab / cornipickle

Versatile web application testing tool
4 stars 3 forks source link

Pre-evaluation throws a 500 Internal Server Error when the interpreter has media queries #33

Closed sylvainhalle closed 6 years ago

sylvainhalle commented 6 years ago

The HTTP request to /preevaluate sends an empty mediaqueries parameter. If the interpreter has a property that refers to media queries, it tries (and fails) to access elements in this empty list, causing an OutOfBoundsException that percolates all the way to an HTTP 500 response.