{"action":"created","issue":{"url":"https://api.github.com/repos/webrtc/testrtc/issues/159","labels_url":"https://api.github.com/repos/webrtc/testrtc/issues/159/labels{/name}","comments_url":"https://api.github.com/repos/webrtc/testrtc/issues/159/comments","events_url":"https://api.github.com/repos/webrtc/testrtc/issues/159/events","html_url":"https://github.com/webrtc/testrtc/issues/159","id":118152146,"number":159,"title":"Progress bar not shown when an empty file is chosen for file transfer after transferring a non-empty file","user":{"login":"cvranjani","id":15255941,"avatar_url":"https://avatars.githubusercontent.com/u/15255941?v=3","gravatar_id":"","url":"https://api.github.com/users/cvranjani","html_url":"https://github.com/cvranjani","followers_url":"https://api.github.com/users/cvranjani/followers","following_url":"https://api.github.com/users/cvranjani/following{/other_user}","gists_url":"https://api.github.com/users/cvranjani/gists{/gist_id}","starred_url":"https://api.github.com/users/cvranjani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cvranjani/subscriptions","organizations_url":"https://api.github.com/users/cvranjani/orgs","repos_url":"https://api.github.com/users/cvranjani/repos","events_url":"https://api.github.com/users/cvranjani/events{/privacy}","received_events_url":"https://api.github.com/users/cvranjani/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-20T23:54:03Z","updated_at":"2015-11-23T17:06:22Z","closed_at":"2015-11-23T17:06:21Z","body":"Repro steps:\r\n\r\n 0. Browse to https://webrtc.github.io/samples/src/content/datachannel/filetransfer/\r\n1. Open the javascript console (alt+cmd+j or ctr+shift+j) and watch for any errors\r\n2. Click the \"Choose File\" button\r\n3. Select a file of any size (non-empty)\r\n4. Observe file transfer through \"Send progress\" and \"Receive progress\" bars.\r\n5. Verify that the Average Bitrate is > 0\r\n6. Click the \"Click to download $filename\" link\r\n7. Now click on \"Choose File\" button and select an empty file(file with 0 bytes )\r\n8. Observe that \"Send progress\" and \"Receive progress\" bars remain unchanged  and \"Click to download $filename\" link  still shows the file transferred in step 3.\r\n\r\nExpected results:\r\nSelecting an empty file for file transfer should result in message \"File is empty, please select a non-empty file\" \r\n\r\nActual results:\r\nSelecting an empty file after transferring a non-empty file:\r\na)   is not showing message \"File is empty, please select a non-empty file\" \r\nb)  \"Send progress\" and \"Receive progress\" bars remain unchanged  \r\nc) \"Click to download $filename\" link  still shows the file transferred previously\r\n\r\nJava script console logs:\r\n\r\n\"This appears to be Chrome\r\ncommon.js:8 8.429: Created local peer connection object localConnection\r\ncommon.js:8 8.438: Created send data channel\r\ncommon.js:8 8.449: Created remote peer connection object remoteConnection\r\ncommon.js:8 8.489: Offer from localConnection \r\nv=0\r\no=- 280315329748569179 2 IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\na=msid-semantic: WMS\r\nm=application 9 DTLS/SCTP 5000\r\nc=IN IP4 0.0.0.0\r\na=ice-ufrag:7tJcFSyVu42opTzp\r\na=ice-pwd:74RSJUNY5kCEqCU69qpvryY1\r\na=fingerprint:sha-256 9D:D5:D6:6E:08:F4:5D:9A:3E:C8:C6:FA:53:8C:2D:65:CF:C7:AB:5B:DC:BF:0B:8B:7F:E8:FE:EF:E3:3C:F6:97\r\na=setup:actpass\r\na=mid:data\r\na=sctpmap:5000 webrtc-datachannel 1024\r\ncommon.js:8 8.522: Answer from remoteConnection \r\nv=0\r\no=- 7567231516906172698 2 IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\na=msid-semantic: WMS\r\nm=application 9 DTLS/SCTP 5000\r\nc=IN IP4 0.0.0.0\r\nb=AS:30\r\na=ice-ufrag:iC6ACve/lH9Z2MMc\r\na=ice-pwd:oOwmf65xsHewK6mMblw2VSMm\r\na=fingerprint:sha-256 9D:D5:D6:6E:08:F4:5D:9A:3E:C8:C6:FA:53:8C:2D:65:CF:C7:AB:5B:DC:BF:0B:8B:7F:E8:FE:EF:E3:3C:F6:97\r\na=setup:active\r\na=mid:data\r\na=sctpmap:5000 webrtc-datachannel 1024\r\ncommon.js:8 8.528: local ice callback\r\ncommon.js:8 8.533: Local ICE candidate: \r\ncandidate:4273728266 1 udp 2113937151 192.168.1.125 39407 typ host generation 0\r\ncommon.js:8 8.537: AddIceCandidate success.\r\ncommon.js:8 8.540: remote ice callback\r\ncommon.js:8 8.549: Remote ICE candidate: \r\n candidate:4273728266 1 udp 2113937151 192.168.1.125 38300 typ host generation 0\r\ncommon.js:8 8.561: AddIceCandidate success.\r\ncommon.js:8 8.564: remote ice callback\r\ncommon.js:8 8.567: local ice callback\r\ncommon.js:8 9.579: Send channel state is: open\r\ncommon.js:8 9.584: file is arabic.txt 2018 text/plain Fri Nov 20 2015 10:14:41 GMT-0800 (PST)\r\ncommon.js:8 9.595: Receive Channel Callback\r\ncommon.js:8 9.597: Receive channel state is: open\r\ncommon.js:8 9.608: Closing data channels\r\ncommon.js:8 9.614: Closed data channel with label: sendDataChannel\r\ncommon.js:8 9.617: Closed data channel with label: sendDataChannel\r\ncommon.js:8 9.620: Closed peer connections\r\ncommon.js:8 9.633: Send channel state is: closed\r\ncommon.js:8 9.636: Receive channel state is: closed\r\ncommon.js:8 19.132: Created local peer connection object localConnection\r\ncommon.js:8 19.134: Created send data channel\r\ncommon.js:8 19.138: Created remote peer connection object remoteConnection\r\ncommon.js:8 19.147: Offer from localConnection \r\nv=0\r\no=- 1796182068225626586 2 IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\na=msid-semantic: WMS\r\nm=application 9 DTLS/SCTP 5000\r\nc=IN IP4 0.0.0.0\r\na=ice-ufrag:AVR6YxKAyj6tPLBz\r\na=ice-pwd:vyyUbFVKsTrDX8viDfZ/xVzF\r\na=fingerprint:sha-256 9D:D5:D6:6E:08:F4:5D:9A:3E:C8:C6:FA:53:8C:2D:65:CF:C7:AB:5B:DC:BF:0B:8B:7F:E8:FE:EF:E3:3C:F6:97\r\na=setup:actpass\r\na=mid:data\r\na=sctpmap:5000 webrtc-datachannel 1024\r\ncommon.js:8 19.167: Answer from remoteConnection \r\nv=0\r\no=- 5051238314494168326 2 IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\na=msid-semantic: WMS\r\nm=application 9 DTLS/SCTP 5000\r\nc=IN IP4 0.0.0.0\r\nb=AS:30\r\na=ice-ufrag:Szqps36stXwUBP31\r\na=ice-pwd:hPxxNlqM7rSQUWFHZXdX+jzu\r\na=fingerprint:sha-256 9D:D5:D6:6E:08:F4:5D:9A:3E:C8:C6:FA:53:8C:2D:65:CF:C7:AB:5B:DC:BF:0B:8B:7F:E8:FE:EF:E3:3C:F6:97\r\na=setup:active\r\na=mid:data\r\na=sctpmap:5000 webrtc-datachannel 1024\r\ncommon.js:8 19.176: local ice callback\r\ncommon.js:8 19.187: Local ICE candidate: \r\ncandidate:4273728266 1 udp 2113937151 192.168.1.125 52437 typ host generation 0\r\ncommon.js:8 19.203: AddIceCandidate success.\r\ncommon.js:8 19.216: remote ice callback\r\ncommon.js:8 19.219: Remote ICE candidate: \r\n candidate:4273728266 1 udp 2113937151 192.168.1.125 59136 typ host generation 0\r\ncommon.js:8 19.222: remote ice callback\r\ncommon.js:8 19.225: AddIceCandidate success.\r\ncommon.js:8 19.228: local ice callback\r\ncommon.js:8 20.243: Send channel state is: open\r\ncommon.js:8 20.245: file is x 0  Wed Nov 11 2015 15:34:28 GMT-0800 (PST)\r\ncommon.js:8 20.245: Closing data channels\r\ncommon.js:8 20.252: Closed data channel with label: sendDataChannel\r\ncommon.js:8 20.252: Closed data channel with label: sendDataChannel\r\ncommon.js:8 20.261: Closed peer connections\r\ncommon.js:8 20.267: Send channel state is: closed \""},"comment":{"url":"https://api.github.com/repos/webrtc/testrtc/issues/comments/158997584","html_url":"https://github.com/webrtc/testrtc/issues/159#issuecomment-158997584","issue_url":"https://api.github.com/repos/webrtc/testrtc/issues/159","id":158997584,"user":{"login":"tednakamura","id":9001650,"avatar_url":"https://avatars.githubusercontent.com/u/9001650?v=3","gravatar_id":"","url":"https://api.github.com/users/tednakamura","html_url":"https://github.com/tednakamura","followers_url":"https://api.github.com/users/tednakamura/followers","following_url":"https://api.github.com/users/tednakamura/following{/other_user}","gists_url":"https://api.github.com/users/tednakamura/gists{/gist_id}","starred_url":"https://api.github.com/users/tednakamura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tednakamura/subscriptions","organizations_url":"https://api.github.com/users/tednakamura/orgs","repos_url":"https://api.github.com/users/tednakamura/repos","events_url":"https://api.github.com/users/tednakamura/events{/privacy}","received_events_url":"https://api.github.com/users/tednakamura/received_events","type":"User","site_admin":false},"created_at":"2015-11-23T17:06:21Z","updated_at":"2015-11-23T17:06:21Z","body":"Can you refile (copy/paste should be fine) this in the webrtc/samples github repo (https://github.com/webrtc/samples/issues)?"}}