[Bug 3705] Webstarted application tries to load resources from server incorrectly

bugzilla-daemon at icedtea.classpath.org bugzilla-daemon at icedtea.classpath.org
Thu Mar 14 05:48:39 UTC 2019


https://icedtea.classpath.org/bugzilla/show_bug.cgi?id=3705

Rohit Bisht <rohit.bisht.3612 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rohit.bisht.3612 at gmail.com

--- Comment #3 from Rohit Bisht <rohit.bisht.3612 at gmail.com> ---
The problem here is that it is adding all the paths to codebase loader even
when we should not.
Apparently there is a boolean variable (enableCodeBase) which is used to check
whether to add resource to the codebase loader or not.
So just putting a check for enableCodeBase can resolve the issue.

So for my issue all I needed was to replace 

addToCodeBaseLoader(extLoader.file.getCodeBase());

with

if(this.enableCodeBase) {
addToCodeBaseLoader(extLoader.file.getCodeBase());
}


I guess the developers created the variable to be checked but forgot to do so
or maybe had some other reasons not to use it.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20190314/69847f5e/attachment-0001.html>


More information about the distro-pkg-dev mailing list