raintank / grafana

Grafana - A Graphite & InfluxDB Dashboard and Graph Editor
http://grafana.org
Other
42 stars 4 forks source link

text input fields need their size checked before writting to the DB #572

Closed woodsaj closed 8 years ago

woodsaj commented 8 years ago

A users has tried to create a check that can post data by adding the request body to the "headers" setting.

The size of the body posted excedes the size of the SQL table column (2048 chars). The content of this column is encoded as JSON before being written, but because the columned was trimmed at 2048chars, the when read back the json cant be marshaled.

this check should have been rejected and never added to the DB due to the settings field being too large.