com.cenqua.crucible.revision.diff.patchDiff.PatchException: Patch did not apply cleanly to FishEye repository at line 3072

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • h3.Steps to reproduce: # Create a CRLF ending file and upload it to a SVN repository # Modify the file and get the diff # Create a Crucible review # Upload the diff/patch to the review through REST: {noformat} curl -u admin:admin -X POST -d @patch http://localhost:8060/rest-service/reviews-v1/CR-15/patch -H "Content-Type: application/json" {noformat} # The uploaded patch fail to anchor to a revision # The following appear in the log: {noformat} 2012-12-25 21:03:38,113 DEBUG [btpool0-13 ] fisheye.perf ProfilingServletFilter-logRequest - start request POST /json/cru/CR-15/anchor-patch/?stripCount=0&anchorSource=svntest&anchorPath=branches%2FbranchA&patchId=21 sessionid=1xorcruijqztcabbwisefqzi1 2012-12-25 21:03:38,126 DEBUG [btpool0-13 ] fisheye.perf RepositoryHandle-acquire - acquire engine on svntest, count=1 2012-12-25 21:03:38,129 DEBUG [btpool0-13 ] fisheye.app SvnThrottledClient-start - Executing cat -r 15 http://localhost:8080/subversion/branches/branchA/DemoApp.cpp@15 2012-12-25 21:03:38,186 DEBUG [btpool0-13 ] fisheye.app PatchSource-validateAnchorContent - Anchor validation failed com.cenqua.crucible.revision.diff.patchDiff.PatchException: Patch did not apply cleanly to FishEye repository at line 3072 at com.cenqua.crucible.revision.source.PatchSource.applyPatchDiff(PatchSource.java:216) at com.cenqua.crucible.revision.source.PatchSource.validateAnchorContent(PatchSource.java:322) at com.cenqua.crucible.util.PatchAnchorHelper.anchorPatchRevisions(PatchAnchorHelper.java:223) at com.atlassian.crucible.actions.create.AnchorPatchAjaxAction.execute(AnchorPatchAjaxAction.java:195) at sun.reflect.GeneratedMethodAccessor1133.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) {noformat} # When trying to set the anchor manually from the UI, the following error appear: {noformat} Crucible tried to anchor your patch to 'svntest', but there was conflicting content in 'branches/branchA/DemoApp.cpp' at revision '15'. You may not be able to see full context diffs. {noformat} # Adding the diff/patch file directly from the UI works Tested attaching from UI will have the same problem for FishEye/Crucible 2.8.2
    via by Kah Loun Foong [Atlassian],
  • h3.Steps to reproduce: # Create a CRLF ending file and upload it to a SVN repository # Modify the file and get the diff # Create a Crucible review # Upload the diff/patch to the review through REST: {noformat} curl -u admin:admin -X POST -d @patch http://localhost:8060/rest-service/reviews-v1/CR-15/patch -H "Content-Type: application/json" {noformat} # The uploaded patch fail to anchor to a revision # The following appear in the log: {noformat} 2012-12-25 21:03:38,113 DEBUG [btpool0-13 ] fisheye.perf ProfilingServletFilter-logRequest - start request POST /json/cru/CR-15/anchor-patch/?stripCount=0&anchorSource=svntest&anchorPath=branches%2FbranchA&patchId=21 sessionid=1xorcruijqztcabbwisefqzi1 2012-12-25 21:03:38,126 DEBUG [btpool0-13 ] fisheye.perf RepositoryHandle-acquire - acquire engine on svntest, count=1 2012-12-25 21:03:38,129 DEBUG [btpool0-13 ] fisheye.app SvnThrottledClient-start - Executing cat -r 15 http://localhost:8080/subversion/branches/branchA/DemoApp.cpp@15 2012-12-25 21:03:38,186 DEBUG [btpool0-13 ] fisheye.app PatchSource-validateAnchorContent - Anchor validation failed com.cenqua.crucible.revision.diff.patchDiff.PatchException: Patch did not apply cleanly to FishEye repository at line 3072 at com.cenqua.crucible.revision.source.PatchSource.applyPatchDiff(PatchSource.java:216) at com.cenqua.crucible.revision.source.PatchSource.validateAnchorContent(PatchSource.java:322) at com.cenqua.crucible.util.PatchAnchorHelper.anchorPatchRevisions(PatchAnchorHelper.java:223) at com.atlassian.crucible.actions.create.AnchorPatchAjaxAction.execute(AnchorPatchAjaxAction.java:195) at sun.reflect.GeneratedMethodAccessor1133.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) {noformat} # When trying to set the anchor manually from the UI, the following error appear: {noformat} Crucible tried to anchor your patch to 'svntest', but there was conflicting content in 'branches/branchA/DemoApp.cpp' at revision '15'. You may not be able to see full context diffs. {noformat} # Adding the diff/patch file directly from the UI works Tested attaching from UI will have the same problem for FishEye/Crucible 2.8.2
    via by Kah Loun Foong [Atlassian],
    • com.cenqua.crucible.revision.diff.patchDiff.PatchException: Patch did not apply cleanly to FishEye repository at line 3072 at com.cenqua.crucible.revision.source.PatchSource.applyPatchDiff(PatchSource.java:216) at com.cenqua.crucible.revision.source.PatchSource.validateAnchorContent(PatchSource.java:322) at com.cenqua.crucible.util.PatchAnchorHelper.anchorPatchRevisions(PatchAnchorHelper.java:223) at com.atlassian.crucible.actions.create.AnchorPatchAjaxAction.execute(AnchorPatchAjaxAction.java:195) at sun.reflect.GeneratedMethodAccessor1133.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597)
    No Bugmate found.