-
Bug
-
Resolution: Cannot Reproduce
-
P4
-
None
-
8u77
-
x86
-
windows_8
FULL PRODUCT VERSION :
java version "1.8.0_77"
Java(TM) SE Runtime Environment (build 1.8.0_77-b03)
Java HotSpot(TM) 64-Bit Server VM (build 25.77-b03, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
ver : Microsoft Windows 8.1 Enterprize 64-bit
A DESCRIPTION OF THE PROBLEM :
-> We are implementing HTTP Proxy with basic authentication.
-> There are three systems.
(1) Client : From where the request generates.
(2) Proxy Server : Where proxy server configuration is set. (Using CCProxy software)
(3) Server : Where client is trying to reach through proxy server with basic authentication.
(4) So below will be the flow.
Client -> Proxy -> Server
(5) We are doing file upload and file download using proxy.
(6) We are able to download file but file upload gives error.
(7) We are generating HTTP PUT request to upload file.
(8) Please note that file upload and file download are successful without proxy.
(9) Also the proxy server is receiving the PUT request from client but not successfully uploads file.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
(1) Setup a client PC from where request generates.
(2) Setup a proxy server PC through which client connects to server. (Basic auth.)
(3) Setup a server PC where file should be uploaded from client through basic proxy authentication.
(4) try to upload file through proxy and check whether it is able to upload.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Expected result : File should be uploaded successfully
ACTUAL -
Actual result : File was unable to upload. it generates below error.
"org.apache.http.NoHttpResponseException: xxx.xxx.xxx.xxx:xx failed to respond"
ERROR MESSAGES/STACK TRACES THAT OCCUR :
Exception Message: 192.168.XXX.XXX:80 failed to respond Stack Trace: org.apache.http.NoHttpResponseException: 192.168.81.103:80 failed to respond at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:143) at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:1) at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:260) at org.apache.http.impl.DefaultBHttpClientConnection.receiveResponseHeader(DefaultBHttpClientConnection.java:161) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.http.impl.conn.CPoolProxy.invoke(CPoolProxy.java:138) at com.sun.proxy.$Proxy1.receiveResponseHeader(Unknown Source) at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:271) at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:123) at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:254) at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:195) at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:86) at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:108) at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:186) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:74) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:216) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:162) at org.acty.webdav.impl.SardineImpl.execute(SardineImpl.java:832) at org.acty.webdav.impl.SardineImpl.put(SardineImpl.java:764) at org.acty.webdav.impl.SardineImpl.put(SardineImpl.java:742) at org.acty.webdav.impl.SardineImpl.put(SardineImpl.java:730) at org.acty.webdav.impl.SardineImpl.put(SardineImpl.java:700) at org.acty.webdav.impl.SardineImpl.put(SardineImpl.java:693) at org.acty.webdav.impl.SardineImpl.put(SardineImpl.java:686) at org.acty.webdav.impl.SardineImpl.put(SardineImpl.java:680) at kmbt.csrc.gateway.filesync.DeviceIDHandler.uploadFile(DeviceIDHandler.java:231) at kmbt.csrc.gateway.filesync.DeviceIDHandler.handleDevice(DeviceIDHandler.java:74) at kmbt.csrc.gateway.filesync.DeviceIDHandler.handleDevice(DeviceIDHandler.java:46) at kmbt.csrc.gateway.filesync.SingleThreadFileSyncTask.syncFile(SingleThreadFileSyncTask.java:59) at kmbt.csrc.gateway.filesync.SingleThreadFileSyncTask.call(SingleThreadFileSyncTask.java:28) at kmbt.csrc.gateway.filesync.DirSync.run(DirSync.java:96) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
InputStream fis = new FileInputStream(files[i]);
String remoteTempFile=StringHelp.builderString(remoteCenterIDFolder,StringHelp.encode(remoteUrl)).append(Parameters.RemoteUploadFolder)
.append(Parameters.writeTempFile).toString();
ctx.getSardine().put(remoteTempFile, fis);
----------------------------------------Explanation---------------------------
remoteTempFile = http://192.168.xxx.xxx/WebDAV/ABC1/Dest/upload/write_tmp.txt
---------- END SOURCE ----------
SUPPORT :
YES
java version "1.8.0_77"
Java(TM) SE Runtime Environment (build 1.8.0_77-b03)
Java HotSpot(TM) 64-Bit Server VM (build 25.77-b03, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
ver : Microsoft Windows 8.1 Enterprize 64-bit
A DESCRIPTION OF THE PROBLEM :
-> We are implementing HTTP Proxy with basic authentication.
-> There are three systems.
(1) Client : From where the request generates.
(2) Proxy Server : Where proxy server configuration is set. (Using CCProxy software)
(3) Server : Where client is trying to reach through proxy server with basic authentication.
(4) So below will be the flow.
Client -> Proxy -> Server
(5) We are doing file upload and file download using proxy.
(6) We are able to download file but file upload gives error.
(7) We are generating HTTP PUT request to upload file.
(8) Please note that file upload and file download are successful without proxy.
(9) Also the proxy server is receiving the PUT request from client but not successfully uploads file.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
(1) Setup a client PC from where request generates.
(2) Setup a proxy server PC through which client connects to server. (Basic auth.)
(3) Setup a server PC where file should be uploaded from client through basic proxy authentication.
(4) try to upload file through proxy and check whether it is able to upload.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Expected result : File should be uploaded successfully
ACTUAL -
Actual result : File was unable to upload. it generates below error.
"org.apache.http.NoHttpResponseException: xxx.xxx.xxx.xxx:xx failed to respond"
ERROR MESSAGES/STACK TRACES THAT OCCUR :
Exception Message: 192.168.XXX.XXX:80 failed to respond Stack Trace: org.apache.http.NoHttpResponseException: 192.168.81.103:80 failed to respond at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:143) at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:1) at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:260) at org.apache.http.impl.DefaultBHttpClientConnection.receiveResponseHeader(DefaultBHttpClientConnection.java:161) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.http.impl.conn.CPoolProxy.invoke(CPoolProxy.java:138) at com.sun.proxy.$Proxy1.receiveResponseHeader(Unknown Source) at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:271) at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:123) at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:254) at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:195) at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:86) at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:108) at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:186) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:74) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:216) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:162) at org.acty.webdav.impl.SardineImpl.execute(SardineImpl.java:832) at org.acty.webdav.impl.SardineImpl.put(SardineImpl.java:764) at org.acty.webdav.impl.SardineImpl.put(SardineImpl.java:742) at org.acty.webdav.impl.SardineImpl.put(SardineImpl.java:730) at org.acty.webdav.impl.SardineImpl.put(SardineImpl.java:700) at org.acty.webdav.impl.SardineImpl.put(SardineImpl.java:693) at org.acty.webdav.impl.SardineImpl.put(SardineImpl.java:686) at org.acty.webdav.impl.SardineImpl.put(SardineImpl.java:680) at kmbt.csrc.gateway.filesync.DeviceIDHandler.uploadFile(DeviceIDHandler.java:231) at kmbt.csrc.gateway.filesync.DeviceIDHandler.handleDevice(DeviceIDHandler.java:74) at kmbt.csrc.gateway.filesync.DeviceIDHandler.handleDevice(DeviceIDHandler.java:46) at kmbt.csrc.gateway.filesync.SingleThreadFileSyncTask.syncFile(SingleThreadFileSyncTask.java:59) at kmbt.csrc.gateway.filesync.SingleThreadFileSyncTask.call(SingleThreadFileSyncTask.java:28) at kmbt.csrc.gateway.filesync.DirSync.run(DirSync.java:96) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
InputStream fis = new FileInputStream(files[i]);
String remoteTempFile=StringHelp.builderString(remoteCenterIDFolder,StringHelp.encode(remoteUrl)).append(Parameters.RemoteUploadFolder)
.append(Parameters.writeTempFile).toString();
ctx.getSardine().put(remoteTempFile, fis);
----------------------------------------Explanation---------------------------
remoteTempFile = http://192.168.xxx.xxx/WebDAV/ABC1/Dest/upload/write_tmp.txt
---------- END SOURCE ----------
SUPPORT :
YES