Dirty database field with 295-char text crashed a static site's entire build
Russian apartment listings site podbor-minuta.ru experienced a full static build failure when a scraped database record stored a 295-character description sentence in a district name field. The site's page generator used that field to construct URL paths, and the static builder attempted to create a filesystem directory exceeding the 255-byte limit, causing an ENAMETOOLONG error. The bug went undetected for some time because Docker layer caching masked the failing build step, and it only surfaced during a clean CI run. Developers fixed the issue by adding a length guard in the URL segment generator to reject any path segment over 120 characters, and by filtering malformed district values at the database read stage. The incident highlights that any external or scraped data feeding into static file paths must be validated, and a single bad record should skip gracefully rather than bring down the whole build.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in