Modify

Opened 16 years ago

Closed 4 years ago

#3669 closed defect (wontfix)

xmlrpclib fail if run multiple commands

Reported by: who.mobile@… Owned by: Matteo Merli
Priority: normal Component: EclipseTracPlugin
Severity: minor Keywords:
Cc: Trac Release: 0.10

Description

Intermittently ticketext.update fail as below.

...(run updates commands)
 
[abc@abc]$ ./post-check-update-trac /var/lib/svn/mitrac 1517 /usr/bin/svnlook
--repository /var/lib/svn/mitrac --revision 1517 --debug
ticketn:544
descr:Description: Chasing properites files around the svn repository.

author:xsx
Traceback (most recent call last):
  File "/var/lib/svn/mitrac/hooks/scripts/trac-ticket-id-post2.py", line 84, in ?
    main(sys.argv[1:])
  File "/var/lib/svn/mitrac/hooks/scripts/trac-ticket-id-post2.py", line 60, in main
    if( updateticket(tk, description, author,revision) ):
  File "/var/lib/svn/mitrac/hooks/scripts/trac-ticket-id-post2.py", line 74, in updateticket
    return server.ticketext.update(ticketn,author,"Code change r"+revision+" "+description, { })
  File "/usr/lib64/python2.4/xmlrpclib.py", line 1096, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib64/python2.4/xmlrpclib.py", line 1383, in __request
    verbose=self.__verbose
  File "/usr/lib64/python2.4/xmlrpclib.py", line 1147, in request
    return self._parse_response(h.getfile(), sock)
  File "/usr/lib64/python2.4/xmlrpclib.py", line 1286, in _parse_response
    return u.close()
  File "/usr/lib64/python2.4/xmlrpclib.py", line 744, in close
    raise Fault(**self._stack[0])
xmlrpclib.Fault: <Fault 2: "'columns ticket, time, field are not unique' while executing 'ticketext.update()'">

...(run other updates commands)

If I run separately it works fine.

[abc@abc]$ ./post-check-update-trac /var/lib/svn/mitrac 1517 /usr/bin/svnlook
--repository /var/lib/svn/mitrac --revision 1517 --debug
ticketn:544
descr:Description: Chasing properites files around the svn repository.

author:xsx

below is update code.

def updateticket(ticketn,description,author,revision):

    server = xmlrpclib.ServerProxy("https://tracuser:passwd@trachost/projects/mitrac/login/xmlrpc")

    return server.ticketext.update(ticketn,author,"Code change r"+revision+" "+description, { })


Attachments (0)

Change History (2)

comment:1 Changed 16 years ago by Alec Thomas

Component: XmlRpcPluginEclipseTracPlugin
Owner: changed from Alec Thomas to Matteo Merli

ticketext.update() is not part of XmlRpcPlugin.

comment:2 Changed 4 years ago by Ryan J Ollos

Resolution: wontfix
Status: newclosed

Deprecated and removed.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Matteo Merli.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.