🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Java Security

#616
From: Rich Wilkman
Date: Fri, 23 May 2003 17:52
32 lines
2259 bytes
John:

Does it work if you've got those resources naked?  I remember having 
problems with URL handling with an HTTPS app -- it just didn't like the 
special format indicating that the data came from a jar file.

-Rich

John McGrath [TeamB] wrote:

>I am having a problem with security in Java 1.4.
>
>I have an application that is loaded from two different JAR files
>(Main and Library).  Both load resources from within their own
>JAR file using the Class getResourceAsStream() method.  If I do
>not install a SecurityManager, the resources load properly.  But
>when I install an RMISecurityManager, the code in the Library JAR
>file fails to load the resources - getResourceAsStream() returns
>null.
>
>According to the "Java Security Architecture" (http://java.sun.com
>/j2se/1.3/docs/guide/security/spec/security-spec.doc3.html):
>
>   code always automatically has permission to read files from
>   its same (URL) location, and subdirectories of that location;
>   it does not need explicit permission to do so.
>   
>I thought this means code should always be able to load a
>resource from its own JAR file.  Did I miss something here?
>
>  
>
Technical Details
Message-ID: <3ECE5FE7.9030403@formlessvoid.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3ece48ee$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,462ca4d244c4f446
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2003-05-23 11:09:35 PST
Message-ID: <3ECE5FE7.9030403@formlessvoid.com>
Date: Fri, 23 May 2003 10:52:39 -0700
From: Rich Wilkman <richw@formlessvoid.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.2) Gecko/20021120 Netscape/7.01
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.api
Subject: Re: Java Security
References: <3ece48ee$1@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 63.249.85.97
X-Trace: newsgroups.borland.com 1053712343 63.249.85.97 (23 May 2003 10:52:23 -0700)
Lines: 33
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail