cliffdeclerck / eid-applet

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

HTTP Error 411. The request must be chunked or have a content length. #57

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Client side: Windows Vista/IE8
Server side: IIS 7.5/.NET/applet GA 1.0.0 and 1.0.1

When trying to login the following error is produced.

ERRORLOG:

eID Applet - Copyright (C) 2008-2010 FedICT.
Released under GNU LGPL version 3.0 license.
More info: http://code.google.com/p/eid-applet/
checking applet privileges...
security manager permission check for java 1.6...
checking web application trust...
running privileged code...
eID browser applet version: 1.0.0.GA
Java version: 1.6.0_22
Java vendor: Sun Microsystems Inc.
OS: Windows Vista
OS version: 6.0
OS arch: x86
Web application URL: https://xxxxxxxxxxxxxxxxxxxxxx
Current time: Thu Oct 14 16:29:02 CEST 2010
sending message: HelloMessage
current protocol state: null
protocol state transition: INIT
SSL handshake finish cipher suite: TLS_RSA_WITH_AES_128_CBC_SHA
HTTP response code: 411
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 
4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>Length Required</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Length Required</h2>
<hr><p>HTTP Error 411. The request must be chunked or have a content length.</p>
</BODY></HTML>
error: error sending message to service. HTTP status code: 411
error type: java.io.IOException
at be.fedict.eid.applet.Controller.sendMessage:193
at be.fedict.eid.applet.Controller.run:249
at be.fedict.eid.applet.Applet$AppletThread$1.run:525
at java.security.AccessController.doPrivileged:-2
at be.fedict.eid.applet.Applet$AppletThread.run:520
at java.lang.Thread.run:-1
Algemene fout.

Original issue reported on code.google.com by kevin.va...@gmail.com on 19 Oct 2010 at 12:10

GoogleCodeExporter commented 9 years ago
Possible cause (but not yet tested) could be the recent update to BEID version: 
3.5.4.6535
I'll get back on this.

Original comment by kevin.va...@gmail.com on 22 Oct 2010 at 8:23

GoogleCodeExporter commented 9 years ago
Contradictory to what I said before, it is not caused by the newer BEID 
version, but by the recent Java 6u22 update. When I revert to Java 6u21 it 
works again.

I see it works on e-contract, but that version is 1.0.2-SNAPSHOT.

Problem already addressed in there?

Original comment by kevin.va...@gmail.com on 22 Oct 2010 at 2:21

GoogleCodeExporter commented 9 years ago
The eID Applet Service for ASP.NET is just a proof-of-concept. Only Java EE is 
supported at the server-side.

Original comment by frank.co...@gmail.com on 25 Oct 2010 at 8:02

GoogleCodeExporter commented 9 years ago
I investigated this further and found out that the content-length header is 
missing in the request (HelloMessage) when using Java 6u22.

Check out the screenshot, it clearly shows the header is missing.

When I look at the file "Transport.java", method "addBody", it states that it 
is a necessary header for IIS 6 and up (which we are using).

Can you please take a look at this?

Original comment by kevin.va...@gmail.com on 28 Oct 2010 at 8:40

Attachments:

GoogleCodeExporter commented 9 years ago
I have the same issue, however my applet reports "eID browser applet version: 
1.0.1.GA"

Original comment by paul.nic...@gmail.com on 3 Nov 2010 at 1:30

GoogleCodeExporter commented 9 years ago
Checked this under Linux with both JRE 6u21 and 6u22. The content-length HTTP 
header is always present.

Original comment by frank.co...@gmail.com on 18 Nov 2010 at 12:50

GoogleCodeExporter commented 9 years ago
Under Windows 7 the content-length HTTP header indeed disappears between JRE 
6u21 and 6u22. This is most likely a bug in the JRE plugin on Windows.

Original comment by frank.co...@gmail.com on 18 Nov 2010 at 1:01

GoogleCodeExporter commented 9 years ago
Filed a bug report at http://bugreport.sun.com for this.

Original comment by frank.co...@gmail.com on 18 Nov 2010 at 1:14

GoogleCodeExporter commented 9 years ago
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7001163

Original comment by frank.co...@gmail.com on 18 Nov 2010 at 1:20

GoogleCodeExporter commented 9 years ago
You can vote on this error.  Kind request to vote too :-).

Thx.

Original comment by swy...@gmail.com on 24 Nov 2010 at 5:19

GoogleCodeExporter commented 9 years ago
Voted!

Original comment by kevin.va...@gmail.com on 25 Nov 2010 at 10:30

GoogleCodeExporter commented 9 years ago
Problem remains in the latest release (6u23)!

Original comment by kevin.va...@gmail.com on 16 Dec 2010 at 10:34

GoogleCodeExporter commented 9 years ago
I know, they did not yet fix this issue.

Original comment by frank.co...@gmail.com on 16 Dec 2010 at 10:55

GoogleCodeExporter commented 9 years ago
FYI, you can give 3 votes on the same bug.

Original comment by swy...@gmail.com on 19 Jan 2011 at 3:28

GoogleCodeExporter commented 9 years ago
Hi,

If I enable the Chunk Encoding, it works.
See bellow for my modifications.

You can test on a IIS server using :
http://www.mysmartlogon.com/EID/Default.aspx?token=45B5122E-A53E-4E3C-B7BA-D2ED0
8AF066F

Regards,
Vincent Le Toux

Original comment by Vincent....@gmail.com on 21 Jan 2011 at 6:28

Attachments:

GoogleCodeExporter commented 9 years ago
Frank,

will you provide this modification in a next release?

Kind Regards,

Original comment by swy...@gmail.com on 21 Jan 2011 at 8:22

GoogleCodeExporter commented 9 years ago

Original comment by frank.co...@gmail.com on 4 Feb 2011 at 12:36

GoogleCodeExporter commented 9 years ago
Conclusie?

Original comment by kevin.va...@gmail.com on 4 Feb 2011 at 1:07

GoogleCodeExporter commented 9 years ago
The chunked patch was included in eID Applet 1.0.2.GA.

Original comment by frank.co...@gmail.com on 27 Feb 2011 at 2:59