• File Uploader problem

  • OpenKM has many interesting features, but requires some configuration process to show its full potential.
OpenKM has many interesting features, but requires some configuration process to show its full potential.
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.
 #13774  by toroman
 
Hi,
I just upgraded from 5.1.8 to 5.1.9 with success, but I have a problem that remains.
(I'm running the server on Ubuntu 10.04 64bit)

on Ubuntu client (also 10.04 64bit), the File Uploader shows, (right click shows a context menu - About and Exit)
but drag and drop operation is not functioning. The applet seems not to detect it.

I see people reporting File Uploader work on Linux.

The problem is on the client side, as I get the same behavior on the demo site. Is it a problem with 64 bit java?
Tried Firefox and Chrome.

Best regards,
Dragan

P.S. also it seems from time to time the Notes edit refuses to receive focus in the text edit area - the buttons are still working. But after refreshing the page in browser it is functioning again.
 #13794  by jllort
 
File uploader could generate some confusion, because while is uploading there's no message that's doing it. I suggest upload a little document to ensure is running or not, and in case is not running open java console to taking a look if there's some error
 #13810  by toroman
 
Of course I tried a small file first. (I have tested the applet on Win and it is working)
As I explained the problem is not local.. It does not work on OpenKM demo also from my 64bit ubuntu.
I did not have much time, so I just quickly tried to take a look at the Java console, but funny enough the applet was not listed... Will take a look later, but it would help if I get a positive feedback that someone got it working on Linux with 64bit Java.

It acts like it does not receive drag/drop (the mouse pointer suggesst that) ...

So, Is it working for ANYBODY using 64bit Java on Linux? If Yes, I will find out what is wrong, but if not...
 #13812  by toroman
 
Also, have you experienced Notes not receiving focus until browser refresh?
It is woking ok with Internet Explorer but Chrome/Firefox sometimes (often) behave like this.
Should I start a new topic?
 #13820  by pavila
 
According with http://issues.openkm.com/view.php?id=2043 and as requested by several users, I have made some improvements in the Uploader Applet. I think this version is more user friendly. You can view last changes at http://demo.openkm.com

If you still see the old Uploader, clean browser and Java Plugin cache.

Comments are welcome.
 #14015  by toroman
 
Sorry for a bit late reply... busy days.

Yes, the new uploader is working. Do I have to install a snapshot to get it?

Regards
 #14034  by jllort
 
You can find our nighly build at integration.openkm.com
 #14126  by mateuszknapik
 
Hi.
I've downloaded latest OpenKM.war from integration.openkm.com, but uploader applet included there is still in 8743 version (not the new one, like on demo.openkm.com). Where can I download the new version?
BR
Mateusz
 #14146  by jllort
 
It's jboss - the classic cache jboss bug - problem, stop jboss, delete tmp and work folder into default folder. Then start jboss.
Try cleaning browser ... clean applet from sometimes is not easy, "Sun java plugin control panel" in Windows Control Panel if you've got this OS.
 #14222  by mateuszknapik
 
Hi.
Deleting tmp and work folders helped. Thank you :)
Now I have the new uploader and it's working great under Windows. But on Mac OS X 10.6 with Java 1.6.0_29, when I drop file into uploader's window, I get something like this in java console and file doesn't upload to OpenKM:
Code: Select all
java.lang.IllegalArgumentException: URI has an authority component
	at java.io.File.<init>(File.java:368)
	at com.openkm.applet.Util.textURIListToFileList(Util.java:74)
	at com.openkm.applet.MainFrame.drop(MainFrame.java:361)
	at java.awt.dnd.DropTarget.drop(DropTarget.java:434)
	at sun.awt.dnd.SunDropTargetContextPeer.processDropMessage(SunDropTargetContextPeer.java:519)
	at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchDropEvent(SunDropTargetContextPeer.java:832)
	at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchEvent(SunDropTargetContextPeer.java:756)
	at sun.awt.dnd.SunDropTargetEvent.dispatch(SunDropTargetEvent.java:30)
	at java.awt.Component.dispatchEventImpl(Component.java:4592)
	at java.awt.Container.dispatchEventImpl(Container.java:2143)
	at java.awt.Component.dispatchEvent(Component.java:4565)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4621)
	at java.awt.LightweightDispatcher.processDropTargetEvent(Container.java:4356)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4207)
	at java.awt.Container.dispatchEventImpl(Container.java:2129)
	at java.awt.Window.dispatchEventImpl(Window.java:2478)
	at java.awt.Component.dispatchEvent(Component.java:4565)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:679)
	at java.awt.EventQueue.access$000(EventQueue.java:85)
	at java.awt.EventQueue$1.run(EventQueue.java:638)
	at java.awt.EventQueue$1.run(EventQueue.java:636)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
	at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
	at java.awt.EventQueue$2.run(EventQueue.java:652)
	at java.awt.EventQueue$2.run(EventQueue.java:650)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:649)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
2012-02-29 17:12:27 com.openkm.applet.MainFrame drop
INFO: Files: []
The same problem occurs when I try to do it on demo.openkm.com.
Thank you for your assistance.
 #14259  by pavila
 
Sadly I don't have a Mac to test it. I will review the code to see why drag and drop does not work with this Operating System.
 #14272  by pavila
 
Please, unzip the attached archive and execute it on your Mac OSX, and tell me if the files are dropped in the window. Run it from the command line to see the log output:
Code: Select all
$ java -jar filedrop.jar
Attachments
(22.32 KiB) Downloaded 339 times
 #14338  by mateuszknapik
 
Here's the log from terminal:
Code: Select all
FileDrop: Hierarchy changed.
FileDrop: Drop target added to component.
FileDrop: Hierarchy changed.
FileDrop: Drop target added to component.
FileDrop: dragEnter event.
java.awt.datatransfer.DataFlavor[mimetype=application/x-java-url;representationclass=java.net.URL]
java.awt.datatransfer.DataFlavor[mimetype=application/x-java-file-list;representationclass=java.util.List]
java.awt.datatransfer.DataFlavor[mimetype=text/uri-list;representationclass=java.io.Reader]
java.awt.datatransfer.DataFlavor[mimetype=text/uri-list;representationclass=java.lang.String]
java.awt.datatransfer.DataFlavor[mimetype=text/uri-list;representationclass=java.nio.CharBuffer]
java.awt.datatransfer.DataFlavor[mimetype=text/uri-list;representationclass=[C]
java.awt.datatransfer.DataFlavor[mimetype=text/uri-list;representationclass=java.io.InputStream;charset=UTF-16]
java.awt.datatransfer.DataFlavor[mimetype=text/uri-list;representationclass=java.nio.ByteBuffer;charset=UTF-16]
java.awt.datatransfer.DataFlavor[mimetype=text/uri-list;representationclass=[B;charset=UTF-16]
java.awt.datatransfer.DataFlavor[mimetype=text/uri-list;representationclass=java.io.InputStream;charset=UTF-8]
java.awt.datatransfer.DataFlavor[mimetype=text/uri-list;representationclass=java.nio.ByteBuffer;charset=UTF-8]
java.awt.datatransfer.DataFlavor[mimetype=text/uri-list;representationclass=[B;charset=UTF-8]
java.awt.datatransfer.DataFlavor[mimetype=text/uri-list;representationclass=java.io.InputStream;charset=UTF-16BE]
java.awt.datatransfer.DataFlavor[mimetype=text/uri-list;representationclass=java.nio.ByteBuffer;charset=UTF-16BE]
java.awt.datatransfer.DataFlavor[mimetype=text/uri-list;representationclass=[B;charset=UTF-16BE]
java.awt.datatransfer.DataFlavor[mimetype=text/uri-list;representationclass=java.io.InputStream;charset=UTF-16LE]
java.awt.datatransfer.DataFlavor[mimetype=text/uri-list;representationclass=java.nio.ByteBuffer;charset=UTF-16LE]
java.awt.datatransfer.DataFlavor[mimetype=text/uri-list;representationclass=[B;charset=UTF-16LE]
java.awt.datatransfer.DataFlavor[mimetype=text/uri-list;representationclass=java.io.InputStream;charset=ISO-8859-1]
java.awt.datatransfer.DataFlavor[mimetype=text/uri-list;representationclass=java.nio.ByteBuffer;charset=ISO-8859-1]
java.awt.datatransfer.DataFlavor[mimetype=text/uri-list;representationclass=[B;charset=ISO-8859-1]
java.awt.datatransfer.DataFlavor[mimetype=text/uri-list;representationclass=java.io.InputStream;charset=x-MacCentralEurope]
java.awt.datatransfer.DataFlavor[mimetype=text/uri-list;representationclass=java.nio.ByteBuffer;charset=x-MacCentralEurope]
java.awt.datatransfer.DataFlavor[mimetype=text/uri-list;representationclass=[B;charset=x-MacCentralEurope]
java.awt.datatransfer.DataFlavor[mimetype=text/uri-list;representationclass=java.io.InputStream;charset=US-ASCII]
java.awt.datatransfer.DataFlavor[mimetype=text/uri-list;representationclass=java.nio.ByteBuffer;charset=US-ASCII]
java.awt.datatransfer.DataFlavor[mimetype=text/uri-list;representationclass=[B;charset=US-ASCII]
FileDrop: normal border saved.
FileDrop: drag border set.
FileDrop: event accepted.
FileDrop: drop event.
FileDrop: file list accepted.
FileDrop: drop complete.
FileDrop: normal border restored.
BR
Mateusz
 #14373  by pavila
 
The dropped files are added to the window, isn't it?

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.