Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / October 2007

Tip: Looking for answers? Try searching our database.

Applet security restrictions and aliased domains

Thread view: 
douggunnoe@gmail.com - 11 Oct 2007 03:11 GMT
I recently changed web hosts. My former host did not have support for
Java. As a work around, I created an applet that opened a connection
to a cgi script. The script dynamically created an html file and
returned the address of the file back to the applet, which opened the
new file.

When I moved everything over to the new host, I made sure that the
paths and addresses referenced in the script and applet remained the
same so that I would not have to change anything.

However, I am getting an IO exception.

My new hosting account is set up with one primary domain, and several
aliased domains, such that the aliased domains are each folders under
the primary domain account. When someone types in www.my_aliased_domain.com,
I assume it is the A records or cname records or what have you that
point to the subfolder primary_domain/my_aliased_domain.

My questions are (assuming the file paths and addresses are all
correct) :

1.Since Java applets can only communicate with the host from whence
they came, would these security restrictions block a connection to an
aliased domain?

2.And if so, should I get an IO exception or some other exception?

3.Should I try instead to connect to www.primary_domain.com/aliased_domain_folder/somefile.cgi
instead of www.aliased_domain .com/somefile.cgi?
Andrew Thompson - 11 Oct 2007 05:02 GMT
..
>...As a work around, I created an applet ..

That often turns into 'more work'.

>..that opened a connection
>to a cgi script. The script dynamically created an html file and
>returned the address of the file back to the applet,

How?  Was the paramater written into the HTML
as an applet param?  But..

>..which opened the
>new file.
>
>When I moved everything over to the new host, I made sure that the
>paths and addresses referenced in the script and applet remained the
>same so that I would not have to change anything.

*

>However, I am getting an IO exception.

*

>My new hosting account is set up with one primary domain, and several
>aliased domains, such that the aliased domains are each folders under
>the primary domain account. When someone types in www.my_aliased_domain.com,

..these things are very much easier to investigate when
you can provide an actual URL of the actual applet
(or a test case facsimile) failing right in *my* browser,
then I would not have had to ask the questions above,
nor the two I might have asked, denoted by '*' that I
simply could not be bothered asking, nore any that
cropped up from the latter part of your message
(trimmed).

So.  Have you got an URL for us?

Signature

Andrew Thompson
http://www.athompson.info/andrew/

douggunnoe@gmail.com - 11 Oct 2007 13:34 GMT
> douggun...@gmail.com wrote:
>
[quoted text clipped - 43 lines]
>
> Message posted viahttp://www.javakb.com

"That often turns into 'more work'."

Tis true Andrew.

The applet is at

http://www.knowcasinos.com/sims/bjcalc/bja.html

But it works now, so...

In my OP I said "assuming the file paths and addresses are all
correct". Assuming is bad.
douggunnoe@gmail.com - 11 Oct 2007 13:28 GMT
On Oct 10, 9:11 pm, "douggun...@gmail.com" <douggun...@gmail.com>
wrote:
> I recently changed web hosts. My former host did not have support for
> Java. As a work around, I created an applet that opened a connection
[quoted text clipped - 25 lines]
> 3.Should I try instead to connect towww.primary_domain.com/aliased_domain_folder/somefile.cgi
> instead ofwww.aliased_domain.com/somefile.cgi?

The answer, I discovered, is that a domain alias is not a problem for
the applet's security safeguards.

I also discovered that when one changes hosts, one should not panic
when something goes wrong and assume there is some exotic problem.

The mundane is the most likely culprit. :|


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.