{"action":"created","issue":{"url":"https://api.github.com/repos/WinRb/WinRM/issues/159","repository_url":"https://api.github.com/repos/WinRb/WinRM","labels_url":"https://api.github.com/repos/WinRb/WinRM/issues/159/labels{/name}","comments_url":"https://api.github.com/repos/WinRb/WinRM/issues/159/comments","events_url":"https://api.github.com/repos/WinRb/WinRM/issues/159/events","html_url":"https://github.com/WinRb/WinRM/issues/159","id":118876553,"number":159,"title":"Illegal quoting error since v1.3.5 on windows server 2008R2 boxes","user":{"login":"Annih","id":559627,"avatar_url":"https://avatars.githubusercontent.com/u/559627?v=3","gravatar_id":"","url":"https://api.github.com/users/Annih","html_url":"https://github.com/Annih","followers_url":"https://api.github.com/users/Annih/followers","following_url":"https://api.github.com/users/Annih/following{/other_user}","gists_url":"https://api.github.com/users/Annih/gists{/gist_id}","starred_url":"https://api.github.com/users/Annih/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Annih/subscriptions","organizations_url":"https://api.github.com/users/Annih/orgs","repos_url":"https://api.github.com/users/Annih/repos","events_url":"https://api.github.com/users/Annih/events{/privacy}","received_events_url":"https://api.github.com/users/Annih/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-11-25T16:43:03Z","updated_at":"2016-02-25T17:05:31Z","closed_at":null,"body":"Hello,\r\n\r\nAfter upgrade from winrm 1.3.4 to 1.3.5, our CI is facing Illegal quoting in line 1 error in test kitchen every time we try to converge a windows box.\r\n\r\nHere is a stacktrace reproduced on my local windows workstation:\r\n\r\n>D      ------Exception-------\r\n>D      Class: Kitchen::ActionFailed\r\n>D      Message: `Failed to complete #converge action: [Illegal quoting in line 1.]`\r\n>D      ---Nested Exception---\r\n>D      Class: CSV::MalformedCSVError\r\n>D      Message: Illegal quoting in line 1.\r\n>D      ------Backtrace-------\r\n>D      C:/ruby/2.2.0/csv.rb:1874:in \\`block (2 levels) in shift'\r\n>D      C:/ruby/2.2.0/csv.rb:1836:in \\`each'\r\n>D      C:/ruby/2.2.0/csv.rb:1836:in \\`block in shift'\r\n>D      C:/ruby/2.2.0/csv.rb:1796:in \\`loop'\r\n>D      C:/ruby/2.2.0/csv.rb:1796:in \\`shift'\r\n>D      C:/ruby/2.2.0/csv.rb:1738:in \\`each'\r\n>D      C:/ruby/2.2.0/csv.rb:1752:in \\`to_a'\r\n>D      C:/ruby/2.2.0/csv.rb:1752:in \\`read'\r\n>D      C:/ruby/2.2.0/csv.rb:1298:in \\`parse'\r\n>D      C:/ruby/gems/2.2.0/gems/winrm-transport-1.0.3.dev/lib/winrm/transport/file_transporter.rb:391:in \\`parse_response'\r\n>D      C:/ruby/gems/2.2.0/gems/winrm-transport-1.0.3.dev/lib/winrm/transport/file_transporter.rb:184:in \\`check_files'\r\n>D      C:/ruby/gems/2.2.0/gems/winrm-transport-1.0.3.dev/lib/winrm/transport/file_transporter.rb:90:in \\`block in upload'\r\n>D      C:/ruby/2.2.0/benchmark.rb:288:in \\`measure'\r\n>D      C:/ruby/gems/2.2.0/gems/winrm-transport-1.0.3.dev/lib/winrm/transport/file_transporter.rb:87:in \\`upload'\r\n>D      C:/ruby/gems/2.2.0/gems/test-kitchen-1.4.2/lib/kitchen/transport/winrm.rb:118:in \\`upload'\r\n>D      C:/ruby/gems/2.2.0/gems/test-kitchen-1.4.2/lib/kitchen/provisioner/base.rb:68:in \\`block in call'\r\n>D      C:/ruby/gems/2.2.0/gems/test-kitchen-1.4.2/lib/kitchen/transport/base.rb:79:in \\`initialize'\r\n>D      C:/ruby/gems/2.2.0/gems/test-kitchen-1.4.2/lib/kitchen/transport/winrm.rb:423:in \\`new'\r\n>D      C:/ruby/gems/2.2.0/gems/test-kitchen-1.4.2/lib/kitchen/transport/winrm.rb:423:in \\`create_new_connection'\r\n>D      C:/ruby/gems/2.2.0/gems/test-kitchen-1.4.2/lib/kitchen/transport/winrm.rb:62:in \\`connection'\r\n>D      C:/ruby/gems/2.2.0/gems/test-kitchen-1.4.2/lib/kitchen/provisioner/base.rb:64:in \\`call'\r\n>D      C:/ruby/gems/2.2.0/gems/test-kitchen-1.4.2/lib/kitchen/instance.rb:366:in \\`block in converge_action'\r\n>D      C:/ruby/gems/2.2.0/gems/test-kitchen-1.4.2/lib/kitchen/instance.rb:488:in \\`call'\r\n>D      C:/ruby/gems/2.2.0/gems/test-kitchen-1.4.2/lib/kitchen/instance.rb:488:in \\`synchronize_or_call'\r\n>D      C:/ruby/gems/2.2.0/gems/test-kitchen-1.4.2/lib/kitchen/instance.rb:453:in \\`block in action'\r\n>D      C:/ruby/2.2.0/benchmark.rb:288:in \\`measure'\r\n>D      C:/ruby/gems/2.2.0/gems/test-kitchen-1.4.2/lib/kitchen/instance.rb:452:in \\`action'\r\n>D      C:/ruby/gems/2.2.0/gems/test-kitchen-1.4.2/lib/kitchen/instance.rb:362:in \\`converge_action'\r\n>D      C:/ruby/gems/2.2.0/gems/test-kitchen-1.4.2/lib/kitchen/instance.rb:341:in \\`block in transition_to'\r\n>D      C:/ruby/gems/2.2.0/gems/test-kitchen-1.4.2/lib/kitchen/instance.rb:340:in \\`each'\r\n>D      C:/ruby/gems/2.2.0/gems/test-kitchen-1.4.2/lib/kitchen/instance.rb:340:in \\`transition_to'\r\n>D      C:/ruby/gems/2.2.0/gems/test-kitchen-1.4.2/lib/kitchen/instance.rb:138:in \\`converge'\r\n>D      C:/ruby/gems/2.2.0/gems/test-kitchen-1.4.2/lib/kitchen/command.rb:176:in \\`public_send'\r\n>D      C:/ruby/gems/2.2.0/gems/test-kitchen-1.4.2/lib/kitchen/command.rb:176:in \\`block (2 levels) in run_action'\r\n>D      C:/ruby/gems/2.2.0/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in \\`call'\r\n>D      C:/ruby/gems/2.2.0/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in \\`block in create_with_logging_context'\r\n>D      ----------------------"},"comment":{"url":"https://api.github.com/repos/WinRb/WinRM/issues/comments/188880070","html_url":"https://github.com/WinRb/WinRM/issues/159#issuecomment-188880070","issue_url":"https://api.github.com/repos/WinRb/WinRM/issues/159","id":188880070,"user":{"login":"b-dean","id":3189231,"avatar_url":"https://avatars.githubusercontent.com/u/3189231?v=3","gravatar_id":"","url":"https://api.github.com/users/b-dean","html_url":"https://github.com/b-dean","followers_url":"https://api.github.com/users/b-dean/followers","following_url":"https://api.github.com/users/b-dean/following{/other_user}","gists_url":"https://api.github.com/users/b-dean/gists{/gist_id}","starred_url":"https://api.github.com/users/b-dean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/b-dean/subscriptions","organizations_url":"https://api.github.com/users/b-dean/orgs","repos_url":"https://api.github.com/users/b-dean/repos","events_url":"https://api.github.com/users/b-dean/events{/privacy}","received_events_url":"https://api.github.com/users/b-dean/received_events","type":"User","site_admin":false},"created_at":"2016-02-25T17:05:31Z","updated_at":"2016-02-25T17:05:31Z","body":"I tried the same cookbook w/ the newer test-kitchen that uses winrm-fs and it has similar issues\r\n\r\nGemfile\r\n\r\n```ruby\r\nsource 'https://rubygems.org'\r\n\r\ngem 'test-kitchen', github: 'test-kitchen/test-kitchen'\r\ngem 'kitchen-vagrant'\r\ngem 'winrm-fs'\r\ngem 'berkshelf'\r\n```\r\n\r\nkitchen.log\r\n```\r\nI, [2016-02-25T11:52:45.691390 #20065]  INFO -- Kitchen: -----> Starting Kitchen (v1.5.0)\r\nI, [2016-02-25T11:52:46.953376 #20065]  INFO -- Kitchen: -----> Cleaning up any prior instances of <default-windows-server2008R2>\r\nI, [2016-02-25T11:52:46.953684 #20065]  INFO -- Kitchen: -----> Destroying <default-windows-server2008R2>...\r\nI, [2016-02-25T11:52:46.954899 #20065]  INFO -- Kitchen: -----> Testing <default-windows-server2008R2>\r\nI, [2016-02-25T11:52:46.955072 #20065]  INFO -- Kitchen: -----> Creating <default-windows-server2008R2>...\r\nI, [2016-02-25T11:58:09.209208 #20065]  INFO -- Kitchen: -----> Converging <default-windows-server2008R2>...\r\nE, [2016-02-25T11:58:15.968820 #20065] ERROR -- Kitchen: ------Exception-------\r\nE, [2016-02-25T11:58:15.968895 #20065] ERROR -- Kitchen: Class: Kitchen::ActionFailed\r\nE, [2016-02-25T11:58:15.968938 #20065] ERROR -- Kitchen: Message: Failed to complete #converge action: [Illegal quoting in line 1.]\r\nE, [2016-02-25T11:58:15.968978 #20065] ERROR -- Kitchen: ---Nested Exception---\r\nE, [2016-02-25T11:58:15.969015 #20065] ERROR -- Kitchen: Class: CSV::MalformedCSVError\r\nE, [2016-02-25T11:58:15.969052 #20065] ERROR -- Kitchen: Message: Illegal quoting in line 1.\r\nE, [2016-02-25T11:58:15.969089 #20065] ERROR -- Kitchen: ------Backtrace-------\r\nE, [2016-02-25T11:58:15.969125 #20065] ERROR -- Kitchen: /home/ben/.rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/csv.rb:1857:in `block (2 levels) in shift'\r\nE, [2016-02-25T11:58:15.969162 #20065] ERROR -- Kitchen: /home/ben/.rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/csv.rb:1819:in `each'\r\nE, [2016-02-25T11:58:15.969200 #20065] ERROR -- Kitchen: /home/ben/.rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/csv.rb:1819:in `block in shift'\r\nE, [2016-02-25T11:58:15.969237 #20065] ERROR -- Kitchen: /home/ben/.rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/csv.rb:1779:in `loop'\r\nE, [2016-02-25T11:58:15.969274 #20065] ERROR -- Kitchen: /home/ben/.rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/csv.rb:1779:in `shift'\r\nE, [2016-02-25T11:58:15.969311 #20065] ERROR -- Kitchen: /home/ben/.rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/csv.rb:1721:in `each'\r\nE, [2016-02-25T11:58:15.969348 #20065] ERROR -- Kitchen: /home/ben/.rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/csv.rb:1735:in `to_a'\r\nE, [2016-02-25T11:58:15.969385 #20065] ERROR -- Kitchen: /home/ben/.rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/csv.rb:1735:in `read'\r\nE, [2016-02-25T11:58:15.969422 #20065] ERROR -- Kitchen: /home/ben/.rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/csv.rb:1293:in `parse'\r\nE, [2016-02-25T11:58:15.969459 #20065] ERROR -- Kitchen: /home/ben/.rvm/gems/ruby-2.1.8@cookbook-foo/gems/winrm-fs-0.3.1/lib/winrm-fs/core/file_transporter.rb:381:in `parse_response'\r\nE, [2016-02-25T11:58:15.969496 #20065] ERROR -- Kitchen: /home/ben/.rvm/gems/ruby-2.1.8@cookbook-foo/gems/winrm-fs-0.3.1/lib/winrm-fs/core/file_transporter.rb:192:in `check_files'\r\nE, [2016-02-25T11:58:15.969533 #20065] ERROR -- Kitchen: /home/ben/.rvm/gems/ruby-2.1.8@cookbook-foo/gems/winrm-fs-0.3.1/lib/winrm-fs/core/file_transporter.rb:80:in `block in upload'\r\nE, [2016-02-25T11:58:15.969570 #20065] ERROR -- Kitchen: /home/ben/.rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/benchmark.rb:279:in `measure'\r\nE, [2016-02-25T11:58:15.969637 #20065] ERROR -- Kitchen: /home/ben/.rvm/gems/ruby-2.1.8@cookbook-foo/gems/winrm-fs-0.3.1/lib/winrm-fs/core/file_transporter.rb:78:in `upload'\r\nE, [2016-02-25T11:58:15.969677 #20065] ERROR -- Kitchen: /home/ben/.rvm/gems/ruby-2.1.8@cookbook-foo/bundler/gems/test-kitchen-e934595c24d9/lib/kitchen/transport/winrm.rb:129:in `upload'\r\nE, [2016-02-25T11:58:15.969716 #20065] ERROR -- Kitchen: /home/ben/.rvm/gems/ruby-2.1.8@cookbook-foo/bundler/gems/test-kitchen-e934595c24d9/lib/kitchen/transport/winrm.rb:350:in `run_from_file_command'\r\nE, [2016-02-25T11:58:15.969753 #20065] ERROR -- Kitchen: /home/ben/.rvm/gems/ruby-2.1.8@cookbook-foo/bundler/gems/test-kitchen-e934595c24d9/lib/kitchen/transport/winrm.rb:99:in `execute'\r\nE, [2016-02-25T11:58:15.969802 #20065] ERROR -- Kitchen: /home/ben/.rvm/gems/ruby-2.1.8@cookbook-foo/bundler/gems/test-kitchen-e934595c24d9/lib/kitchen/provisioner/base.rb:67:in `block in call'\r\nE, [2016-02-25T11:58:15.969842 #20065] ERROR -- Kitchen: /home/ben/.rvm/gems/ruby-2.1.8@cookbook-foo/bundler/gems/test-kitchen-e934595c24d9/lib/kitchen/transport/winrm.rb:474:in `reuse_connection'\r\nE, [2016-02-25T11:58:15.969879 #20065] ERROR -- Kitchen: /home/ben/.rvm/gems/ruby-2.1.8@cookbook-foo/bundler/gems/test-kitchen-e934595c24d9/lib/kitchen/transport/winrm.rb:71:in `connection'\r\nE, [2016-02-25T11:58:15.969915 #20065] ERROR -- Kitchen: /home/ben/.rvm/gems/ruby-2.1.8@cookbook-foo/bundler/gems/test-kitchen-e934595c24d9/lib/kitchen/provisioner/base.rb:66:in `call'\r\nE, [2016-02-25T11:58:15.969952 #20065] ERROR -- Kitchen: /home/ben/.rvm/gems/ruby-2.1.8@cookbook-foo/bundler/gems/test-kitchen-e934595c24d9/lib/kitchen/instance.rb:373:in `block in converge_action'\r\nE, [2016-02-25T11:58:15.969989 #20065] ERROR -- Kitchen: /home/ben/.rvm/gems/ruby-2.1.8@cookbook-foo/bundler/gems/test-kitchen-e934595c24d9/lib/kitchen/instance.rb:513:in `call'\r\nE, [2016-02-25T11:58:15.970025 #20065] ERROR -- Kitchen: /home/ben/.rvm/gems/ruby-2.1.8@cookbook-foo/bundler/gems/test-kitchen-e934595c24d9/lib/kitchen/instance.rb:513:in `synchronize_or_call'\r\nE, [2016-02-25T11:58:15.970061 #20065] ERROR -- Kitchen: /home/ben/.rvm/gems/ruby-2.1.8@cookbook-foo/bundler/gems/test-kitchen-e934595c24d9/lib/kitchen/instance.rb:478:in `block in action'\r\nE, [2016-02-25T11:58:15.970097 #20065] ERROR -- Kitchen: /home/ben/.rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/benchmark.rb:279:in `measure'\r\nE, [2016-02-25T11:58:15.970133 #20065] ERROR -- Kitchen: /home/ben/.rvm/gems/ruby-2.1.8@cookbook-foo/bundler/gems/test-kitchen-e934595c24d9/lib/kitchen/instance.rb:477:in `action'\r\nE, [2016-02-25T11:58:15.970170 #20065] ERROR -- Kitchen: /home/ben/.rvm/gems/ruby-2.1.8@cookbook-foo/bundler/gems/test-kitchen-e934595c24d9/lib/kitchen/instance.rb:369:in `converge_action'\r\nE, [2016-02-25T11:58:15.970206 #20065] ERROR -- Kitchen: /home/ben/.rvm/gems/ruby-2.1.8@cookbook-foo/bundler/gems/test-kitchen-e934595c24d9/lib/kitchen/instance.rb:348:in `block in transition_to'\r\nE, [2016-02-25T11:58:15.970242 #20065] ERROR -- Kitchen: /home/ben/.rvm/gems/ruby-2.1.8@cookbook-foo/bundler/gems/test-kitchen-e934595c24d9/lib/kitchen/instance.rb:347:in `each'\r\nE, [2016-02-25T11:58:15.970279 #20065] ERROR -- Kitchen: /home/ben/.rvm/gems/ruby-2.1.8@cookbook-foo/bundler/gems/test-kitchen-e934595c24d9/lib/kitchen/instance.rb:347:in `transition_to'\r\nE, [2016-02-25T11:58:15.970315 #20065] ERROR -- Kitchen: /home/ben/.rvm/gems/ruby-2.1.8@cookbook-foo/bundler/gems/test-kitchen-e934595c24d9/lib/kitchen/instance.rb:160:in `verify'\r\nE, [2016-02-25T11:58:15.970351 #20065] ERROR -- Kitchen: /home/ben/.rvm/gems/ruby-2.1.8@cookbook-foo/bundler/gems/test-kitchen-e934595c24d9/lib/kitchen/instance.rb:189:in `block in test'\r\nE, [2016-02-25T11:58:15.970418 #20065] ERROR -- Kitchen: /home/ben/.rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/benchmark.rb:279:in `measure'\r\nE, [2016-02-25T11:58:15.970469 #20065] ERROR -- Kitchen: /home/ben/.rvm/gems/ruby-2.1.8@cookbook-foo/bundler/gems/test-kitchen-e934595c24d9/lib/kitchen/instance.rb:185:in `test'\r\nE, [2016-02-25T11:58:15.970506 #20065] ERROR -- Kitchen: /home/ben/.rvm/gems/ruby-2.1.8@cookbook-foo/bundler/gems/test-kitchen-e934595c24d9/lib/kitchen/command.rb:176:in `public_send'\r\nE, [2016-02-25T11:58:15.970560 #20065] ERROR -- Kitchen: /home/ben/.rvm/gems/ruby-2.1.8@cookbook-foo/bundler/gems/test-kitchen-e934595c24d9/lib/kitchen/command.rb:176:in `block (2 levels) in run_action'\r\nE, [2016-02-25T11:58:15.970630 #20065] ERROR -- Kitchen: /home/ben/.rvm/gems/ruby-2.1.8@cookbook-foo/gems/logging-2.0.0/lib/logging/diagnostic_context.rb:448:in `call'\r\nE, [2016-02-25T11:58:15.970669 #20065] ERROR -- Kitchen: /home/ben/.rvm/gems/ruby-2.1.8@cookbook-foo/gems/logging-2.0.0/lib/logging/diagnostic_context.rb:448:in `block in create_with_logging_context'\r\nE, [2016-02-25T11:58:15.970706 #20065] ERROR -- Kitchen: ----------------------\r\n```"}}