Solved

# Security Exception: checkwrite:IPFILTER.INI

Posted on 1998-07-08
2
172 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
Comment Utility
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
Comment Utility
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
java continue statement 10 72
count11 challenge 6 47
@SBGen Method 3 25
Eclipse IDE - Cannot copy/paste from console output 8 58
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…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

743 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

15 Experts available now in Live!

Get 1:1 Help Now