Giter Club home page Giter Club logo

Comments (10)

ralphbean avatar ralphbean commented on August 16, 2024

python-bugzilla should be helpful, no? http://pypi.python.org/pypi/python-bugzilla

Good idea!

from bugwarrior.

ralphbean avatar ralphbean commented on August 16, 2024

I just pushed a feature/bugzilla branch that works for me on https://bugzilla.redhat.com.

Can you try it out and verify?

https://github.com/ralphbean/bugwarrior/tree/feature/bugzilla

from bugwarrior.

docwhat avatar docwhat commented on August 16, 2024

It doesn't work....

WARNING:URLs will not be shortened with bit.ly
WARNING:URLs will not be shortened with bit.ly
INFO:Working on [my_github]
No handlers could be found for logger "github2.request"
DEBUG: Getting ready to get list of all repos.
DEBUG: Getting 1th page of repos.
DEBUG: Getting 2th page of repos.
DEBUG: Found 17 total.
DEBUG: Pruned down to 17
INFO:Working on [work_bugs]
CRITICAL:oh noes
TRACE Traceback (most recent call last):
TRACE   File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bugwarrior-0.3.2-py2.7.egg/bugwarrior/command.py", line 14, in pull
TRACE     issues = aggregate_issues(config)
TRACE   File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bugwarrior-0.3.2-py2.7.egg/bugwarrior/services/__init__.py", line 115, in aggregate_issues
TRACE     for t in targets
TRACE   File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bugwarrior-0.3.2-py2.7.egg/bugwarrior/services/bz.py", line 40, in __init__
TRACE     self.bz = bugzilla.Bugzilla(url=url)
TRACE   File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/python_bugzilla-0.6.2-py2.7.egg/bugzilla/__init__.py", line 75, in __init__
TRACE     c = getBugzillaClassForURL(kwargs['url'])
TRACE   File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/python_bugzilla-0.6.2-py2.7.egg/bugzilla/__init__.py", line 34, in getBugzillaClassForURL
TRACE     prodinfo = s.bugzilla.getProdInfo()
TRACE   File "/usr/local/Cellar/python/2.7.2/lib/python2.7/xmlrpclib.py", line 1224, in __call__
TRACE     return self.__send(self.__name, args)
TRACE   File "/usr/local/Cellar/python/2.7.2/lib/python2.7/xmlrpclib.py", line 1575, in __request
TRACE     verbose=self.__verbose
TRACE   File "/usr/local/Cellar/python/2.7.2/lib/python2.7/xmlrpclib.py", line 1264, in request
TRACE     return self.single_request(host, handler, request_body, verbose)
TRACE   File "/usr/local/Cellar/python/2.7.2/lib/python2.7/xmlrpclib.py", line 1312, in single_request
TRACE     response.msg,
TRACE ProtocolError: <ProtocolError for example.com/bugs/xmlrpc.cgi: 401 Authorization Required>

This is because our site is protected by https with http-basic-auth. That is, we don't log into bugzilla via the bugzilla login page. We login into the whole site via HTTP AUTH and then the various apps there automatically detect the user.

from bugwarrior.

docwhat avatar docwhat commented on August 16, 2024

When I use bugzilla.base_uri = holtje:[email protected]/bugs it gets futher....

TRACE Traceback (most recent call last):
TRACE   File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bugwarrior-0.3.2-py2.7.egg/bugwarrior/command.py", line 14, in pull
TRACE     issues = aggregate_issues(config)
TRACE   File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bugwarrior-0.3.2-py2.7.egg/bugwarrior/services/__init__.py", line 115, in aggregate_issues
TRACE     for t in targets
TRACE   File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bugwarrior-0.3.2-py2.7.egg/bugwarrior/services/bz.py", line 73, in issues
TRACE     bugs = self.bz.query(query)
TRACE   File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/python_bugzilla-0.6.2-py2.7.egg/bugzilla/base.py", line 530, in query
TRACE     r = self._query(query)
TRACE   File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/python_bugzilla-0.6.2-py2.7.egg/bugzilla/bugzilla3.py", line 177, in _query
TRACE     return self._proxy.Bug.search(query)
TRACE   File "/usr/local/Cellar/python/2.7.2/lib/python2.7/xmlrpclib.py", line 1224, in __call__
TRACE     return self.__send(self.__name, args)
TRACE   File "/usr/local/Cellar/python/2.7.2/lib/python2.7/xmlrpclib.py", line 1575, in __request
TRACE     verbose=self.__verbose
TRACE   File "/usr/local/Cellar/python/2.7.2/lib/python2.7/xmlrpclib.py", line 1264, in request
TRACE     return self.single_request(host, handler, request_body, verbose)
TRACE   File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/python_bugzilla-0.6.2-py2.7.egg/bugzilla/base.py", line 1029, in single_request_with_cookies
TRACE     return self.parse_response(response)
TRACE   File "/usr/local/Cellar/python/2.7.2/lib/python2.7/xmlrpclib.py", line 1473, in parse_response
TRACE     return u.close()
TRACE   File "/usr/local/Cellar/python/2.7.2/lib/python2.7/xmlrpclib.py", line 793, in close
TRACE     raise Fault(**self._stack[0])
TRACE Fault: <Fault 53: 'emailassigned_to1 is not a valid parameter for the Bugzilla::Bug::match function.'>

from bugwarrior.

ralphbean avatar ralphbean commented on August 16, 2024

Makes sense. Looks like the fields for bugzilla are much more flexible than I thought. I'll have to extend them all the way out into the config file. One moment, please.

from bugwarrior.

ralphbean avatar ralphbean commented on August 16, 2024

This is recent and appears relevant - http://web.archiveorange.com/archive/v/wmeLDbiz8d7JzNd2dyfd

from bugwarrior.

docwhat avatar docwhat commented on August 16, 2024

I don't think the problem I had tripped on that...could be wrong tho.

from bugwarrior.

ralphbean avatar ralphbean commented on August 16, 2024

Would you mind giving it a try at the latest HEAD?

9b5f11e

Might be an awful idea...

from bugwarrior.

docwhat avatar docwhat commented on August 16, 2024

We talked more on IRC and I've used something newer than this...

from bugwarrior.

ralphbean avatar ralphbean commented on August 16, 2024

I'm going to close this ticket for now. @docwhat, if you make any progress on your own bz instance, feel free to re-open the ticket.

from bugwarrior.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.