Python library for bugzilla
https://fedorahosted.org/python-bugzilla/
This is a python module that provides a nice, python-ish interface to Bugzilla
over XMLRPC.
It was originally written specifically for Red Hat's Bugzilla instance, but now
supports the Web Services provided by upstream Bugzilla 3.0 and 3.2 also.
It also includes a 'bugzilla' commandline client which can be used for quick,
ad-hoc bugzilla jiggery-pokery. I guess you could use it in shell scripts too,
but gosh - why not just write something in Python instead?
This package contains a set of patches enabling an access for Novell bugzilla.
AUTHOR
Will Woods , Oct 16 2008
- Devel package for openSUSE:Factory
- Links to openSUSE:Factory / python-bugzilla
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout devel:languages:python/python-bugzilla && cd $_
- Create Badge
Refresh
Refresh
Source Files
Filename | Size | Changed |
---|---|---|
_link | 0000000150 150 Bytes | |
python-bugzilla-0.6.2-backtraces.patch | 0000002526 2.47 KB | |
python-bugzilla-0.6.2-novell-default.patch | 0000000457 457 Bytes | |
python-bugzilla-0.6.2-openSUSE-1.tar.bz2 | 0000041538 40.6 KB | |
python-bugzilla.changes | 0000002157 2.11 KB | |
python-bugzilla.spec | 0000002307 2.25 KB |
Revision 19 (latest revision is 63)
Jan Matejek (matejcik)
committed
(revision 19)
- remove basic auth credentials from backtraces - Novell Bugzilla is the default when using bugzilla command line tool
Comments 16
@mcepl I see https://build.opensuse.org/package/rdiff/devel:languages:python/python-bugzilla?linkrev=base&rev=50 removed
106-basic-auth.diff
, but I am wondering: did you check if we are able to connect to SUSE's bugzilla using credentials?self.bz = bugzilla.Bugzilla(url=options.bzurl, user=bzuser, password=bzpassword, sslverify=True)
Does not work anymore for me, on Leap 15.3, using the latestpython3-bugzilla
package:Traceback (most recent call last): File "/home/juliogonzalez/.patch-creator/galaxy/patch.py", line 59, in __init__ self.bz._proxy.clear_token() File "/usr/lib64/python3.6/xmlrpc/client.py", line 1112, in __call__ return self.__send(self.__name, args) File "/usr/lib/python3.6/site-packages/bugzilla/_backendxmlrpc.py", line 132, in _ServerProxy__request ret = ServerProxy._ServerProxy__request(self, methodname, (newparams,)) File "/usr/lib64/python3.6/xmlrpc/client.py", line 1452, in __request verbose=self.__verbose File "/usr/lib/python3.6/site-packages/bugzilla/_backendxmlrpc.py", line 100, in request return self.__request_helper(url, request_body) File "/usr/lib/python3.6/site-packages/bugzilla/_backendxmlrpc.py", line 47, in __request_helper return self.parse_response(response) File "/usr/lib/python3.6/site-packages/bugzilla/_backendxmlrpc.py", line 84, in parse_response return unmarshaller.close() File "/usr/lib64/python3.6/xmlrpc/client.py", line 656, in close raise Fault(**self._stack[0]) xmlrpc.client.Fault: <Fault Client: "Can't locate .pm in [@INC](https://build.opensuse.org/users/INC) ([@INC](https://build.opensuse.org/users/INC) contains: ./extensions CODE(0x2e92bb0) CODE(0x2e29f48) CODE(0x270cdb8) CODE(0x2701680) CODE(0x2700f18) CODE(0x23c17a0) CODE(0x23af3c8) CODE(0x23a8600) CODE(0x23879c8) CODE(0x2343f40) CODE(0xe02f80) CODE(0x232d820) CODE(0x232c5d0) . lib/x86_64-linux-thread-multi lib /usr/lib/perl5/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/5.10.0 /usr/lib/perl5/site_perl/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl) at Bugzilla/WebService/Server/XMLRPC.pm line 75.\n">
The reason I am asking is because if this is real bug, then this package should not be pushed to Leap 15.3Ping @deneb_alpha for awareness
BTW
106-basic-auth.diff
doesn't work with python3, only python2, so if 3.0.2 is broken, I will need to fix the patch or ask one of our python developers to do it.Of course not, I have just accepted https://build.opensuse.org/request/show/926879 from @deneb_alpha.
@mcepl, no I don't really mean the SR from @deneb_alpha. You removed the patch with https://build.opensuse.org/package/rdiff/devel:languages:python/python-bugzilla?linkrev=base&rev=50
The changelog entry reads
- Remove 106-basic-auth.diff, which is not necessary anymore.
If I am pinging @deneb_alpha is so she's aware that this will cause problems if pushed to Leap 15.3 as it is, but not because of her SR, but because of the bump to 3.0.0
Could you check RPM from the revision 53 (or later) here, please?
Seems 2.3.0 works fine with the patch, even for python3. I think I had something wrong. But getting the 3.0.2 from this project, for openSUSE Leap 15.3, shows the stacktrace I provided above.
File a but please with proper stacktrace, this is unreadable.
I guess you mean a bug. Problem is... this version is still not at Leap 15.3. Anyway, here goes the stacktrace: https://paste.opensuse.org/81778626 (didn't expect OBS to remove the newlines! :-D)
I meant a bug in bugzilla. And if this version is not in Leap 15.3 and you are testing Tumbleweed version there and it fails, then I would think you are developer enough to search help upstream and bring us the solution to Factory (so that the package will work both on Factory and in Leap).
No, I am not a python developer. But this project is generating the package for
Leap 15.3
as well, and @deneb_alpha told me she intended to forward python-bugzilla to Leap 15.3. At least with this problem, at this moment is a no-no. But even for Leap 15.4 it will be a regression, and all I am wondering is why you removed106-basic-auth.diff
asunneeded
. Is the authentication working for you at Tumbleweed for bugzilla.opensuse.org or bugzilla.suse.com?@juliogonzalezgil for the moment I'm testing the 'python3-bugzilla' package built on my home project on IBS (home:deneb_alpha/python-bugzilla) and all looks fine.
it could be good to ping @msmeissn because he already ported the fix I made for building this version on Leap 15.3 as maintenance update.
@deneb_alpha does authentication work for you, against SUSE's bugzilla? If you don't get errors, try to get a bug that is not public. At least for me, the authentication is broken.
Can we add this PR? https://github.com/python-bugzilla/python-bugzilla/pull/188
Ok, even if upstream didn't approve yet, I tested the patch and seems to work fine, so we'll include it.
https://build.opensuse.org/request/show/1113507 accepted and forwarded to Factory
Factory: https://build.opensuse.org/request/show/1113511 Leap 15.4: https://build.opensuse.org/request/show/1113512
Seems 15.4 will forward to 15.5 as well:
$ osc mr -m "Fix API Key leak" devel:languages:python python-bugzilla openSUSE:Backports:SLE-15-SP5:Update
Using target project 'openSUSE:Maintenance'. (release in 'openSUSE:Backports:SLE-15-SP5:Update')
The following maintenance incident request is already open: 1113512.
Supersede the old request? (y/n/c)