Closed Bug 733699 Opened 13 years ago Closed 13 years ago

/history and /comment uris gives 500 internal server error

Categories

(Webtools Graveyard :: BzAPI, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 746038

People

(Reporter: jon.skarpeteig, Assigned: gerv)

Details

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.2) Gecko/20100101 Firefox/10.0.2 Build ID: 20120215223356 Steps to reproduce: Clean install of Bugzilla 3.6.8 + BzAPI 1.1 - started up ./script/bugzilla_api_server.pl - browsed to /bug/1/history It appears there's a problem with DateTime parsing, I was able to make it run by introducing the following hack to bugzilla itself: diff --git a/Bugzilla/WebService.pm b/Bugzilla/WebService.pm index 2ba8e92..1af019a 100644 --- a/Bugzilla/WebService.pm +++ b/Bugzilla/WebService.pm @@ -37,6 +37,7 @@ sub login_exempt { sub type { my ($self, $type, $value) = @_; if ($type eq 'dateTime') { + $type='string'; $value = $self->datetime_format_outbound($value); } return XMLRPC::Data->type($type)->value($value); Actual results: Internal server error Expected results: This should probably be fixed properly.
I suspect this is because the author of BZ::Client has changed the DateTime parsing, and I haven't updated BzAPI to cope with it. Can you tell me what version of BZ::Client you are using? perl -MBZ::Client -e 'print "$BZ::Client::VERSION\n"' If you are not using 1.03, try downgrading to 1.03. Gerv
I'm using 1.04 (installed from CPAN)
Try 1.03 :-) Gerv
Jon: ping? Did 1.03 work? Gerv
Resolving due to lack of input from reporter. Gerv
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → INCOMPLETE
Don't see how that's relevant? :P Should be easy to reproduce.
Status: RESOLVED → UNCONFIRMED
Resolution: INCOMPLETE → ---
Jon: I'm not ignoring the problem. If the problem is what I think it is, then it's a duplicate of bug 746038. Gerv
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago13 years ago
Resolution: --- → DUPLICATE
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.