🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: file access in browser - security problem

#7264
From: dnoyeB
Date: Thu, 28 Jun 2001 18:31
57 lines
3040 bytes
...how true...

For class I had to read files from a remote server, that is even allowed.
Or it was 3 years ago.  Just not from the client computer.

"Rich Wilkman" <richw@formlessvoid.com> wrote in message
news:3B38B705.154DC319@formlessvoid.com...
> You can read files from the server your Applet came from all day long
> without signing.  You can't use the File object to do it (it represents
> a local file which would be the client machine and a no-no for an
> Applet).  You do it the old fashioned way by opening a stream to the
> file and sucking down the bytes.  No signing, no extra costs.
>
> -Rich
>
> dnoyeB wrote:
> >
> > 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: <3b3b7ae1$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> <3b388af0$1_1@dnews> <3B38B705.154DC319@formlessvoid.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-28 11:46:55 PST
From: "dnoyeB" <lamont_gilbert @ rigidsoftware.com>
Newsgroups: borland.public.jbuilder.java.language
References: <3b37a31f.27266020@newsgroups.borland.com> <3b388af0$1_1@dnews> <3B38B705.154DC319@formlessvoid.com>
Subject: Re: file access in browser - security problem
Date: Thu, 28 Jun 2001 14:31:55 -0400
Lines: 59
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: <3b3b7ae1$1_1@dnews>
X-Trace: dnews 993753825 63.68.196.49 (28 Jun 2001 11:43:45 -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