raintank / worldping-api

Worldping Backend Service
Other
25 stars 18 forks source link

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

Open woodsaj opened 8 years ago

woodsaj commented 8 years ago

Issue by woodsaj Friday Mar 04, 2016 at 09:12 GMT Originally opened as https://github.com/raintank/grafana/issues/572


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.