Description of problem: Hi, Currently querying this bugzilla instance for the method call of 'Bugzilla.time' over XMLRPC raises a fault with a Perl error. Version-Release number of selected component (if applicable): 4.2.4-6 How reproducible: Every time. Steps to Reproduce: 1. Download script at http://pastebin.ubuntu.com/1371851/ 2. Run it. Actual results: A fault occurred Fault code: -32000 Cannot compare a datetime to a regular scalar at /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/DateTime.pm line 1385. Expected results: {'tz_name': 'UTC', 'tz_short_name': 'UTC', 'tz_offset': '+0000', 'web_time_utc': <DateTime '20121120T06:08:24' at 2349e60>, 'db_time': <DateTime '20121120T06:08:24' at 2349dd0>, 'web_time': <DateTime '20121120T06:08:24' at 2349e18>} Additional info:
Possibly an upstream issue too.
It seems to work fine on our RHEL 6 based Bugzilla server, but not the RHEL 5 ones (like production and partner-bugzilla). -- simon
I don't think this is WONTFIX, since there is a fix of sorts, since it works on the RHEL 6 based server. Moreover, it not being deployed to production is also no reason to close the bug as WONTFIX either. Bugzilla is a webservice, if the fix isn't deployed, it isn't really fixed.
Hi Steve. There was a private comment on this bug that explained that we are planning to move to RHEL 6 server soon. I'm happy to keep this bug open until then if you want. However, we won't be fixing the issue until we move to RHEL 6 server.
Return to Perl error when calling Bugzilla.time and Bugzilla.last_audit_time over XMLRPC. version:4.4.rc2-2.b01 test env:https://bzweb01-qe.app.eng.rdu.redhat.com/ When calling these two methods over XMLRPC, it will return to <Fault -32000: 'Cannot compare a datetime to a regular scalar at /usr/lib/perl5/5.8.8/CGI/Carp.pm line 314.\n'> While when doing the same operation in https://bzweb01-devel.app.eng.rdu.redhat.com/(version 4.4.rc2-2.b01),it will return to the expected info: xmlrpc.Bugzilla.time() {'db_time': <DateTime '20130321T07:11:56' at 9efd48c>, 'tz_name': 'UTC', 'tz_offset': '+0000', 'tz_short_name': 'UTC', 'web_time': <DateTime '20130321T07:11:56' at 9efd44c>, 'web_time_utc': <DateTime '20130321T07:11:56' at 9efd26c>} xmlrpc.Bugzilla.last_audit_time({'class':['Bugzilla:Product']}) {'last_audit_time': <DateTime '20130226T12:58:34' at 9ef964c>}
This should be fixed when the production system moves to RHEL6.
We migrated to RHEL 6 last week, and Bugzilla.time now works as expected. The pastebin link is no longer valid, but I did this this using JSONRPC and a Perl script.