Solved

# Security Exception: checkwrite:IPFILTER.INI

Posted on 1998-07-08
2
176 Views
Last Modified: 2010-04-16
I'm trying to execute an applet that calls an application that reads and writes to local files.
Using
        Windows 95,
        Visual Cafe 2.5,
        Netscape 4.04 with JDK patch,
        included into prefs.js file(as advised by Symantec):
                       user_pref("signed.applets.low_security_for_local_classes", true);
       

Java Console Error upon execution: (IPFILTER.INI is the file I'm reading and writing to)
       # Security Exception: checkwrite:IPFILTER.INI
       netscape.security.AppletSecurityException: security.checkwrite: IPFILTER.INI
       #  UniversalFileWrite privilege not enabled: Modifying files stored in your computer

Note:
      This applet works within Cafe.
      This applet works within appletviewer
      This applet once worked until I was forced to reinstall Cafe.

      Any answers/solutions?
0
Comment
Question by:jsammers
  • 2
2 Comments
 
LVL 5

Accepted Solution

by:
msmolyak earned 100 total points
ID: 1225519
Use Netscape's Capabilities API. It allows signed applets and applets loaded from the local disk request additional privileges such as file reading and writing. Find out how to use the API at
http://developer.netscape.com/docs/manuals/signedobj/capabilities/index.html

I am not sure what the preference you are using should do, but looks like it does not give the applet the application-like privileges. Thus Capabilities API is probably your only solution.
Let me know if you need more information.
0
 
LVL 5

Expert Comment

by:msmolyak
ID: 1225520
Here is the description of your property:
---------
Controls whether network connection security requirements are lowered to the levels of Netscape Navigator 3.2. For example, this level of security permits connections or DLL loading without asking for permission or otherwise notifying the user. The default is false, which does not lower security capabilities. Set to true to simulate Navigator 3.2, provided                                signed.applets.local_classes_have_30_powers is also set to true. It is advisable to lock this preference as false to prevent an attacker from setting it to true. It applies to Communicator version 4.02 and later, and is available on all platforms.
---------
Thus, all it does is realxes restrictions somewhat but does not eliminate them.  Use Capabilities API.

If you want to know more about those properties see http://developer.netscape.com:80/docs/manuals/deploymt/jsprefs.htm
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question