🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #7305

Re: file access in browser - security problem

#7305
From: dnoyeB
Date: Mon, 25 Jun 2001 21:27
41 lines
2188 bytes
You cant read files with an applet unless it is signed.  Signing applets
will cost you ~$400.  It will cost you $400 to read files with your applet.
take it or leave it...


experimentlally you can turn off your browwser security with MSIE (not
nutscrape).  You can generate fake certificates and accept them on your
computer.  If you gotta start messing with certs, its gonna be a headache.



"webseal" <webseal@web.de> wrote in message
news:3b37a31f.27266020@newsgroups.borland.com...
> Hi,
> in my applet I try to read some data out of an text file, that is
> stored in the same URL as the applet class on the server.
>
> I use the following construct to read the file
>
> stdFile = new File("file.txt");
> try
> {
>      fileIn = new BufferedReader(new FileReader(stdFile));
> }
> catch (IOException e)
> {
>     System.out.println("...");
> }
>
> If I start the applet within jbuilder in the appletviewer, everything
> works fine.
> But if I start the html-file, that starts the applet in browser I get
> an error in the browser:
> com.ms.securitiy.SecurityExceptionEx(..) cannot access file file.txt
>
> I think there is a security problem when connecting to the file.
> Should I use another read-method, instead of bufferedreader(new
> filereader ...)?
> Help appreciated
>
> Webseal
Technical Details
Message-ID: <3b388af0$1_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews
References: <3b37a31f.27266020@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,5c9fc3a5ac4eaeb1
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-06-26 06:20:50 PST
From: "dnoyeB" <lamont_gilbert @ rigidsoftware.com>
Newsgroups: borland.public.jbuilder.java.language
References: <3b37a31f.27266020@newsgroups.borland.com>
Subject: Re: file access in browser - security problem
Date: Mon, 25 Jun 2001 17:27:24 -0400
Lines: 43
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
NNTP-Posting-Host: 63.68.196.49
Message-ID: <3b388af0$1_1@dnews>
X-Trace: dnews 993561328 63.68.196.49 (26 Jun 2001 06:15:28 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews