Modify

Opened 6 years ago

Last modified 6 years ago

#3669 new defect

xmlrpclib fail if run multiple commands

Reported by: who.mobile@… Owned by: merlimat
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 (1)

comment:1 Changed 6 years ago by athomas

  • Component changed from XmlRpcPlugin to EclipseTracPlugin
  • Owner changed from athomas to merlimat

ticketext.update() is not part of XmlRpcPlugin.

Add Comment

Modify Ticket

Action
as new .
Author


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

 
Note: See TracTickets for help on using tickets.