#1322 Malformed JSON generates incorrect error message
Closed: Fixed None Opened 12 years ago by rcritten.

Send a malformed request via curl and this will get logged:

[Tue Jun 14 17:49:31 2011] [error] ipa: ERROR: jsonserver.__call__():
[Tue Jun 14 17:49:31 2011] [error] Traceback (most recent call last):
[Tue Jun 14 17:49:31 2011] [error]   File "/usr/lib/python2.7/site-packages/ipaserver/rpcserver.py", line 248, in __call__
[Tue Jun 14 17:49:31 2011] [error]     response = self.wsgi_execute(environ)
[Tue Jun 14 17:49:31 2011] [error]   File "/usr/lib/python2.7/site-packages/ipaserver/rpcserver.py", line 230, in wsgi_execute
[Tue Jun 14 17:49:31 2011] [error]     params = self.Command[name].args_options_2_params(*args, **options)
[Tue Jun 14 17:49:31 2011] [error] UnboundLocalError: local variable 'name' referenced before assignment

This hides the fact that the JSON is bad.


Metadata Update from @rcritten:
- Issue assigned to rcritten
- Issue set to the milestone: FreeIPA 2.1 - 2011/06

7 years ago

Login to comment on this ticket.

Metadata