Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 357046 - Command#toError truncates command strings to 120 characters which is too short
Summary: Command#toError truncates command strings to 120 characters which is too short
Status: CLOSED DUPLICATE of bug 353917
Alias: None
Product: TCF
Classification: Tools
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Eugene Tarassov CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-08 05:10 EDT by Daniel Thomas CLA
Modified: 2011-09-08 13:10 EDT (History)
1 user (show)

See Also:


Attachments
Bump maximum command length up to 512 (1.50 KB, application/octet-stream)
2011-09-08 05:10 EDT, Daniel Thomas CLA
eugene: iplog-
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Thomas CLA 2011-09-08 05:10:58 EDT
Created attachment 202978 [details]
Bump maximum command length up to 512

org.eclipse.tm.tcf.core.Command#toError(Object,true) truncates the length of the command text when producing the Exception to 120 characters. This can mean that the useful part of the command string is lost (for example when a long file path is being used you lose the bit that varies). A larger value would be more useful.

I have a patch to bump this up to 512 characters (though I am not sure as to what the reasoning is for placing any limit).
Comment 1 Eugene Tarassov CLA 2011-09-08 13:09:52 EDT
This is duplicate of bug 353917, which is already fixed in the latest code.

*** This bug has been marked as a duplicate of bug 353917 ***