Issues

Issue #6132 resolved

Api allows creation of Issues without providing field 'content'

rene paulokat
created an issue

as stated in the api-docs the field 'content' is declared as necessary - but Issues will be created without this argument...

response = connection.post(make_path, {:title => title })
rsp = JSON.parse(response.body)
pp rsp

results in:

{"status"=>"new",
 "priority"=>"trivial",
 "title"=>"geht nich",
 "reported_by"=>
  {"username"=>"rpaulokat",
   "first_name"=>"rene",
   "last_name"=>"paulokat",
   "display_name"=>"rene paulokat",
   "is_team"=>false,
   "avatar"=>
    "https://secure.gravatar.com/avatar/a6ebaaa00666e4f1934d9ca2c024aaf3?d=https%3A%2F%2Fd3oaxc4q5k2d6q.cloudfront.net%2Fm%2Ff2d828db6961%2Fimg%2Fdefault_avatar%2F32%2Fuser_blue.png&s=32",
   "resource_uri"=>"/1.0/users/rpaulokat"},
 "utc_last_updated"=>"2013-01-27 16:46:58+00:00",
 "comment_count"=>0,
 "metadata"=>
  {"kind"=>"bug", "version"=>nil, "component"=>nil, "milestone"=>nil},
 "content"=>"",
 "created_on"=>"2013-01-27 17:46:58",
 "local_id"=>3,
 "follower_count"=>0,
 "utc_created_on"=>"2013-01-27 16:46:58+00:00",
 "resource_uri"=>"/1.0/repositories/rpaulokat/bitb-issues/issues/3",
 "is_spam"=>false}

Comments (2)

  1. Log in to comment