🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #3634

Re: URGENT: How to manage files in a server from an applet

#3634
From: Rich Wilkman
Date: Thu, 30 Oct 1997 00:00
30 lines
1671 bytes
Gil:

The higher level stream stuff in java.io don't throw the SecurityException and I
would have expected an IOException or at least a bogus number of bytes written
as the return value of the write() call.

-Rich

Gil Delavous wrote:

> That's funny. I made a little applet that just use and URLConnection with a
> BufferedInputStream, using an HTTP url to a text file. As you said I can
> read the file from the server. I pushed a bit further and tried to write
> data with a BufferedOutputStream... it *seems* to work (i.e. I get no
> exception error), but nothing is written on the server! I should have got an
> IOException somewhere... no?
>
> >> > Gil:
> >> >
> >> > You don't.  An Applet cannot write files (or create files/directories)
> >> > on the
> >> > server where it lives, only read.  All the File related classes
> >> > implement
> >> > security manager and will stop those activites (even checking for
> >> > write
> >> > permision, if memory serves).  You are pretty much limited to
> >> > activities based
> >> > upon InputStreams.
> >> >
Technical Details
Message-ID: <3458FD67.B7915C4F@corp.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <6386sf$mtv4@forums.borland.com> <3457B369.6C0A1DA6@corp.borland.com> <345815FD.5946E259@borland.com> <3458BE6C.67BDB929@corp.borland.com> <63akgg$n8s4@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,42fb639896549357
X-Google-Attributes: gid1089d0,public
From: Rich Wilkman <rwilkman@corp.borland.com>
Subject: Re: URGENT: How to manage files in a server from an applet
Date: 1997/10/30
Message-ID: <3458FD67.B7915C4F@corp.borland.com>
X-Deja-AN: 286033671
References: <6386sf$mtv4@forums.borland.com> <3457B369.6C0A1DA6@corp.borland.com> <345815FD.5946E259@borland.com> <3458BE6C.67BDB929@corp.borland.com> <63akgg$n8s4@forums.borland.com>
Organization: None
Newsgroups: borland.public.jbuilder.java.api