Summary: when trying to import a XAR file, I get a 400: Unable to parse form content error in the log.
Steps:
I downloaded the xwiki-platform-distribution-flavor-jetty-hsqldb-11.9 zip file.
Then changed the webapps\xwiki\WEB-INF\hibernate.cfg.xml file to point to MySQL.
Created the database and added permissions.
Started the wiki, created the admin user and installed the standard flavor.
Administer Wiki => Content => Export => generated a 127MB file.
Tried to import it and get the error.
I don’t get a stack trace, but only this in the request log:
0:0:0:0:0:0:0:1 - - [20/Nov/2019:07:20:43 +0000] “POST /xwiki/bin/get/XWiki/XWikiPreferences?xpage=packagedescriptor&package=xwikiBackup.xar HTTP/1.1” 200 464343
0:0:0:0:0:0:0:1 - - [20/Nov/2019:07:20:46 +0000] “GET /xwiki/webjars/wiki%3Axwiki/xwiki-platform-tree-webjar/11.9/tree.min.css?evaluate=true HTTP/1.1” 200 31686
0:0:0:0:0:0:0:1 - - [20/Nov/2019:07:20:54 +0000] “POST /xwiki/bin/import/XWiki/XWikiPreferences?editor=globaladmin§ion=Import HTTP/1.1” 400 10130
and this in the output log:
2019-11-20 15:17:31.712:INFO:oejshC.xwiki:http://localhost:8080/xwiki/rest/notifications/count?media=json&userId=xwiki%3AXWiki.Admin&useUserPreferences=true¤tWiki=xwiki&async=true&_=1574234245030: RestletServlet: [Restlet] Attaching application: org.xwiki.rest.internal.XWikiRestletJaxRsApplication@70222514 to URI: /xwiki/rest
2019-11-20 15:20:54.012:WARN:oejs.HttpChannel:qtp1254526270-22: handleException /xwiki/bin/import/XWiki/XWikiPreferences org.eclipse.jetty.http.BadMessageException: 400: Unable to parse form content
Any way to find out why or what’s going on?
(Also, did a test on the xar file using 7zip and it says no errors)