HomePhorge

Truncate Conduit 'clientDescription' so we don't overflow the column

Description

Truncate Conduit 'clientDescription' so we don't overflow the column

Summary: We store the arc commandline in this 255-character column, but it can be more than 255-characters long. If it's huge, truncate it.

Test Plan:
Executed:

arc list --conduit-uri=http://local.aphront.com:8080/ --conduit-version 6.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

Works fine after this patch.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Differential Revision: https://secure.phabricator.com/D8327

Details

Provenance
epriestleyAuthored on Feb 25 2014, 12:35 PM
themackabuPushed on Mar 25 2025, 8:07 PM
Parents
rPf0e6dc122109: Updated `.arcconfig` to match newer style configuration.
Branches
Unknown
Tags
Unknown

Event Timeline