Page 1 of 1

Error uploading Document with Safari, Chrome but not Firefox

PostPosted:Thu Jun 28, 2012 9:21 am
by hzen
Hi,

I'm using OpenKM 5.1.9. When uploading document to specific folder, I've got error "OKM-005015 Path not found"
and therefore cannot upload document to system.

This errror occurs if I use Safari or Chrome, but does not occurs if using IE or FF.

Here is log from server:
Code: Select all
2012-06-28 15:59:25,919 WARN  [com.openkm.jcr.JCRUtils] node == NULL
2012-06-28 15:59:25,920 WARN  [com.openkm.servlet.frontend.FileUploadServlet] okm:root/Tài liệu nội bộ/Tài liệu các phòng/Kỹ thuật
com.openkm.core.PathNotFoundException: okm:root/Tài liệu nội bộ/Tài liệu các phòng/Kỹ thuật
	at com.openkm.module.direct.DirectDocumentModule.create(DirectDocumentModule.java:238)
	at com.openkm.module.direct.DirectDocumentModule.create(DirectDocumentModule.java:98)
	at com.openkm.api.OKMDocument.create(OKMDocument.java:71)
	at com.openkm.servlet.frontend.FileUploadServlet.doPost(FileUploadServlet.java:225)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
	at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
	at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
	at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:420)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
	at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:437)
	at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:366)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
	at java.lang.Thread.run(Thread.java:662)
Caused by: javax.jcr.PathNotFoundException: okm:root/Tài liệu nội bộ/Tài liệu các phòng/Kỹ thuật
	at org.apache.jackrabbit.core.NodeImpl.getNode(NodeImpl.java:2752)
	at com.openkm.module.direct.DirectDocumentModule.create(DirectDocumentModule.java:143)
	... 25 more
I appreciate any idea to fix that problems.

thank you.

Re: Error uploading Document with Safari, Chrome but not Fir

PostPosted:Sun Jul 01, 2012 5:01 pm
by jllort
Are you sure about is a browser problem, could be you're uploading a document with special characters when using chrome and not when using ff or ie ? can you test with same document in both browsers to be sure is not document problem.

I suggest upgrade to latest openkm 5.1.10 too

Re: Error uploading Document with Safari, Chrome but not Fir

PostPosted:Thu Jul 05, 2012 4:37 am
by hzen
Yeah, I have tried to upload the same multiple documents using Chrome, FF, IE, Safari.
Some document contains UTF-8 character, some does not ( like test.txt). But the problem always occurs.

I think this is browser's problem because i faced many errors like this (cannot view, layout broken...) when using OpenKM in Chrome or Safari.

I wonder if this is GWT compatibility problems or OpenKM's.

I will test 5.1.10 soon and report result

Re: Error uploading Document with Safari, Chrome but not Fir

PostPosted:Thu Jul 05, 2012 6:31 am
by jllort
This kind of problem was caused because path string when is sended by server, special characters has some changes, for it this kind of url use encode in server and decode in html. This is an older bug solved with special characters name. For what you're talking this new bug will be if folder path where you want to uploading document has special characters ? could you take a look on server.log to see which path is written in log and which is the original path, are different ? wrong special characters ?

Re: Error uploading Document with Safari, Chrome but not Fir

PostPosted:Mon Jul 09, 2012 3:28 am
by hzen
Dear Jllort,

But I still wonder why this kind of problem only occurs with Safari, Chrome and never with Firefox, IE?.
Because URL Decoding should be the same for every browser.

Re: Error uploading Document with Safari, Chrome but not Fir

PostPosted:Mon Jul 09, 2012 10:04 am
by jllort
I do not know, really us for develop we use firefox and chrome and we have not detect this problem. Could be several reasons, some chrome addin ? some bug in chrome version etc... as I suggest take a look on server.log to see if path is written there correctly or not. And try latest openkm version.