Solved

# Security Exception: checkwrite:IPFILTER.INI

Posted on 1998-07-08
2
178 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
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…
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 tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Suggested Courses

732 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