Page MenuHomePhabricator

JsonContent prettification can puts large json pages over the size limit
Open, Needs TriagePublic


There's a thread on commons about how the JsonContent handler prettification's choice of using spaces not tabs, causes the size of the json to quadruple. In some cases of larger map geojson files, this is putting files over the size limit.

I propose that we do not prettify files if it makes them bigger than size limit (An alternative proposal might be to use tabs for larger files).

Event Timeline

So original user is complaining about the JsonConfig.Map content model. In the generic json it looks like prettification comes after the size check, so somehow you can create a page that is bigger than the allowed size