Description of problem: Give a better error for the return user_activity API method https://bz-web.host.qe.eng.pek2.redhat.com/docs/en/html/integrating/api/Bugzilla/Extension/ActivityReport/WebService.html Version-Release number of selected component (if applicable): How reproducible: 100% Steps to Reproduce: 1.Accessing the method user_activity without quotation mark to the date value {'who':'qgong','from':2018-08-03,'to':2018-09-03, 'sort': 'bug'} 2. 3. Actual results: Evaluating expression '{'who':'qgong','from':2018-08-03,'to':2018-09-03, 'sort': 'bug'}' failed: SyntaxError: invalid token (<string>, line 1) Expected results: It should point out the invalid date format Additional info:
Hi Rony, I can't duplicate this, are you sure it's not a client side error?
(In reply to Jeff Fearn from comment #1) > Hi Rony, I can't duplicate this, are you sure it's not a client side error? If failed if the date withou '' around: method_name=ActivityReport.user_activity {'Bugzilla_login':'${Login_Admin}','Bugzilla_password':'${Password_All}','who':'qgong','from':2018-08-03,'to':2018-09-03, 'sort': 'bug'} Evaluating expression '{'Bugzilla_login':'admin1','Bugzilla_password':'1HSSQE@redhat','who':'qgong','from':2018-08-03,'to':2018-09-03, 'sort': 'bug'}' failed: SyntaxError: invalid token (<string>, line 1) But it works if the date marked with '' {'Bugzilla_login':'${Login_Admin}','Bugzilla_password':'${Password_All}','who':'qgong','from':2018-08-03,'to':2018-09-03, 'sort': 'bug'}
(In reply to Rony Gong from comment #2) > (In reply to Jeff Fearn from comment #1) > > Hi Rony, I can't duplicate this, are you sure it's not a client side error? > > If failed if the date withou '' around: > method_name=ActivityReport.user_activity > {'Bugzilla_login':'${Login_Admin}','Bugzilla_password':'${Password_All}', > 'who':'qgong','from':2018-08-03,'to':2018-09-03, 'sort': 'bug'} > > Evaluating expression > '{'Bugzilla_login':'admin1','Bugzilla_password':'1HSSQE@redhat', > 'who':'qgong','from':2018-08-03,'to':2018-09-03, 'sort': 'bug'}' > failed: SyntaxError: invalid token (<string>, line 1) > > > > But it works if the date marked with '' > {'Bugzilla_login':'${Login_Admin}','Bugzilla_password':'${Password_All}', > 'who':'qgong','from':2018-08-03,'to':2018-09-03, 'sort': 'bug'} This doesn't answer my question though. Can you copy the error from the Bugzilla log files?
I believe this is a client side error and the request isn't being sent to Bugzilla at all. If you can produce evidence from the Bugzilla log contradicting this then please attache it and reopen the bug.