BTW,
I've refreshed and everything is now cool - thanks.
Jules
Jason Dillon wrote:
Just wondering, but why not use URLConnection.getURL().getFile()
instead of URLConnection.getPermssion() ?
--jason
_
View thread online:
Yes, this seems very odd to me. Still, why did this fail for you? I was
under the impression that URLConnection.getPermission() would return an
AllPermission and not a FilePermission, which would have caused this hack not
to be used. If the _url field has been initialized to
, LLC
- Original Message -
From: Jason Dillon [EMAIL PROTECTED]
To: Jules Gosnell [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, April 04, 2002 10:31 PM
Subject: Re: [JBoss-dev] (Jason) file protocol handler
Oh... sorry. Not sure what the thing todo
Just wondering, but why not use URLConnection.getURL().getFile() instead of
URLConnection.getPermssion() ?
--jason
_
View thread online: http://main.jboss.org/thread.jsp?forum=66thread=12217
___
: Jason Dillon [EMAIL PROTECTED]
To: Jules Gosnell [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, April 04, 2002 10:31 PM
Subject: Re: [JBoss-dev] (Jason) file protocol handler
Oh... sorry. Not sure what the thing todo here is. We can either
generate a FilePermission which uses
That would be a question for Greg - who left to go skiing this morning
- tough life! :
/*
*/
/**
* Returns an File representing the given resource
or NULL if this
* is not possible.
*/
public File getFile()
throws IOException
Jason,
Thanks for this - it should fix reloading JSPs ...
However, Jetty deployment is now screwed !
In FileURLConnection.getPermission() where you say :
public Permission getPermission() throws IOException {
// should probably return a FilePermission here...
// but I
Oh... sorry. Not sure what the thing todo here is. We can either
generate a FilePermission which uses the underlying File.canRead(),
blah, blah, blah or we can simply omit this field and have the default
AllPermision be used.
Probably easier in the short term todo the later... though I
Oh... wait... I am smoking some bad crack... I totally misread this and
then applied that misreading to a fix which does not help at all. I
have been in proxy-land for the last 5 hours and might be loosing my mind.
Let me quickly check what the default sun impl does and I try to
duplicate