Solved

# Security Exception: checkwrite:IPFILTER.INI

Posted on 1998-07-08
2
173 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This video teaches viewers about errors in exception handling.

861 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now