Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-9018

Unable to manually import default XAR or attach a default XE/XAR to a page using Oracle 11G

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Cannot Reproduce
    • Affects Version/s: 5.0-milestone-2
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      Steps to reproduce:
      1)

      • create a XEM Instance using Oracle. Make sure your are on a clean build.
      • Start the instance and install the UI using DW (I used Tomcat 7 and Oracle 11G R2)
      • either on the Main wiki, or on a Workspace subwiki, attach a default xar found on maven.xwiki.org. I used xwiki-manager-ui-all-4.4.1.xar.
      • you will get a window in window error with a CSRF error. Reminds me of the Inception movie.

      2)

      • activate superadmin user
      • try to manually import the default XAR after logging in with superadmin
      • image attached

      Also, I tested with custom XAR's, and some of them failed, some of them worked. Can't tell what is with this odd behaviour
      Image attached.
      Only reproduces on Oracle.

      Attached stacktrace log

      2013-04-10 17:34:43,712 [http://192.168.0.10:8080/xwiki/wiki/sorinello/upload/Main/WebHome] ERROR c.x.x.w.Utils                  - Failed to process MultiPart request 
      com.xpn.xwiki.XWikiException: Error number 11008 in 11: Exception while parsing uploaded file
      Wrapped Exception: Processing of multipart/form-data request failed. /home/xwiki/Desktop/DatabaseTest/apache-tomcat-7.0.32/temp/upload__e2f4132_13df44ef405__8000_00000041.tmp (No such file or directory)
      	at com.xpn.xwiki.plugin.fileupload.FileUploadPlugin.loadFileList(FileUploadPlugin.java:260) ~[xwiki-platform-legacy-oldcore-5.0-milestone-2.jar:na]
      	at com.xpn.xwiki.plugin.fileupload.FileUploadPlugin.loadFileList(FileUploadPlugin.java:180) ~[xwiki-platform-legacy-oldcore-5.0-milestone-2.jar:na]
      	at com.xpn.xwiki.web.Utils.handleMultipart(Utils.java:593) ~[xwiki-platform-legacy-oldcore-5.0-milestone-2.jar:na]
      	at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:249) [xwiki-platform-legacy-oldcore-5.0-milestone-2.jar:na]
      	at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:123) [xwiki-platform-legacy-oldcore-5.0-milestone-2.jar:na]
      	at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) [struts-1.2.9.jar:1.2.9]
      	at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236) [struts-1.2.9.jar:1.2.9]
      	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) [struts-1.2.9.jar:1.2.9]
      	at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432) [struts-1.2.9.jar:1.2.9]
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:641) [servlet-api.jar:na]
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) [servlet-api.jar:na]
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) [catalina.jar:7.0.32]
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [catalina.jar:7.0.32]
      	at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:120) [xwiki-platform-legacy-oldcore-5.0-milestone-2.jar:na]
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) [catalina.jar:7.0.32]
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [catalina.jar:7.0.32]
      	at org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) [xwiki-platform-wysiwyg-server-5.0-milestone-2.jar:na]
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) [catalina.jar:7.0.32]
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [catalina.jar:7.0.32]
      	at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66) [xwiki-platform-webdav-server-5.0-milestone-2.jar:na]
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) [catalina.jar:7.0.32]
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [catalina.jar:7.0.32]
      	at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208) [xwiki-platform-container-servlet-5.0-milestone-2.jar:na]
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) [catalina.jar:7.0.32]
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [catalina.jar:7.0.32]
      	at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111) [xwiki-platform-container-servlet-5.0-milestone-2.jar:na]
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) [catalina.jar:7.0.32]
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [catalina.jar:7.0.32]
      	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) [catalina.jar:7.0.32]
      	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) [catalina.jar:7.0.32]
      	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) [catalina.jar:7.0.32]
      	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) [catalina.jar:7.0.32]
      	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) [catalina.jar:7.0.32]
      	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929) [catalina.jar:7.0.32]
      	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) [catalina.jar:7.0.32]
      	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) [catalina.jar:7.0.32]
      	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002) [tomcat-coyote.jar:7.0.32]
      	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585) [tomcat-coyote.jar:7.0.32]
      	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312) [tomcat-coyote.jar:7.0.32]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [na:1.6.0_22]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [na:1.6.0_22]
      	at java.lang.Thread.run(Thread.java:679) [na:1.6.0_22]
      Caused by: org.apache.commons.fileupload.FileUploadBase$IOFileUploadException: Processing of multipart/form-data request failed. /home/xwiki/Desktop/DatabaseTest/apache-tomcat-7.0.32/temp/upload__e2f4132_13df44ef405__8000_00000041.tmp (No such file or directory)
      	at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:371) ~[commons-fileupload-1.2.2.jar:1.2.2]
      	at com.xpn.xwiki.plugin.fileupload.FileUploadPlugin.loadFileList(FileUploadPlugin.java:250) ~[xwiki-platform-legacy-oldcore-5.0-milestone-2.jar:na]
      	... 41 common frames omitted
      Caused by: java.io.FileNotFoundException: /home/xwiki/Desktop/DatabaseTest/apache-tomcat-7.0.32/temp/upload__e2f4132_13df44ef405__8000_00000041.tmp (No such file or directory)
      	at java.io.FileOutputStream.open(Native Method) ~[na:1.6.0_22]
      	at java.io.FileOutputStream.<init>(FileOutputStream.java:209) ~[na:1.6.0_22]
      	at java.io.FileOutputStream.<init>(FileOutputStream.java:160) ~[na:1.6.0_22]
      	at org.apache.commons.io.output.DeferredFileOutputStream.thresholdReached(DeferredFileOutputStream.java:178) ~[commons-io-2.4.jar:2.4]
      	at org.apache.commons.io.output.ThresholdingOutputStream.checkThreshold(ThresholdingOutputStream.java:224) ~[commons-io-2.4.jar:2.4]
      	at org.apache.commons.io.output.ThresholdingOutputStream.write(ThresholdingOutputStream.java:128) ~[commons-io-2.4.jar:2.4]
      	at org.apache.commons.fileupload.util.Streams.copy(Streams.java:103) ~[commons-fileupload-1.2.2.jar:1.2.2]
      	at org.apache.commons.fileupload.util.Streams.copy(Streams.java:66) ~[commons-fileupload-1.2.2.jar:1.2.2]
      	at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:366) ~[commons-fileupload-1.2.2.jar:1.2.2]
      	... 42 common frames omitted
      2013-04-10 17:34:43,713 [http://192.168.0.10:8080/xwiki/wiki/sorinello/upload/Main/WebHome] WARN  o.x.c.i.DefaultCSRFToken       - CSRFToken: Secret token verification failed, token: "null", stored token: "CBL8QowSF23EmPqXEp4hvg" 
      2013-04-10 17:34:43,977 [http://192.168.0.10:8080/xwiki/wiki/sorinello/view/Main/WebHome?resubmit=%2Fxwiki%2Fwiki%2Fsorinello%2Fupload%2FMain%2FWebHome%3Fsrid%3DHcyq2Xr3&xback=%2Fxwiki%2Fwiki%2Fsorinello%2Fview%2FMain%2FWebHome&xpage=resubmit] WARN  o.x.v.i.DefaultVelocityEngine  - Deprecated usage of method [com.xpn.xwiki.web.XWikiMessageTool.get] in sorinello:Panels.WorkspaceInformationPanel@1,19 
      
      

        Attachments

          Activity

            People

            • Assignee:
              vmassol Vincent Massol
              Reporter:
              sorinello Sorin Burjan
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response: