Page MenuHomePhabricator

Truncate large strings in DarkConsole
ClosedPublic

Authored by epriestley on Jun 18 2015, 7:23 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 16 2026, 1:10 PM
Unknown Object (File)
Mar 14 2026, 12:54 AM
Unknown Object (File)
Mar 8 2026, 1:37 AM
Unknown Object (File)
Feb 11 2026, 5:59 AM
Unknown Object (File)
Feb 11 2026, 5:59 AM
Unknown Object (File)
Dec 23 2025, 12:25 AM
Unknown Object (File)
Dec 22 2025, 11:31 PM
Unknown Object (File)
Dec 17 2025, 8:54 AM
Subscribers

Details

Summary

Ref T8597. If a page issues a large query (like inserting a blob into file storage), we may try to utf8ize the entire thing. This is slow and pointless.

Instead, truncate tab data after 4096 bytes before sanitizing.

Test Plan

Adjusted limit to 256 bytes, saw long queries get truncated reasonably.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Truncate large strings in DarkConsole.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: btrahan.
btrahan edited edge metadata.
This revision is now accepted and ready to land.Jun 18 2015, 7:54 PM
This revision was automatically updated to reflect the committed changes.