#4243 Authenticated Trac RPC reports Internal Error
Closed: Fixed Opened by mkosek.

= bug description =

Our Ticket Synchronization tool no longer works. It used to authenticate with an authorized user credentials to FreeIPA trac instance /login/xmlrpc and do the synchronization, but since yesterday night, the /login/xmlrpc stopped working and returned Internal Error instead (after about a 30 second delay).

= bug analysis =

I had partial success by switching to /login/rpc but I just found out that despite description, this RPC is not authenticated:

{{{
$ python
Python 2.7.5 (default, Feb 19 2014, 13:47:28)
[GCC 4.8.2 20131212 (Red Hat 4.8.2-7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.

from xmlrpclib import ServerProxy
p = ServerProxy('https://mkosek:password@fedorahosted.org/freeipa/login/rpc')
p.ticket.update(2313, 'Test update', {'rhbz':0}, False)
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib64/python2.7/xmlrpclib.py", line 1224, in call
return self.__send(self.__name, args)
File "/usr/lib64/python2.7/xmlrpclib.py", line 1578, in __request
verbose=self.__verbose
File "/usr/lib64/python2.7/xmlrpclib.py", line 1264, in request
return self.single_request(host, handler, request_body, verbose)
File "/usr/lib64/python2.7/xmlrpclib.py", line 1297, in single_request
return self.parse_response(response)
File "/usr/lib64/python2.7/xmlrpclib.py", line 1473, in parse_response
return u.close()
File "/usr/lib64/python2.7/xmlrpclib.py", line 793, in close
raise Fault(**self._stack[0])
xmlrpclib.Fault:
}}}

{{{

from xmlrpclib import ServerProxy
p2 = ServerProxy('https://mkosek:password@fedorahosted.org/freeipa/login/xmlrpc')
p2.ticket.update(2313, 'Test update', {'rhbz':0}, False)
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib64/python2.7/xmlrpclib.py", line 1224, in call
return self.__send(self.__name, args)
File "/usr/lib64/python2.7/xmlrpclib.py", line 1578, in __request
verbose=self.__verbose
File "/usr/lib64/python2.7/xmlrpclib.py", line 1264, in request
return self.single_request(host, handler, request_body, verbose)
File "/usr/lib64/python2.7/xmlrpclib.py", line 1312, in single_request
response.msg,
xmlrpclib.ProtocolError:
}}}


By the way, I assume there are other problems - when this ticket was being saved, I saw this error message in Trac:

{{{
Warning: The ticket has been created, but an error occurred while sending notifications: [Errno 110] Connection timed out
}}}

Yeah, this was related to a network problem preventing our vpn from working. ;(

It should be cleared up now. Please re-open if you still see any issues.

Metadata