• Error uploading Document with Safari, Chrome but not Firefox

  • We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #17021  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.
 #17057  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
 #17115  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
 #17121  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 ?
 #17158  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.

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.