[xwiki-users] Attachment name encoding issue
Hello, I'm using Rest API to send some attachments into my XWiki as a multipart post (pages/xxx/attachments). Posting works fine and attachments appear and are loadable correctly. However decoding special characters such as é in attachment names fails. Uploading attachments via XWiki interface works well. For an examle: "méthodologie" is UTF-8 URI escaped as "m%C3%A9thodologie" and then used in the post method. Filename appears as "méthodologie" in XWiki, which indicates that XWiki uses different charset to do the decoding (%C3 => Ã, %A9 => ©). However, my XWiki is setup to use UTF-8. Forcing iso-8859-1 encoding leads to "m%E9thodologie" and attachment names is decoded correctly. Is this intended? How should I encode characters that are not represented in iso-8859-1 encoding? Also Tika Parser throws an error at files bigger than 100 000 characters (.pdfs with a lot of images). Skipping images in .pdf would help a lot. I didn't find a way to increase the limit via XWiki configuration files. Caused by: org.apache.tika.sax.TaggedSAXException: Your document contained more than 10 characters, and so your requested limit has been reached. To receive the full text of the document, increase your limit. (Text up to the limit is however available). Any help is appreciated
[xwiki-users] (no subject)
vlet.ServletHandler.doScope(ServletHandler.java:515) at org.eclipse.jetty.server.session.SessionHandler. doScope(SessionHandler.java:185) at org.eclipse.jetty.server.handler.ContextHandler. doScope(ContextHandler.java:1061) at org.eclipse.jetty.server.handler.ScopedHandler.handle( ScopedHandler.java:141) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle( ContextHandlerCollection.java:215) at org.eclipse.jetty.server.handler.HandlerCollection. handle(HandlerCollection.java:110) at org.eclipse.jetty.server.handler.HandlerWrapper.handle( HandlerWrapper.java:97) at org.eclipse.jetty.server.Server.handle(Server.java:499) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310) at org.eclipse.jetty.server.HttpConnection.onFillable( HttpConnection.java:257) at org.eclipse.jetty.io.AbstractConnection$2.run( AbstractConnection.java:540) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob( QueuedThreadPool.java:635) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run( QueuedThreadPool.java:555) at java.lang.Thread.run(Thread.java:745) *org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [com.xpn.xwiki.doc.XWikiDocument#-8266574047497816716]*So my guess is that hibernate fails to load the entities and has to load each entity multiple times? Is this result of a corrupt database due upgrade or something else? This error repeats multiple times for each DocumentTree loading ( and also some other resources ). I have also tried to increase the amount of documents cached. Any help is appreciated. - Ekku Laukkarinen