Modify ↓
Opened 16 years ago
Closed 3 years ago
#3669 closed defect (wontfix)
xmlrpclib fail if run multiple commands
Reported by: | 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
Component: | XmlRpcPlugin → EclipseTracPlugin |
---|---|
Owner: | changed from Alec Thomas to Matteo Merli |
Note: See
TracTickets for help on using
tickets.
ticketext.update()
is not part of XmlRpcPlugin.