Tags:
create new tag
, view all tags

JavaPasteAddOnDev Discussion: Page for developer collaboration, enhancement requests, patches and improved versions on JavaPasteAddOn contributed by the TWikiCommunity.
• Please let us know what you think of this extension.
• For support, check the existing questions, or ask a new support question in the Support web!
• Please report bugs below

Comments for the JavaPasteAddOn

Add yours here. I would be especially interested in hearing success stories or taking code modifications.

-- MartinCleaver - 22 May 2002

Hi Chris, You have all that I have!

Unfortunately for you, I did not write the code, I just supervised. This means I don't really have the details of what would be needed to finish it off. I'll tell you what I think needs doing but if this means nothing to you and your techies then you might have to just hope - like me - that someone else gets around to completing the work. For it to be useful the 'work to be finished' on http://twiki.org/cgi-bin/view/Plugins/JavaPasteAddOn still needs completing.

To answer your question: I guess you would modify the TWiki code that produces the page that the applet should appear on so that it includes the applet invocation as done in the convert_html page.

As I no longer work for Andersen and I don't have a job that allows me to work on TWiki my time available to sort this out is somewhat limited.

BTW, I've copied your question and this answer to http://twiki.org/cgi-bin/view/Plugins/JavaPasteAddOnDev. I hope you don't mind.

Best regards, Martin.

> Dear Martin,
>
> I was interested in trying the "JavaPaste" applet in my TWiki web, the
> instructions for installation are a little vague.
>
> They read:
> "Theoretically you add the code as in convert_myTwikiAttach_.html."
>
> Do you have more detailed instructions anywhere?
>
>
> Thanks,
>
> .Chris.
>
> --
> Christian E. Schafmeister
> Assistant Professor
> Department of Chemistry
> University of Pittsburgh


I have installed the code at http://javapaste.mrjc.com/jars/

As you would see, when it loads it fails saying 'java.security.cert.CertificateException: Unable to verify the certificate with root CA'. This is because the browser has to be told to trust the applet as the applet reads the system clipboard.

I haven't worked out how to import the certificate... and it's a year since this code was written... but once I figure it out I will update here.

M.


To install the certificate:

  • Navigate to http://javapaste.mrjc.com/jars/
  • Download and run TwikiCer.cer
  • Click Install Certificate
  • Accept default of 'Automatically select the certificate store based on the type of certificate'
  • Click finish

To examine the certificate:

  • Internet Options
  • Content
  • Certificates
  • Trusted Root Certificates
  • Macleod

To remove the certificate

  • Examine it (see above)
  • Select Remove

NB. The certificate gives a lot of trust to the applet. At the moment I would suggest that you remove it after use.

-- MartinCleaver - 12 Sep 2002

As far as I can see the sources are quite specific to the installation of Catherine, including here IP and here directory structure. Far away from beeing able to install.

I'll try to figure out how far the job is done, since the people I'm working for would be happy to the functionality. But I'm not a Java developer, so I can only try to finish up and to integrate and to describe how it can be installed.

-- AndrewDSmart - 23 Oct 2002

You are quite right Andrew. IIRC there is a more recent version in CVS.

-- MartinCleaver - 29 Jul 2003

As of 2 days ago, this is work in progress again. Another of my ex-collegues from work has had some success at getting this to work.

We hope to post a working version within a few days.

-- MartinCleaver - 26 Dec 2002

New version viewable at:

http://javapaste.mrjc.com/testjavapaste.htm

You can't use it from there because I can't give out test id's on that server.

I will find a server that I can give you id's for. If you are really in a hurry you can nick the APPLET section from the HTML file and pick up the Jar.

<!--JAVAPASTE COPY THIS BIT INTO YOUR UPLOAD FORM -->

<APPLET CODE = "com.mrjc.twiki.addons.TwikiPaste.class" ARCHIVE = "http://javapaste.mrjc.com/TWikiPasteSigned.jar" WIDTH = 400 HEIGHT = 200>
<PARAM NAME="action" VALUE="http://yourserverhere.com/twiki/bin/upload/Test/WebHome">
</APPLET>

<!--/JAVAPASTE  COPY THIS BIT INTO YOUR UPLOAD FORM -->

NB. Once I have hacked the (serverside) upload script to accept multiple files it will be possible to paste or drag and drop multiple files onto that pane.

NB. There is a bug where the authentication window interferes with drag and drop sending the applet into an infinite loop. Avoid this by using the paste button for the first time you use it.

Also, watch for error messages in the java console.

-- MartinCleaver - 03 Jan 2003

If you see any problems, please report here.

One I know about is that upload of binary files is presently fubar, due to the misuse of a StringBuffer in ClipboardHelper.java. I am looking into this.

Also, the applet is designed to allow multiple file upload, but the way the applet is implemented is incompatible with the current version of upload.pl in TWiki. (The applet assumes that the upload payload can contain multiple attachments. In reality upload.pl is not designed to accept only one). I intend to alter the applet to open a series of messages, one for each message. I might instead present patches for upload.pl.

A recent JAR file is attached (RSN).

-- MartinCleaver - 05 Jan 2003

Is there a web page where I can see it in action? The url above does not seem to work.

-- ArthurClemens - 29 Jul 2003

No, not at present. Its not particularly a priority for me at the moment, so its going to be at least a few weeks (ok, maybe a year or so frown ) before I get around to it.

If I get enough demand (or if someone get someone to sponsor me to put it up) I'll set aside some time though.

-- MartinCleaver - 29 Aug 2004

So... It's almost a year! big grin

Seriously though, this seems like it could be really useful. Has your colleague progressed? Does TWiki now accept multiple uploads?

-- JosMaccabiani - 10 Jul 2005

BatchUploadPlugin does multiple uploads.

I think I know what to do but I can't give it the time unless I can get paid to do so. Sorry, its just not a priority for me and my colleague is off in java land.

-- MartinCleaver - 13 Jul 2005

My understanding is that it does work at the minute - for pasting a single file. Is that understanding accurate?

So far I've tried modding the convert_myTwikiAttach.html file with the relevent IP's, and pointing the action to a PHP phpinfo script(which shows me any POST/GET/ENV variables), but I can't get the contents of my clipboard to transfer. Is the content of the applet part of the overall form, or is there something built into the applet that "submits" itself.

What am I missing here?

-- RoryBrowne - 13 Feb 2006

I added a SHORTDESCRIPTION to the "Add-On Info" section so that this add-on is represented properly in the AddOnPackage topic and query topics. Please feel free to take this into the next release.

-- PeterThoeny - 07 Oct 2006

Is this plugin currently working? Has anyone updated it during this time? It would be great if we could allow that copy/paste functionality.

-- MiloValenzuela - 03 Nov 2006

It remains non-functional.

I would take it on as a contract job if you are interested in sponsoring the work.

-- MartinCleaver - 03 Nov 2006

This is an open source project, it is up to individuals to decide if/when to get involved. Having said that, is there any chance working on this without the condition of a paying client? Many TWikiCommunity members contribute back ideas, code and loving care on twiki.org topics with the goal to make TWiki a more successful product; sometimes payed, sometimes not.

-- PeterThoeny - 03 Nov 2006

We may be willing to sponsor some of this development. I'd like to get a proposal or two of what needs to be done and how much it would take. (Of course, we would release it back to the community). We have some specific needs, but for the most part it would be a pretty general plugin we are looking for. Please contact me using the email on my user page... Thx

-- ArtMorales - 21 Nov 2006

The add-on topic has been updated with a typo fix: Change TWiki:Plugin.JavaPasteAddOnDev to TWiki:Plugins.JavaPasteAddOnDev. This should be carried back into the next release of this package.

-- PeterThoeny - 09 Apr 2008

Topic attachments
I Attachment History Action Size Date Who Comment
Unknown file formatjar TWikiPasteSigned.jar r1 manage 13.6 K 2003-01-05 - 19:34 MartinCleaver  
Edit | Attach | Watch | Print version | History: r23 < r22 < r21 < r20 < r19 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r23 - 2008-04-09 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.