{"action":"opened","issue":{"url":"https://api.github.com/repos/OpenBEL/openbel-api/issues/120","repository_url":"https://api.github.com/repos/OpenBEL/openbel-api","labels_url":"https://api.github.com/repos/OpenBEL/openbel-api/issues/120/labels{/name}","comments_url":"https://api.github.com/repos/OpenBEL/openbel-api/issues/120/comments","events_url":"https://api.github.com/repos/OpenBEL/openbel-api/issues/120/events","html_url":"https://github.com/OpenBEL/openbel-api/issues/120","id":167651529,"number":120,"title":"Uploading non utf-8 encoded datasets","user":{"login":"nbargnesi","id":1265294,"avatar_url":"https://avatars.githubusercontent.com/u/1265294?v=3","gravatar_id":"","url":"https://api.github.com/users/nbargnesi","html_url":"https://github.com/nbargnesi","followers_url":"https://api.github.com/users/nbargnesi/followers","following_url":"https://api.github.com/users/nbargnesi/following{/other_user}","gists_url":"https://api.github.com/users/nbargnesi/gists{/gist_id}","starred_url":"https://api.github.com/users/nbargnesi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nbargnesi/subscriptions","organizations_url":"https://api.github.com/users/nbargnesi/orgs","repos_url":"https://api.github.com/users/nbargnesi/repos","events_url":"https://api.github.com/users/nbargnesi/events{/privacy}","received_events_url":"https://api.github.com/users/nbargnesi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/OpenBEL/openbel-api/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-26T16:25:16Z","updated_at":"2016-07-26T16:25:16Z","closed_at":null,"body":"Uploading non utf-8 encoded datasets results in a crash.\r\n```\r\n2016-07-26 16:22:32 - ArgumentError - invalid byte sequence in UTF-8:\r\n        org/jruby/RubyString.java:2541:in `gsub'\r\n        org/jruby/RubyString.java:2509:in `gsub'\r\n        /home/openbel/openbel/v1/gem/gems/openbel-api-1.0.1-java/app/openbel/api/routes/datasets.rb:266:in `block in POST /api/datasets'\r\n        /home/openbel/openbel/v1/gem/gems/bel-1.0.1/lib/bel/util.rb:106:in `object_convert'\r\n        /home/openbel/openbel/v1/gem/gems/bel-1.0.1/lib/bel/util.rb:101:in `block in object_convert'\r\n        org/jruby/RubyHash.java:1448:in `each'\r\n        org/jruby/RubyEnumerable.java:903:in `inject'\r\n        /home/openbel/openbel/v1/gem/gems/bel-1.0.1/lib/bel/util.rb:96:in `object_convert'\r\n        /home/openbel/openbel/v1/gem/gems/bel-1.0.1/lib/bel/util.rb:92:in `block in object_convert'\r\n        org/jruby/RubyArray.java:1593:in `each'\r\n        org/jruby/RubyEnumerable.java:903:in `inject'\r\n        /home/openbel/openbel/v1/gem/gems/bel-1.0.1/lib/bel/util.rb:91:in `object_convert'\r\n        /home/openbel/openbel/v1/gem/gems/bel-1.0.1/lib/bel/util.rb:101:in `block in object_convert'\r\n        org/jruby/RubyHash.java:1448:in `each'\r\n        org/jruby/RubyEnumerable.java:903:in `inject'\r\n        /home/openbel/openbel/v1/gem/gems/bel-1.0.1/lib/bel/util.rb:96:in `object_convert'\r\n        /home/openbel/openbel/v1/gem/gems/openbel-api-1.0.1-java/app/openbel/api/routes/datasets.rb:265:in `block in POST /api/datasets'\r\n        /home/openbel/openbel/v1/gem/gems/bel_parser-1.0.6/lib/bel/translator/plugins/bel_script/reader.rb:35:in `block in each'\r\n        /home/openbel/openbel/v1/gem/gems/bel_parser-1.0.6/lib/bel_parser/script/nanopub_mapper.rb:39:in `block in each'\r\n        /home/openbel/openbel/v1/gem/gems/bel_parser-1.0.6/lib/bel_parser/script/validator.rb:39:in `block in each'\r\n        /home/openbel/openbel/v1/gem/gems/bel_parser-1.0.6/lib/bel_parser/script/state_aggregator.rb:25:in `block in each'\r\n        /home/openbel/openbel/v1/gem/gems/bel_parser-1.0.6/lib/bel_parser/script/first_node.rb:13:in `block in each'\r\n        /home/openbel/openbel/v1/gem/gems/bel_parser-1.0.6/lib/bel_parser/ast_filter.rb:15:in `block in each'\r\n        /home/openbel/openbel/v1/gem/gems/bel_parser-1.0.6/lib/bel_parser/ast_generator.rb:63:in `block in each'\r\n        org/jruby/RubyYielder.java:101:in `yield'\r\n        org/jruby/RubyYielder.java:110:in `<<'\r\n        uri:classloader:/jruby/kernel/enumerator.rb:72:in `block in map'\r\n        uri:classloader:/jruby/kernel/enumerator.rb:24:in `block in initialize'\r\n        org/jruby/RubyIO.java:3251:in `each_line'\r\n        org/jruby/RubyEnumerator.java:293:in `each'\r\n        org/jruby/RubyEnumerator.java:299:in `each'\r\n[...]\r\norg/jruby/RubyGenerator.java:102:in `each'\r\n        org/jruby/RubyEnumerator.java:293:in `each'\r\n        /home/openbel/openbel/v1/gem/gems/bel_parser-1.0.6/lib/bel_parser/ast_generator.rb:52:in `each'\r\n        /home/openbel/openbel/v1/gem/gems/bel_parser-1.0.6/lib/bel_parser/ast_filter.rb:13:in `each'\r\n        /home/openbel/openbel/v1/gem/gems/bel_parser-1.0.6/lib/bel_parser/script/filter.rb:28:in `each'\r\n        /home/openbel/openbel/v1/gem/gems/bel_parser-1.0.6/lib/bel_parser/script/first_node.rb:12:in `each'\r\n        /home/openbel/openbel/v1/gem/gems/bel_parser-1.0.6/lib/bel_parser/script/state_aggregator.rb:19:in `each'\r\n        /home/openbel/openbel/v1/gem/gems/bel_parser-1.0.6/lib/bel_parser/script/validator.rb:30:in `each'\r\n        /home/openbel/openbel/v1/gem/gems/bel_parser-1.0.6/lib/bel_parser/script/nanopub_mapper.rb:26:in `each'\r\n        /home/openbel/openbel/v1/gem/gems/bel_parser-1.0.6/lib/bel/translator/plugins/bel_script/reader.rb:29:in `each'\r\n        /home/openbel/openbel/v1/gem/gems/openbel-api-1.0.1-java/app/openbel/api/routes/datasets.rb:259:in `block in POST /api/datasets'\r\n        org/jruby/RubyMethod.java:111:in `call'\r\n        /home/openbel/openbel/v1/gem/gems/sinatra-1.4.6/lib/sinatra/base.rb:1610:in `block in compile!'\r\n        /home/openbel/openbel/v1/gem/gems/sinatra-1.4.6/lib/sinatra/base.rb:974:in `block in route!'\r\n        /home/openbel/openbel/v1/gem/gems/sinatra-1.4.6/lib/sinatra/base.rb:993:in `route_eval'\r\n        /home/openbel/openbel/v1/gem/gems/sinatra-1.4.6/lib/sinatra/base.rb:974:in `block in route!'\r\n        /home/openbel/openbel/v1/gem/gems/sinatra-1.4.6/lib/sinatra/base.rb:1014:in `block in process_route'\r\n[...]\r\n```"}}
{"actor":{"display_login":"nbargnesi"}}