Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
OpenCMIS 0.4.0
-
None
-
WebLogic 10.3 running under Windows Server 2008
Description
On WebLogic 10.3, the HTTP chunking size for keep-alive sessions must be < 64k size or an HTTP POST command will fail. In the 0.4.0 version of HttpUtils the BUFFER_SIZE constant is set to a pretty large value (2 * 1024 * 1024 bytes), set on line 54 of HttpsUtils.java . With this setting, HTTP POST methods that go through the HttpUtils.invoke() method fail with an error on WL 10.3.x servers. On line 166, this statement:
conn.setChunkedStreamingMode(BUFFER_SIZE);
sets the buffer size and the subsequent write of the buffer fails. Reducing the size of BUFFER_SIZE to < 64k solves this issue.