HomePhabricator

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
epriestleyPushed on Feb 25 2014, 8:35 PM
Reviewer
btrahan
Differential Revision
D8327: Truncate Conduit 'clientDescription' so we don't overflow the column
Parents
rPf0e6dc122109: Updated `.arcconfig` to match newer style configuration.
Branches
Unknown
Tags
Unknown

Event Timeline