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)
Sun, May 25, 10:00 PM
Unknown Object (File)
Wed, May 7, 6:54 PM
Unknown Object (File)
Tue, May 6, 7:23 AM
Unknown Object (File)
Sun, May 4, 12:00 PM
Unknown Object (File)
Apr 21 2025, 10:18 PM
Unknown Object (File)
Apr 21 2025, 8:04 PM
Unknown Object (File)
Apr 20 2025, 8:45 AM
Unknown Object (File)
Apr 5 2025, 4:08 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.