decentralization
Daniel Berlin
dberlin at dberlin.org
Sat May 10 00:51:29 UTC 2003
On Friday, May 9, 2003, at 07:55 PM, Jim Walters wrote:
> On Fri, 2003-05-09 at 15:41, C.J. Collier wrote:
>
> bugzilla would do well to decentralize. Each bugzilla server should
> communicate with others. Bug reports should be shared between
> projects.
>
> This is the some of the motivating push behind web services. Maybe the
> thing to do is to take some some time and polish the XML schema,
> implement XML-RPC and then publish/register the WSDL in a UDDI as
> described here:
Redhat has actually already done this.
Grab the latest rh-bugzilla, and look at xmlrpc.cgi and Bugzilla/RPC.pm
I tried a few XMLRPC queries from a python XMLRPC client against their
production server, and it worked fine.
Python 2.2.2 (#1, 04/01/03, 23:00:56)
[GCC Apple cpp-precomp 6.14] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import xmlrpclib
>>>
connection=xmlrpclib.Server("http://bugzilla.redhat.com/bugzilla/
xmlrpc.cgi")
>>> testconnect.bugzilla.getBug("13", "guest", "guest")
{'status_whiteboard': '', 'product': 'Red Hat Linux', 'qa_contact': '',
'reporter': 'stone at hkust.se', 'estimated_time': 0.0, 'rep_platform':
'i386', 'bug_file_loc': '', 'bug_severity': 'normal', 'remaining_time':
0.0, 'bug_id': 13, 'internal_whiteboard': '', 'delta_ts': '2001-06-06
17:42:48', 'creation_ts': '1998-11-09 13:28:12', 'target_milestone':
'', 'cc': ['carl.corey at usa.net'], 'votes': '', 'longdescs':
[{'isprivate': 0, 'bug_when': '1998-11-09 13:28:12', 'thetext': "Got
this from the mc list:\nchange\n rpm -qlvp $1 | sed -e
's/^\\(..........\\)[-t] /\\1 1 /'\nto\n rpm -qlvp $1 | sed -e
's/^\\(..........\\)/\\1 1 /'\n\nin /usr/lib/mc/extfs/rpm\n\nsolves the
problem.", 'work_time': '', 'who': 'stone at hkust.se'}, {'isprivate': 0,
'bug_when': '1998-11-16 10:15:59', 'thetext': '*** Bug 71 has been
marked as a duplicate of this bug. ***', 'work_time': '', 'who':
'notting at redhat.com'}, {'isprivate': 0, 'bug_when': '1998-11-16
10:20:59', 'thetext': 'Will be fixed in next release. As a workaround,
you can update\nto mc 4.1.36, which includes this fix.', 'work_time':
'', 'who': 'notting at redhat.com'}, {'isprivate': 0, 'bug_when':
'1998-11-20 06:33:59', 'thetext': '*** Bug 138 has been marked as a
duplicate of this bug. ***', 'work_time': '', 'who':
'notting at redhat.com'}, {'isprivate': 0, 'bug_when': '1998-11-24
10:49:59', 'thetext': '*** Bug 183 has been marked as a duplicate of
this bug. ***', 'work_time': '', 'who': 'notting at redhat.com'},
{'isprivate': 0, 'bug_when': '1998-11-30 10:54:59', 'thetext': '*** Bug
207 has been marked as a duplicate of this bug. ***', 'work_time': '',
'who': 'notting at redhat.com'}, {'isprivate': 0, 'bug_when': '1998-12-15
16:38:59', 'thetext': '*** Bug 13 has been marked as a duplicate of
this bug. ***\nmc Make rpmfs working for rpm
2.5+.', 'work_time': '', 'who': 'notting at redhat.com'}, {'isprivate': 0,
'bug_when': '1998-12-30 13:34:59', 'thetext': "*** Bug 13 has been
marked as a duplicate of this bug. ***\n\nSomething broke mc's coolest
feature (according to the\npackage description) i.e. the ability to
peek into rpm\nfiles. When you cd into an rpm file on RedHat Linux 5.2
you\ncannot see the files in it only HEADER, INSTALL, UPGRADE
and\nINFO. It used to work on older versions of RedHat Linux\n(5.1,
5.0) with the same mc version (4.1.35).\n\nThe line that doesn't work
any more in /usr/lib/mc/extfs/rpm\nlooks like:\n\nrpm -qlvp $1 | sed -e
's/^\\(..........\\)[-t] /\\1 1 /'\n\nRemoving [-t] from the above line
corrects the problem, but\nthe same line used to work in earlier
versions so the bug is\nsomwhere else. Maybe the output of rpm has
changed (seems\nnot to be the case), or maybe sed has changed (this can
be\nthe real reason, but I'm not sure).", 'work_time': '', 'who':
'dkl at redhat.com'}, {'isprivate': 0, 'bug_when': '1999-01-01 16:22:59',
'thetext': "*** Bug 13 has been marked as a duplicate of this bug.
***\n\nOn the mc that ships with RH 5.2 for i386 when one
presses\nenter on an rpm the contents of the RPM are not
properly\nshown. Only the ../, /INFO, HEADER, INSTALL and
UPGRADE\nfiles show up. None of the actual files installed by the
rpm\nshow up.\n\n\tI have actually fixed this bug by editing the
file\n/usr/lib/mc/extfs/rpm as folows\n\n# diff /usr/lib/mc/extfs/rpm
/usr/lib/mc/extfs/rpm~\n100c100\n< rpm -qlvp $1 | sed -e
's/^\\(..........\\)/\\1 1 /'\n---\n> rpm -qlvp $1 | sed -e
's/^\\(..........\\)[-t] /\\1 1 /'\n#\n\nIt now works properly. I do
not know whether I should send\nthis fix as a patch to bugzilla. Would
appreciate any\nadvice.\n\nprabhu", 'work_time': '', 'who':
'jbj at redhat.com'}, {'isprivate': 0, 'bug_when': '1999-01-05 10:52:59',
'thetext': '*** Bug 13 has been marked as a duplicate of this bug.
***\n\nall you get when you enter an rpm package with mc\'s vfs is\nthe
header list.\napply this patch to fix:\n-cut-cut-\n--- rpm.orig\tWed
Dec 30 23:58:00 1998\n+++ rpm\tFri\nJan 1 12:46:34 1999\n@@ -5,6 +5,7
@@\n # Tomasz\nK&oczko (kloczek at rudy.mif.pg.gda.pl) 1997\n #
minor changes\nby Wojtek Pilorz (wpilorz at bdk.lublin.pl) 1997\n #
minor\nchanges by Michele Marziani (marziani at fe.infn.it) 1997\n+#\nfix
to handle new rpm output by Andrea
Borgia\n<borgia at students.cs.unibo.it> (1999)\n # (C) 1996 The
Free\nSoftware Foundation.\n #\n #\n@@ -97,7 +98,7 @@\n
echo\n"$FILEPREF 0 $DATE INFO/CHANGELOG"\n fi\n\n- rpm -qlvp\n$1
| sed -e \'s/^\\(..........\\)[-t] /\\1 1 /\'\n+ rpm -qlvp\n$1 | sed
-e \'s/^\\(..........\\) /\\1 1 /\'\n }\n\n\nmcrpmfs_copyout
()\n-cut-cut-', 'work_time': '', 'who': 'jbj at redhat.com'},
{'isprivate': 0, 'bug_when': '1999-06-03 10:38:59', 'thetext': "*** Bug
2997 has been marked as a duplicate of this bug. ***\n\nmc doesnot show
contents of rpm exept /INFO, INSTALL and UPGRADE\nfile:
/usr/lib/mc/extfs/rpm, line 100:\nrpm -qlvp $1 | sed -e
's/^\\(..........\\)[-t] /\\1 1 /'\nreplace with:\nrpm -qlvp $1 | sed
-e 's/^\\(..........\\) /\\1 1 /'\n\n------- Additional Comments From
johnsonm at redhat.com 05/25/99 14:46 -------\nWhat version of rpm do you
have installed?", 'work_time': '', 'who': 'jbj at redhat.com'}],
'bug_status': 'CLOSED', 'short_desc': 'mc vfs does not work with RPMs
[solution included]', 'priority': 'normal', 'alias': '', 'whoid': 0,
'version': 5.2000000000000002, 'component': 'mc', 'assigned_to':
'dkl at redhat.com', 'fixed_in': '', 'resolution': 'FIXED', 'op_sys':
'Linux'}
>>>
>
> http://www-106.ibm.com/developerworks/webservices/library/ws-wsdl3/
> ?dwzone=webservices
>
> Though Bugzilla would have to change a bit to enable a flexible
> authorization system the storage requirements (in at least one design)
> shouldn't cause an issue since you would just need to store a GUID
> which would be used for subsequent display of details. And you
> obviously would not want queries to be across referenced reports.
>
> There are a couple of other advantage to doing this...
>
> Last I looked there wasn't a WSDL for quality assurance defect
> reports. Bugzilla define and promulgate this standard. By advancing
> the adoption of a standard you probably would enhance the adoption of
> Bugzilla itself since this level of interoperability doesn't much
> excist in the commercial world. And I know from my experience that
> most complex commercial undertakings usually require of multiple
> corporate development groups. And there is the positive attribute of
> providing external components interfaces to the Bugzilla system which
> are decoupled from MySQL and perl modules.
>
> But I guess all that takes time and resources, doesn't it? <image.tiff>
>
>
>
<image.tiff>
>
More information about the developers
mailing list