{"action":"created","issue":{"url":"https://api.github.com/repos/jruby/jruby/issues/3920","repository_url":"https://api.github.com/repos/jruby/jruby","labels_url":"https://api.github.com/repos/jruby/jruby/issues/3920/labels{/name}","comments_url":"https://api.github.com/repos/jruby/jruby/issues/3920/comments","events_url":"https://api.github.com/repos/jruby/jruby/issues/3920/events","html_url":"https://github.com/jruby/jruby/issues/3920","id":156587767,"number":3920,"title":"JRuby 1.7.25/26 uninitialized constant Aws::Client::Errors","user":{"login":"creddy","id":593138,"avatar_url":"https://avatars.githubusercontent.com/u/593138?v=3","gravatar_id":"","url":"https://api.github.com/users/creddy","html_url":"https://github.com/creddy","followers_url":"https://api.github.com/users/creddy/followers","following_url":"https://api.github.com/users/creddy/following{/other_user}","gists_url":"https://api.github.com/users/creddy/gists{/gist_id}","starred_url":"https://api.github.com/users/creddy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/creddy/subscriptions","organizations_url":"https://api.github.com/users/creddy/orgs","repos_url":"https://api.github.com/users/creddy/repos","events_url":"https://api.github.com/users/creddy/events{/privacy}","received_events_url":"https://api.github.com/users/creddy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jruby/jruby/labels/concurrency","name":"concurrency","color":"5319e7"},{"url":"https://api.github.com/repos/jruby/jruby/labels/core","name":"core","color":"02e10c"},{"url":"https://api.github.com/repos/jruby/jruby/labels/JRuby%201.7.x","name":"JRuby 1.7.x","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/jruby/jruby/milestones/51","html_url":"https://github.com/jruby/jruby/milestones/JRuby%201.7.27","labels_url":"https://api.github.com/repos/jruby/jruby/milestones/51/labels","id":1707385,"number":51,"title":"JRuby 1.7.27","description":"","creator":{"login":"enebo","id":19819,"avatar_url":"https://avatars.githubusercontent.com/u/19819?v=3","gravatar_id":"","url":"https://api.github.com/users/enebo","html_url":"https://github.com/enebo","followers_url":"https://api.github.com/users/enebo/followers","following_url":"https://api.github.com/users/enebo/following{/other_user}","gists_url":"https://api.github.com/users/enebo/gists{/gist_id}","starred_url":"https://api.github.com/users/enebo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enebo/subscriptions","organizations_url":"https://api.github.com/users/enebo/orgs","repos_url":"https://api.github.com/users/enebo/repos","events_url":"https://api.github.com/users/enebo/events{/privacy}","received_events_url":"https://api.github.com/users/enebo/received_events","type":"User","site_admin":false},"open_issues":17,"closed_issues":3,"state":"open","created_at":"2016-04-14T18:15:14Z","updated_at":"2016-09-14T19:33:10Z","due_on":null,"closed_at":null},"comments":22,"created_at":"2016-05-24T19:19:00Z","updated_at":"2016-09-22T18:23:14Z","closed_at":null,"body":"<!--\r\nThis is a simple template for filing JRuby isuses.\r\n\r\nPlease help us help you by providing the information below.\r\n\r\nText inside XML comment tags will not be shown in your report.\r\n-->\r\nThis issue appears similar to https://github.com/jruby/jruby/issues/3645 except that this if for JRuby 1.7.25/26 vs 9.x\r\n\r\n### Environment\r\njruby -v \r\n`jruby 1.7.26-SNAPSHOT (1.9.3p551) 2016-05-24 5b83abb on Java HotSpot(TM) 64-Bit Server VM 1.8.0_74-b02 [darwin-x86`\r\n\r\n`jruby 1.7.25 (1.9.3p551) 2016-04-13 867cb81 on Java HotSpot(TM) 64-Bit Server VM 1.8.0_74-b02 [darwin-x86_64]`\r\n\r\nuname -a\r\n`Darwin LAXM00618506A 15.4.0 Darwin Kernel Version 15.4.0: Fri Feb 26 22:08:05 PST 2016; root:xnu-3248.40.184~3/RELEASE_X86_64 x86_64`\r\n<!--\r\nProvide at least:\r\n* JRuby version (`jruby -v`) and command line (flags, JRUBY_OPTS, etc)\r\n* Operating system and platform (e.g. `uname -a`)\r\n\r\nOther relevant info you may wish to add:\r\n* Installed or activated gems\r\n* Application/framework version (e.g. Rails, Sinatra)\r\n* Environment variables\r\n-->\r\n\r\n### Expected Behavior\r\n\r\nWhen a bucket object does not exist a `Aws::S3::Errors::NoSuchKey` error is raised\r\n\r\n```ruby\r\n➜  ~ [jruby-1.7.23]  jruby -v\r\njruby 1.7.23 (1.9.3p551) 2015-11-24 f496dd5 on Java HotSpot(TM) 64-Bit Server VM 1.8.0_74-b02 [darwin-x86_64]\r\n➜  ~ [jruby-1.7.23]  irb\r\nirb(main):001:0> require \"aws-sdk\"\r\n=> true\r\nirb(main):002:0> require \"securerandom\"\r\n=> true\r\nirb(main):003:0>\r\nirb(main):004:0* credentials = { region: \"us-east-1\" }\r\n=> {:region=>\"us-east-1\"}\r\nirb(main):005:0> bucket = \"BUCKET_NAME\"\r\n=> \"BUCKET_NAME\"\r\nirb(main):006:0> connection = Aws::S3::Resource.new(credentials)\r\n=> #<Aws::S3::Resource>\r\nirb(main):007:0> connection.bucket(bucket).object(SecureRandom.uuid).get(SecureRandom.uuid)\r\nAws::S3::Errors::NoSuchKey: The specified key does not exist\r\n```\r\n<!--\r\nDescribe your expectation of how JRuby should behave.\r\nProvide an executable Ruby script or a link to an example repository.\r\n-->\r\n\r\n### Actual Behavior\r\n\r\nA `NameError: uninitialized constant Aws::Client::Errors` is raised\r\n\r\n```ruby\r\n➜  jruby -v\r\njruby 1.7.26-SNAPSHOT (1.9.3p551) 2016-05-24 5b83abb on Java HotSpot(TM) 64-Bit Server VM 1.8.0_74-b02 [darwin-x86_64]\r\n➜  irb\r\nirb(main):001:0> require \"aws-sdk\"\r\n=> true\r\nirb(main):002:0> require \"securerandom\"\r\n=> true\r\nirb(main):003:0>\r\nirb(main):004:0* credentials = { region: \"us-east-1\" }\r\n=> {:region=>\"us-east-1\"}\r\nirb(main):005:0> bucket = \"BUCKET_NAME\"\r\n=> \"BUCKET_NAME\"\r\nirb(main):006:0> connection = Aws::S3::Resource.new(credentials)\r\n=> #<#<Module:0x2e185cd7>::Resource>\r\nirb(main):007:0> connection.bucket(bucket).object(SecureRandom.uuid).get(SecureRandom.uuid)\r\nNameError: uninitialized constant Aws::Client::Errors\r\n```\r\n\r\n```ruby\r\n➜ jruby -v\r\njruby 1.7.25 (1.9.3p551) 2016-04-13 867cb81 on Java HotSpot(TM) 64-Bit Server VM 1.8.0_74-b02 [darwin-x86_64]\r\n➜  irb\r\nirb(main):001:0> require \"aws-sdk\"\r\n=> true\r\nirb(main):002:0> require \"securerandom\"\r\n=> true\r\nirb(main):003:0>\r\nirb(main):004:0* credentials = { region: \"us-east-1\" }\r\n=> {:region=>\"us-east-1\"}\r\nirb(main):005:0> bucket = \"BUCKET_NAME\"\r\n=> \"BUCKET_NAME\"\r\nirb(main):006:0> connection = Aws::S3::Resource.new(credentials)\r\n=> #<#<Module:0x5851bd4f>::Resource>\r\nirb(main):007:0> connection.bucket(bucket).object(SecureRandom.uuid).get(SecureRandom.uuid)\r\nNameError: uninitialized constant Aws::Client::Errors\r\n```\r\n<!--\r\nDescribe or show the actual behavior.\r\nProvide text or screen capture showing the behavior.\r\n-->\r\n\r\nThank you\r\n"},"comment":{"url":"https://api.github.com/repos/jruby/jruby/issues/comments/248985911","html_url":"https://github.com/jruby/jruby/issues/3920#issuecomment-248985911","issue_url":"https://api.github.com/repos/jruby/jruby/issues/3920","id":248985911,"user":{"login":"JasonLunn","id":778854,"avatar_url":"https://avatars.githubusercontent.com/u/778854?v=3","gravatar_id":"","url":"https://api.github.com/users/JasonLunn","html_url":"https://github.com/JasonLunn","followers_url":"https://api.github.com/users/JasonLunn/followers","following_url":"https://api.github.com/users/JasonLunn/following{/other_user}","gists_url":"https://api.github.com/users/JasonLunn/gists{/gist_id}","starred_url":"https://api.github.com/users/JasonLunn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JasonLunn/subscriptions","organizations_url":"https://api.github.com/users/JasonLunn/orgs","repos_url":"https://api.github.com/users/JasonLunn/repos","events_url":"https://api.github.com/users/JasonLunn/events{/privacy}","received_events_url":"https://api.github.com/users/JasonLunn/received_events","type":"User","site_admin":false},"created_at":"2016-09-22T18:23:13Z","updated_at":"2016-09-22T18:23:13Z","body":"Understood"}}
{"actor":{"display_login":"JasonLunn"}}