Details
-
Bug
-
Resolution: Fixed
-
Blocker
-
0.8
-
None
-
None
-
Unknown
-
N/A
-
N/A
-
Description
When displaying a merged CR with a deletion request we obtain an error with following stack trace:
Caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getMergeDocumentResult' in class org.xwiki.contrib.changerequest.script.ChangeRequestScriptService threw exception org.xwiki.contrib.changerequest.ChangeRequestException: The previous version of the document has been removed, comparison is not possible. at xwiki:ChangeRequest.Code.ChangeRequestSheet[line 186, column 59] at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:308) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:235) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:368) at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:704) at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:75) at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:242) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:147) at org.apache.velocity.runtime.directive.Foreach.renderBlock(Foreach.java:309) at org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:279) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:304) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:147) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:171) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:439) at org.apache.velocity.Template.merge(Template.java:358) at org.apache.velocity.Template.merge(Template.java:262) at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:280) ... 212 more Caused by: org.xwiki.contrib.changerequest.ChangeRequestException: The previous version of the document has been removed, comparison is not possible. at org.xwiki.contrib.changerequest.internal.storage.DefaultFileChangeStorageManager.getPreviousDocumentFromFileChange(DefaultFileChangeStorageManager.java:482) at org.xwiki.contrib.changerequest.internal.DefaultChangeRequestManager.getMergeDocumentResult(DefaultChangeRequestManager.java:335) at org.xwiki.contrib.changerequest.script.ChangeRequestScriptService.getMergeDocumentResult(ChangeRequestScriptService.java:365) at jdk.internal.reflect.GeneratedMethodAccessor855.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:571) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:554) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:221)