You are not logged in.

#1 2008-03-15 07:25:49

ravisghosh
Member
From: Intergalactic Spaces
Registered: 2006-10-12
Posts: 516
Website

How get tiddlywiki work on opera

I was trying to get d-cubed tiddly wiki work on opera.

http://www.tiddlywiki.com/ says one needs to save a file called tiddlyserver.jar in the same directory as that of tiddly file and change permission in .java.policy file.

http://www.tiddlywiki.com/#TiddlySaver

But where is that file in arch installation. How could one get tiddlywiki work on opera. It really sucks to start firefox which is really fat on my old system.

Last edited by ravisghosh (2008-03-15 07:26:12)

Offline

#2 2008-03-15 08:01:10

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: How get tiddlywiki work on opera

You could use find or locate to find java.policy.  If you did that (and you had jre installed), you would come up with

/opt/java/jre/lib/security/java.policy

Offline

#3 2008-03-16 03:14:00

ravisghosh
Member
From: Intergalactic Spaces
Registered: 2006-10-12
Posts: 516
Website

Re: How get tiddlywiki work on opera

thanks tomk for pointing that out.

I was searching for .java.policy as mentioned in http://www.tiddlywiki.com/#TiddlySaver

However, I could not get the equivalent of this code:

grant codeBase "file:${user.home}/My Documents/tiddlywiki-folder/*" {
  permission java.io.FilePermission "${user.home}${/}My Documents${/}tiddlywiki-folder${/}*", "read,write";
};

Hence used the broader one

grant codeBase "file://localhost/home/users/Desktop/
TiddlySaver.jar"
 { permission java.security.AllPermission; };

ANd now my java.policy looks like this:

// Standard extensions get all permissions by default

grant codeBase "file:${{java.ext.dirs}}/*" {
    permission java.security.AllPermission;
};

// default permissions granted to all domains

grant { 
    // Allows any thread to stop itself using the java.lang.Thread.stop()
    // method that takes no argument.
    // Note that this permission is granted by default only to remain
    // backwards compatible.
    // It is strongly recommended that you either remove this permission
    // from this policy file or further restrict it to code sources
    // that you specify, because Thread.stop() is potentially unsafe.
    // See "http://java.sun.com/notes" for more information.
    permission java.lang.RuntimePermission "stopThread";

    // allows anyone to listen on un-privileged ports
    permission java.net.SocketPermission "localhost:1024-", "listen";

    // "standard" properies that can be read by anyone

    permission java.util.PropertyPermission "java.version", "read";
    permission java.util.PropertyPermission "java.vendor", "read";
    permission java.util.PropertyPermission "java.vendor.url", "read";
    permission java.util.PropertyPermission "java.class.version", "read";
    permission java.util.PropertyPermission "os.name", "read";
    permission java.util.PropertyPermission "os.version", "read";
    permission java.util.PropertyPermission "os.arch", "read";
    permission java.util.PropertyPermission "file.separator", "read";
    permission java.util.PropertyPermission "path.separator", "read";
    permission java.util.PropertyPermission "line.separator", "read";

    permission java.util.PropertyPermission "java.specification.version", "read";
    permission java.util.PropertyPermission "java.specification.vendor", "read";
    permission java.util.PropertyPermission "java.specification.name", "read";

    permission java.util.PropertyPermission "java.vm.specification.version", "read";
    permission java.util.PropertyPermission "java.vm.specification.vendor", "read";
    permission java.util.PropertyPermission "java.vm.specification.name", "read";
    permission java.util.PropertyPermission "java.vm.version", "read";
    permission java.util.PropertyPermission "java.vm.vendor", "read";
    permission java.util.PropertyPermission "java.vm.name", "read";
};

grant codeBase "file://localhost/home//shantanu/personal/wiki/TiddlySaver.jar"
 { permission java.security.AllPermission; };

Is that fine or does it creates some security issues? Sorry if that is a noob question.

Also, when I try to import some tiddlers using ImportTiddlers, I get this error message

[Error: name: Error message: Security violation}

It seems there is some issue with java.policy???

Last edited by ravisghosh (2008-03-16 04:20:12)

Offline

Board footer

Powered by FluxBB