BugZilla XML-RPC
Well, this has frustrated me for over an hour, so here's hoping Google will find this and help others with it:
BugZilla 3.0's XML-RPC wasn't working properly. We were getting 500 Internal Server Errors when the User.Login method was called. I tracked the problem to Bugzilla/WebService.pm line 64, where it tries to set the login cookies.
After much grief, I eventually found out that the HTTP::Headers module was getting passed a CGI::Cookies object, rather than a string. Unfortunately, the error message in HTTP::Headers ("Unexpected field value") is utterly useless. (It prints out the object, which shows it as if it's a string...).
Hint: Next time you have an error based on an object's type, print the "bad" type that you got passed and save us all some time. OK, rant over :)
Anyway, the solution is to edit the WebServices,pm, and change:
to$self->response->headers->push_header('Set-Cookie', $_);
$self->response->headers->push_header('Set-Cookie', $_->as_string);