# Re: java.io.File.delete() isn't available in a signed applet?

Roland Schemers (Roland.Schemers@Eng)
Fri, 15 May 1998 10:36:52 -0700 (PDT)

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Marianne Mueller: "Re: Java Cryptography Extension"
- Previous message: Matthew Woodard: "java.io.File.delete() isn't available in a signed applet?"
- Maybe in reply to: Matthew Woodard: "java.io.File.delete() isn't available in a signed applet?"

    Message-Id: <199805151736.KAA24598@crypto.eng.sun.com>

    Date: Fri, 15 May 1998 10:36:52 -0700 (PDT)

    From: Roland Schemers <Roland.Schemers@Eng>

    Subject: Re: java.io.File.delete() isn't available in a signed applet?

    To: java-security@web2.javasoft.com, mwoodard@gateway.novasoft.com

This is a bug that will be fixed (sigh) in 1.1.7 and 1.2. The
AppletSecurity security manager in 1.1.6 and earlier didn't override
checkDelete, thus it always throws exceptions. The workaround would
be to use checkExec (you'd also have to look at a system property to
determine if you are on a win32 or Unix platform). Not very pretty though...

roland

> X-Sender: mwoodard@gateway.novasoft.com (Unverified)
> Mime-Version: 1.0
> Date: Fri, 15 May 1998 12:18:52 -0500
> To: java-security@web2.javasoft.com
> From: Matthew Woodard <mwoodard@gateway.novasoft.com>
> Subject: java.io.File.delete() isn't available in a signed applet?
>
> I'm having a problem that you may be able to clear up quickly. I've got an
> applet that I've signed using javakey. For the most part, it seems to work
> as advertised; I can open sockets, read and write files, etc. There's only
> one problem - I can't delete a local file using File.delete(). Though I can
> retrieve file attributes such as length, when I'm finished and try to delete
> the file, a security exception is thrown.
>
> So far, the testing has been done in appletviewer, and the target is the new
> Jave Plugin. Javakey signing is a must.
>
> Thanks for your help,
> Matt
> Matthew Woodard
> NovaSoft Systems, Inc.
> mwoodard "at" novasoft.com
>

- Next message: Marianne Mueller: "Re: Java Cryptography Extension"
- Previous message: Matthew Woodard: "java.io.File.delete() isn't available in a signed applet?"
- Maybe in reply to: Matthew Woodard: "java.io.File.delete() isn't available in a signed applet?"