Strange, there is a document in that folder:
C:\opt\tomcat7\data\storage\xwiki\Main\Employee+Terminate+
Procedure\~this\attachments\Contact+Supervisor.docx
But that document is no longer in this document and there are several
copies of it here (and it's the document referenced in the global file).
C:\opt\tomcat7\data\storage\xwiki\Main\Employee+Terminate+
Procedure\~this\deleted-attachments
In fact, every time I attempt a rollback, a new one is created. From this
morning:
C:\opt\tomcat7\data\storage\xwiki\Main\Employee+Terminate+
Procedure\~this\deleted-attachments\Contact+Supervisor.docx-1488551174572
On Fri, Mar 3, 2017 at 8:26 AM, Keith Davis <laurinkeithdavis(a)gmail.com>
wrote:
I'm not 100% sure what you mean, but these do
appear to match:
Page: Home / Employee Terminate Procedure
Opt:C:\opt\tomcat7\data\storage\xwiki\Main\Employee+Terminat
e+Procedure\~this
What is this file?
~GLOBAL_DELETED_ATTACHMENT_ID_MAPPINGS.xml
That file has a reference to a deleted file from this page (and a ton of
other ones).
On Thu, Mar 2, 2017 at 2:49 AM, Marius Dumitru Florea <
mariusdumitru.florea(a)xwiki.com> wrote:
The rollback operation fails inside the
FileSystem Attachment Store, at
this line
https://github.com/xwiki/xwiki-platform/blob/master/xwiki-pl
atform-core/xwiki-platform-store/xwiki-platform-store-filesy
stem-oldcore/src/main/java/org/xwiki/store/legacy/store/
internal/FilesystemAttachmentRecycleBinStore.java#L472 . 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.processActionPerfo
rm(RequestProcessor.java:425)
at org.apache.struts.action.RequestProcessor.process(RequestPro
cessor.java:228)
at org.apache.struts.action.ActionServlet.process(ActionServlet
.java:1913)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.j
ava: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.internalDoFi
lter(ApplicationFilterChain.java:230)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(App
licationFilterChain.java:165)
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:11
2)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFi
lter(ApplicationFilterChain.java:192)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(App
licationFilterChain.java:165)
at org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(Co
nversionFilter.java:127)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFi
lter(ApplicationFilterChain.java:192)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(App
licationFilterChain.java:165)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilte
r.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFi
lter(ApplicationFilterChain.java:192)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(App
licationFilterChain.java:165)
at org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFi
lter.doFilter(SetHTTPHeaderFilter.java:63)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFi
lter(ApplicationFilterChain.java:192)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(App
licationFilterChain.java:165)
at org.xwiki.container.servlet.filters.internal.SavedRequestRes
torerFilter.doFilter(SavedRequestRestorerFilter.java:208)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFi
lter(ApplicationFilterChain.java:192)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(App
licationFilterChain.java:165)
at org.xwiki.container.servlet.filters.internal.SetCharacterEnc
odingFilter.doFilter(SetCharacterEncodingFilter.java:111)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFi
lter(ApplicationFilterChain.java:192)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(App
licationFilterChain.java:165)
at org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFil
ter.java:134)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFi
lter(ApplicationFilterChain.java:192)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(App
licationFilterChain.java:165)
at org.apache.catalina.core.StandardWrapperValve.invoke(Standar
dWrapperValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(Standar
dContextValve.java:96)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(A
uthenticatorBase.java:474)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHo
stValve.java:140)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepo
rtValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(Abs
tractAccessLogValve.java:624)
at org.apache.catalina.core.StandardEngineValve.invoke(Standard
EngineValve.java:87)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAd
apter.java:349)
at org.apache.coyote.http11.Http11Processor.service(Http11Proce
ssor.java:783)
at org.apache.coyote.AbstractProcessorLight.process(AbstractPro
cessorLight.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(SocketPro
cessorBase.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.r
un(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.FilesystemAttachmentRe
cycleBinStore.getDocumentReference(FilesystemAttachmentRecyc
leBinStore.java:472)
at org.xwiki.store.legacy.store.internal.FilesystemAttachmentRe
cycleBinStore.deletedAttachmentFromProvider(FilesystemAttach
mentRecycleBinStore.java:445)
at org.xwiki.store.legacy.store.internal.FilesystemAttachmentRe
cycleBinStore.getAllDeletedAttachments(FilesystemAttachmentR
ecycleBinStore.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
--
Keith Davis
214-906-5183 <(214)%20906-5183>