Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 488688 - =www-client/pybugz-0.9.3 is unable to modify after the last bugzilla update to 4.4.1
Summary: =www-client/pybugz-0.9.3 is unable to modify after the last bugzilla update t...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: William Hubbs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-20 08:21 UTC by Agostino Sarubbo
Modified: 2014-05-21 09:16 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
pybugz-0.10.1-token.patch (pybugz-0.10.1-token.patch,1.79 KB, patch)
2014-05-17 08:22 UTC, Akinori Hattori
Details | Diff
pybugz-0.10.1-token.patch (pybugz-0.10.1-token.patch,1.80 KB, patch)
2014-05-21 07:45 UTC, Akinori Hattori
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2013-10-20 08:21:05 UTC
example:

bugz -u "ago@gentoo.org" -p "$pass" modify -c "test comment" 374745

does not work.
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2014-04-27 16:00:13 UTC
same here.

bugz login works
Comment 2 Akinori Hattori gentoo-dev 2014-05-17 08:22:04 UTC
Created attachment 377118 [details, diff]
pybugz-0.10.1-token.patch

here is a patch to support Bugzilla 4.4.3+
Comment 3 Justin Lecher (RETIRED) gentoo-dev 2014-05-19 14:30:03 UTC
Patch works
Comment 4 Justin Lecher (RETIRED) gentoo-dev 2014-05-19 14:34:55 UTC
+*pybugz-0.10.1-r1 (19 May 2014)
+
+  19 May 2014; Justin Lecher <jlec@gentoo.org> +pybugz-0.10.1-r1.ebuild,
+  pybugz-9999.ebuild, +files/pybugz-0.10.1-bugzilla-4.4.1.patch:
+  Add compatibility patch for bugzilla 4.4.1 made by Akinori Hattori, #488688
+
Comment 5 Justin Lecher (RETIRED) gentoo-dev 2014-05-20 07:19:49 UTC
Still it didn't work when posting a new bug

  File "/usr/lib/python-exec/python2.7/bugz", line 67, in <module>
    main()
  File "/usr/lib/python-exec/python2.7/bugz", line 42, in main
    args.func(bugz, args)
  File "/usr/lib64/python2.7/site-packages/bugz/cli.py", line 503, in post
    result = self.bzcall(self.bz.Bug.create, params)
  File "/usr/lib64/python2.7/site-packages/bugz/cli.py", line 189, in bzcall
    return method(*self.set_token(*args))
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1224, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1578, in __request
    verbose=self.__verbose
  File "/usr/lib64/python2.7/site-packages/bugz/bugzilla.py", line 56, in request
    return self.parse_response(resp)
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1473, in parse_response
    return u.close()
  File "/usr/lib64/python2.7/xmlrpclib.py", line 793, in close
    raise Fault(**self._stack[0])
xmlrpclib.Fault: <Fault 53: 'token is not a valid parameter for the Bugzilla::Bug::create function.'>
Comment 6 Akinori Hattori gentoo-dev 2014-05-21 07:45:33 UTC
Created attachment 377330 [details, diff]
pybugz-0.10.1-token.patch

I've not tested but it might be fixed (just change: token -> Bugzilla_token).
Comment 7 Justin Lecher (RETIRED) gentoo-dev 2014-05-21 09:15:21 UTC
The new patch seems to work
Comment 8 Justin Lecher (RETIRED) gentoo-dev 2014-05-21 09:16:44 UTC
+*pybugz-0.10.1-r2 (21 May 2014)
+
+  21 May 2014; Justin Lecher <jlec@gentoo.org> -pybugz-0.10.1-r1.ebuild,
+  +pybugz-0.10.1-r2.ebuild, files/pybugz-0.10.1-bugzilla-4.4.1.patch,
+  files/pybugz-9999-bugzilla-4.4.1.patch:
+  Update patch
+