marwensaid / eid-applet

Automatically exported from code.google.com/p/eid-applet
Other
1 stars 1 forks source link

Detection of card removal does not always work #29

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Use Id + Auth and ask for card removal.
The applet does not detect the card removal.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Latest version. 

Please provide any additional information below.

It is working fine on several dev machines, but on one machine with XP and
the middleware it does not work. If the user is removing the card, the
applet does not detect it BUT if we disconnect the reader the applet detect
it as a card removal... 

I can't ask the user to unplug his reader every time ;)

Do you have any idea what might cause this? There is no relevant info in
the log, just the message to ask to remove the card then nothing.

If no solution is found, would it be interesting to have an option for
timeout for this? Ask nicely for the user to remove his card, but after 5
or 10s (would be a parameter in HTTP) the applet would eventually continue
even if the card is still in. 
Or better, make it work 100% of times of course ;)

Regards,

Original issue reported on code.google.com by sbuyss...@gmail.com on 3 Feb 2010 at 8:34

GoogleCodeExporter commented 9 years ago
I just took a look at the source, and slightly modified the code.

    public void removeCard() throws CardException {
        this.cardTerminal.waitForCardAbsent(0);
    }

to

    public void removeCard() throws CardException {
        this.cardTerminal.waitForCardAbsent(5000); //Wait maximum 5 seconds
    }

It would be probably best to have an option for this, but this workaround does 
solve
my problem on the client machine. 

Original comment by sbuyss...@gmail.com on 17 Feb 2010 at 9:25

GoogleCodeExporter commented 9 years ago

Original comment by frank.co...@gmail.com on 9 Apr 2010 at 1:58

GoogleCodeExporter commented 9 years ago

Original comment by frank.co...@gmail.com on 19 Apr 2010 at 9:29