Ticket #506 (new defect)

Opened 8 years ago

Last modified 8 years ago

IcedTea - java applet permission issues cannot create file in user folder in signed applet (Fedora)

Reported by: kmaclean Owned by: kmaclean
Priority: major Milestone:
Component: SpeechSubmission Version: 0.1-alpha
Keywords: Cc:

Description (last modified by kmaclean) (diff)

speechsubmission.jar is a signed applet. It creates a file in user's folder to save user parameters so that they do not have to re-enter it each time they create a submission. This works in Windows.

On Linux (Fedora 20) with FireFox? 30.0, IcedTea?-web v1.5, and Oracle Java 1.8.0_05, cannot create a new file in user's folder using "new File(filename)" - get permission error, even though the applet is signed, and the functionality works locally ( Eclipse on Fedora 20).

java console output (output in reverse order):

at java.lang.Thread.run(Thread.java:744)
    at sun.applet.AppletPanel.run(AppletPanel.java:436)
    at speechrecorder.RecorderApplet.init(RecorderApplet.java:44)
    at speechrecorder.CapturePlayback. (CapturePlayback.java:501)
    at speechrecorder.CapturePlayback.loadSettings(CapturePlayback.java:1583)
    at speechrecorder.ConfigReader. (ConfigReader.java:51)
    at java.io.File.createNewFile(File.java:1006)
    at java.io.UnixFileSystem.createFileExclusively(Native Method)
java.io.IOException: Permission denied
config file location: /home/kmaclean/VoxForge.properties

But can create a file in users tmp directory

Change History

comment:1 Changed 8 years ago by kmaclean

  • Description modified (diff)

comment:2 Changed 8 years ago by kmaclean

might need to change the code to use cookies: Cookies and Servlets

Note: See TracTickets for help on using tickets.