-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
None
-
None
-
None
-
Severity 3 - Minor
-
0
-
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 the hunk header because the max line length is too short.
Example:
scmService.getPullRequestCommandFactory(pullRequest) .diff(new PullRequestDiffCommandParameters.Builder().maxLineLength(0).build(), new AbstractDiffContentCallback(){});
Workaround
Set the maxLine length to something long enough to read the header hunks
- is duplicated by
-
BSERV-10961 Diff command fails for long paths
-
- Closed
-