The rollback operation fails inside the FileSystem Attachment Store, at
this line
https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwi…
. The problem is that
absolutePath.indexOf("/~this/")
return -1, which suggests that some paths within the FileSystem Attachment
Store folder are not right (as expected). I would check the paths related
to your target document.
Hope this helps,
Marius
On Wed, Mar 1, 2017 at 7:08 PM, Keith Davis <laurinkeithdavis(a)gmail.com>
wrote:
We have a page that fails when we attempt to rollback,
other pages seem to
work fine:
Detailed information:
Error number 0 in 11: Uncaught exception
com.xpn.xwiki.XWikiException: Error number 0 in 11: Uncaught exception
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:474)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:210)
at org.apache.struts.action.RequestProcessor.processActionPerform(
RequestProcessor.java:425)
at org.apache.struts.action.RequestProcessor.process(
RequestProcessor.java:228)
at org.apache.struts.action.ActionServlet.process(
ActionServlet.java:1913)
at org.apache.struts.action.ActionServlet.doGet(
ActionServlet.java:449)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.
internalDoFilter(ApplicationFilterChain.java:230)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:165)
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:112)
at org.apache.catalina.core.ApplicationFilterChain.
internalDoFilter(ApplicationFilterChain.java:192)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:165)
at org.xwiki.wysiwyg.server.filter.ConversionFilter.
doFilter(ConversionFilter.java:127)
at org.apache.catalina.core.ApplicationFilterChain.
internalDoFilter(ApplicationFilterChain.java:192)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:165)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(
WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.
internalDoFilter(ApplicationFilterChain.java:192)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:165)
at org.xwiki.container.servlet.filters.internal.
SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)
at org.apache.catalina.core.ApplicationFilterChain.
internalDoFilter(ApplicationFilterChain.java:192)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:165)
at org.xwiki.container.servlet.filters.internal.
SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
at org.apache.catalina.core.ApplicationFilterChain.
internalDoFilter(ApplicationFilterChain.java:192)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:165)
at org.xwiki.container.servlet.filters.internal.
SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
at org.apache.catalina.core.ApplicationFilterChain.
internalDoFilter(ApplicationFilterChain.java:192)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:165)
at org.xwiki.resource.servlet.RoutingFilter.doFilter(
RoutingFilter.java:134)
at org.apache.catalina.core.ApplicationFilterChain.
internalDoFilter(ApplicationFilterChain.java:192)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:165)
at org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.java:96)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(
AuthenticatorBase.java:474)
at org.apache.catalina.core.StandardHostValve.invoke(
StandardHostValve.java:140)
at org.apache.catalina.valves.ErrorReportValve.invoke(
ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(
AbstractAccessLogValve.java:624)
at org.apache.catalina.core.StandardEngineValve.invoke(
StandardEngineValve.java:87)
at org.apache.catalina.connector.CoyoteAdapter.service(
CoyoteAdapter.java:349)
at org.apache.coyote.http11.Http11Processor.service(
Http11Processor.java:783)
at org.apache.coyote.AbstractProcessorLight.process(
AbstractProcessorLight.java:66)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(
AbstractProtocol.java:789)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.
doRun(NioEndpoint.java:1437)
at org.apache.tomcat.util.net.SocketProcessorBase.run(
SocketProcessorBase.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown
Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
Source)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(
TaskThread.java:61)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.StringIndexOutOfBoundsException: String index out
of range: -29
at java.lang.String.substring(Unknown Source)
at org.xwiki.store.legacy.store.internal.
FilesystemAttachmentRecycleBinStore.getDocumentReference(
FilesystemAttachmentRecycleBinStore.java:472)
at org.xwiki.store.legacy.store.internal.
FilesystemAttachmentRecycleBinStore.deletedAttachmentFromProvider(
FilesystemAttachmentRecycleBinStore.java:445)
at org.xwiki.store.legacy.store.internal.
FilesystemAttachmentRecycleBinStore.getAllDeletedAttachments(
FilesystemAttachmentRecycleBinStore.java:295)
at com.xpn.xwiki.XWiki.rollback(XWiki.java:6560)
at com.xpn.xwiki.web.RollbackAction.action(RollbackAction.java:68)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:446)
... 47 more
--
Keith Davis
214-906-5183