-
Bug
-
Resolution: Duplicate
-
Low
-
None
-
5.11.1
-
None
-
Severity 2 - Major
-
Steps to reproduce
- Create a DiffContext using DiffContext.Builder and don't set a maxLineLength (or set it to something short).
- Call a a diff command using that diff context
Expected result:
Diff is streamed into callback like normal
Actual result:
DiffOutputHandler fails reading diff header because the max line length is too short.
Example:
scmService.getPullRequestCommandFactory(pullRequest) .diff(new PullRequestDiffCommandParameters.Builder().maxLineLength(100).build(), new AbstractDiffContentCallback(){});
Workaround
Set the maxLine length to something long enough to read the full paths involved.
- duplicates
-
BSERV-10916 Diff command fails if DiffContext.maxLineLength is not set
-
- Gathering Impact
-