{"action":"created","issue":{"url":"https://api.github.com/repos/cbeer/ldp/issues/33","labels_url":"https://api.github.com/repos/cbeer/ldp/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/cbeer/ldp/issues/33/comments","events_url":"https://api.github.com/repos/cbeer/ldp/issues/33/events","html_url":"https://github.com/cbeer/ldp/issues/33","id":51501003,"number":33,"title":".new? and ActiveFedora .exist? are broken with misplaced 400 errors.","user":{"login":"flyingzumwalt","id":138930,"avatar_url":"https://avatars.githubusercontent.com/u/138930?v=3","gravatar_id":"","url":"https://api.github.com/users/flyingzumwalt","html_url":"https://github.com/flyingzumwalt","followers_url":"https://api.github.com/users/flyingzumwalt/followers","following_url":"https://api.github.com/users/flyingzumwalt/following{/other_user}","gists_url":"https://api.github.com/users/flyingzumwalt/gists{/gist_id}","starred_url":"https://api.github.com/users/flyingzumwalt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flyingzumwalt/subscriptions","organizations_url":"https://api.github.com/users/flyingzumwalt/orgs","repos_url":"https://api.github.com/users/flyingzumwalt/repos","events_url":"https://api.github.com/users/flyingzumwalt/events{/privacy}","received_events_url":"https://api.github.com/users/flyingzumwalt/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2014-12-10T00:09:58Z","updated_at":"2015-01-23T03:00:08Z","closed_at":"2015-01-23T03:00:08Z","body":"[Ldp::Resource.new?](https://github.com/cbeer/ldp/blob/master/lib/ldp/resource.rb#L30-L34) and [ActiveFedora::FinderMethods.exists?](https://github.com/projecthydra/active_fedora/blob/master/lib/active_fedora/relation/finder_methods.rb#L87-L100) both raise this error when they should be returning false:\r\n\r\n```\r\nLdp::HttpError:\r\n       STATUS: 400 ... \r\n```\r\n\r\nThe underlying issue might be that Fedora is returning 400 when it should return 404, but either way, the methods are failing on the simple cases where an object doesn't exist and the code is checking whether it exists."},"comment":{"url":"https://api.github.com/repos/cbeer/ldp/issues/comments/71140602","html_url":"https://github.com/cbeer/ldp/issues/33#issuecomment-71140602","issue_url":"https://api.github.com/repos/cbeer/ldp/issues/33","id":71140602,"user":{"login":"jcoyne","id":92044,"avatar_url":"https://avatars.githubusercontent.com/u/92044?v=3","gravatar_id":"","url":"https://api.github.com/users/jcoyne","html_url":"https://github.com/jcoyne","followers_url":"https://api.github.com/users/jcoyne/followers","following_url":"https://api.github.com/users/jcoyne/following{/other_user}","gists_url":"https://api.github.com/users/jcoyne/gists{/gist_id}","starred_url":"https://api.github.com/users/jcoyne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcoyne/subscriptions","organizations_url":"https://api.github.com/users/jcoyne/orgs","repos_url":"https://api.github.com/users/jcoyne/repos","events_url":"https://api.github.com/users/jcoyne/events{/privacy}","received_events_url":"https://api.github.com/users/jcoyne/received_events","type":"User","site_admin":false},"created_at":"2015-01-23T03:00:08Z","updated_at":"2015-01-23T03:00:08Z","body":"That's a perfectly legal character, provided you've configured Fedora correctly.  I'm not sure we can do anything better unless fcrepo is updated to give a better response"}}