Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old June 27th, 2008, 09:25 PM
Robert Larsen
Guest
 
Posts: n/a
Default Signed java applet

Hi all

I have a small problem with a signed applet.
The applet works fine but some users wont click 'yes' to give the applet
further privileges (that is ok too). If the user dont give the applet
privileges I show a page telling them that the applet wont work unless
they grant the applet privileges and give them a link back to the
original page so that they can try again if they want to.
But if they follow that link, nothing happens...unless the cache is cleared.

Does the browser (tested with IE and Firefox) remember the original answer ?
I cannot find anything regarding this policy in the applet security FAQ
or any other place.

Will I have to provide two identical applets to overcome this ?

Best
Robert Larsen
  #2  
Old June 27th, 2008, 09:25 PM
James
Guest
 
Posts: n/a
Default Re: Signed java applet

On Mon, 16 Jun 2008 12:50:13 +0200, Robert Larsen wrote:
Quote:
Hi all
>
I have a small problem with a signed applet. The applet works fine but
some users wont click 'yes' to give the applet further privileges (that
is ok too). If the user dont give the applet privileges I show a page
telling them that the applet wont work unless they grant the applet
privileges and give them a link back to the original page so that they
can try again if they want to. But if they follow that link, nothing
happens...unless the cache is cleared.
>
Does the browser (tested with IE and Firefox) remember the original
answer ? I cannot find anything regarding this policy in the applet
security FAQ or any other place.
>
Will I have to provide two identical applets to overcome this ?
>
Best
Robert Larsen
Sounds like you should move some of your code from init() to start().
--
James
*Note: Remove every other letter for correct email address
  #3  
Old June 27th, 2008, 09:25 PM
Robert Larsen
Guest
 
Posts: n/a
Default Re: Signed java applet

James wrote:
Quote:
On Mon, 16 Jun 2008 12:50:13 +0200, Robert Larsen wrote:
>
Quote:
>Hi all
>>
>I have a small problem with a signed applet. The applet works fine but
>some users wont click 'yes' to give the applet further privileges (that
>is ok too). If the user dont give the applet privileges I show a page
>telling them that the applet wont work unless they grant the applet
>privileges and give them a link back to the original page so that they
>can try again if they want to. But if they follow that link, nothing
>happens...unless the cache is cleared.
>>
>Does the browser (tested with IE and Firefox) remember the original
>answer ? I cannot find anything regarding this policy in the applet
>security FAQ or any other place.
>>
>Will I have to provide two identical applets to overcome this ?
>>
>Best
>Robert Larsen
>
Sounds like you should move some of your code from init() to start().
But accepting the certificate and granting extra privileges happens
before the applet starts so how would this solve anything ?
The second time the user is not even asked to accept the certificate. It
seems to be assumed that since the user didn't accept it the first time
he shouldn't even be asked again.
  #4  
Old June 27th, 2008, 09:25 PM
Dave Miller
Guest
 
Posts: n/a
Default Re: Signed java applet

Robert Larsen wrote:
Quote:
James wrote:
Quote:
>On Mon, 16 Jun 2008 12:50:13 +0200, Robert Larsen wrote:
>>
Quote:
>>Hi all
>>>
>>I have a small problem with a signed applet. The applet works fine but
>>some users wont click 'yes' to give the applet further privileges (that
>>is ok too). If the user dont give the applet privileges I show a page
>>telling them that the applet wont work unless they grant the applet
>>privileges and give them a link back to the original page so that they
>>can try again if they want to. But if they follow that link, nothing
>>happens...unless the cache is cleared.
>>>
>>Does the browser (tested with IE and Firefox) remember the original
>>answer ? I cannot find anything regarding this policy in the applet
>>security FAQ or any other place.
>>>
>>Will I have to provide two identical applets to overcome this ?
>>>
>>Best
>>Robert Larsen
>Sounds like you should move some of your code from init() to start().
>
But accepting the certificate and granting extra privileges happens
before the applet starts so how would this solve anything ?
The second time the user is not even asked to accept the certificate. It
seems to be assumed that since the user didn't accept it the first time
he shouldn't even be asked again.
It has nothing to do with your code - it is the browser's mechanism for
handling permissions. The "don't allow" is persistent for the session.

If you are serving the applet from a dynamic page (jsp, etc.) you might
try killing the current session and starting a new one (no guarantees -
your mileage may vary). From static pages, I can't think of anything
other than serving a different applet but others may have a better idea.

--
Dave Miller
Java Web Hosting at:
http://www.cheap-jsp-hosting.com/
 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles