Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #26501

Signed Java applet with correct manifest cannot write to home directory

From Thomas Richter <thor@math.tu-berlin.de>
Newsgroups comp.lang.java.programmer
Subject Signed Java applet with correct manifest cannot write to home directory
Date 2013-11-13 11:17 +0100
Organization University of Stuttgart, FRG
Message-ID <l5vjjf$b26$1@news2.informatik.uni-stuttgart.de> (permalink)

Show all headers | View raw


Hi folks,

here is a question on signed applets: We do have here a learning 
application that should allow students to save their results to their 
local desktop. This application is currently realized as a java 
application and runs from the browser.

The applet is signed, and it is *not* a self-certificate, but an 
official certificate by the university, which is again certified by the 
DFN, which is again certified by the Deutsche Telekom. IOW, the 
certification chain is correct.

The applet also has a proper manifest file that defines the codebase, 
the application library allowable codebase etc:

Main-Class: XXXXXXXXXXXXXX
Permissions: all-permissions
Codebase: XXXXXXXXXXXXXXXXXXX
Application-Library-Allowable-Codebase:  XXXXXXXXXXXXXXXXxx
Application-Name: XXXXXXXXXXXXXXX
Trusted-Only: true
Trusted-Library: true

When I run this applet from firefox, windows or linux, everything is 
fine. The user gets a warning that the applet will or might write to 
local files, though the warning states that the certificate is correct, 
and states its origin correctly. All fine.

However, if I run the same applet from Safari, I *also* get the warning, 
the applet runs, but saving solutions requiring write access to the 
local home directory does *not* work. The system creates a "permission 
denied" error. I do not get any warning or error messages on the java 
console, and all I see when starting the applet is the typical warning 
that this is an applet requiring full access to the desktop.

Strangely enough, if I run the same applet from firefox, on the same 
machine (an Apple under MacOs), everything works perfectly.

Any ideas what might be missing to get this working?

Greetings,
	Thomas

Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Signed Java applet with correct manifest cannot write to home directory Thomas Richter <thor@math.tu-berlin.de> - 2013-11-13 11:17 +0100
  Re: Signed Java applet with correct manifest cannot write to home directory Robert Klemme <shortcutter@googlemail.com> - 2013-11-14 20:02 +0100

csiph-web