* [gentoo-dev] automated bug filing (i.e. pybugz) failing because of missing token
@ 2012-03-26 17:08 "Paweł Hajdan, Jr."
2012-03-26 17:20 ` Mike Gilbert
0 siblings, 1 reply; 13+ messages in thread
From: "Paweł Hajdan, Jr." @ 2012-03-26 17:08 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 1538 bytes --]
If you wonder why I stopped filing new stabilization request, the
pybugz-based script that was filing those bugs started failing.
I have added some debugging statements to see what's going on, and
here's what https://bugs.gentoo.org says as a response to pybugz's
request to create a new bug:
<div class="throw_error">
It looks like you didn't come from the right page (you have no valid
token for
the <em>create_bug</em> action while processing the
'post_bug.cgi' script). The reason could be one of:<br>
<ul>
<li>You clicked the "Back" button of your web browser after having
successfully
submitted changes, which is generally not a good idea (but
harmless).</li>
<li>You entered the URL in the address bar of your web browser
directly,
which should be safe.</li>
<li>You clicked on a URL which redirected you here <b>without your
consent</b>,
in which case this action is much more critical.</li>
</ul>
Are you sure you want to commit these changes anyway? This may result in
unexpected and undesired results.
</div>
And there is a form below etc. etc. Note that only filing new bugs is
affected (updating existing ones works fine).
It's possible to repro with the command-line bugz tool (bugz ... post).
I'm using pybugz-0.9.3 and I'm connecting to https://bugs.gentoo.org
I posted this issue here because it's not obvious what to do with it.
That version of pybugz worked for me before (20 February 2012).
Any ideas?
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 203 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-dev] automated bug filing (i.e. pybugz) failing because of missing token
2012-03-26 17:08 [gentoo-dev] automated bug filing (i.e. pybugz) failing because of missing token "Paweł Hajdan, Jr."
@ 2012-03-26 17:20 ` Mike Gilbert
2012-03-26 18:44 ` Alec Warner
` (2 more replies)
0 siblings, 3 replies; 13+ messages in thread
From: Mike Gilbert @ 2012-03-26 17:20 UTC (permalink / raw
To: gentoo-dev
On Mon, Mar 26, 2012 at 1:08 PM, "Paweł Hajdan, Jr."
<phajdan.jr@gentoo.org> wrote:
> I posted this issue here because it's not obvious what to do with it.
> That version of pybugz worked for me before (20 February 2012).
>
> Any ideas?
>
I'm guessing it was broken by the upgrade from Bugzilla 4.0 to Bugzilla 4.2.
I think you should file a bug for pybugz. :)
Long term, we may want to consider porting pybugz to use Bugzilla's
XML-RPC api to avoid such breakage.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-dev] automated bug filing (i.e. pybugz) failing because of missing token
2012-03-26 17:20 ` Mike Gilbert
@ 2012-03-26 18:44 ` Alec Warner
2012-03-27 7:33 ` Dirkjan Ochtman
2012-03-27 15:19 ` "Paweł Hajdan, Jr."
2012-04-05 21:59 ` William Hubbs
2 siblings, 1 reply; 13+ messages in thread
From: Alec Warner @ 2012-03-26 18:44 UTC (permalink / raw
To: gentoo-dev
On Mon, Mar 26, 2012 at 10:20 AM, Mike Gilbert <floppym@gentoo.org> wrote:
> On Mon, Mar 26, 2012 at 1:08 PM, "Paweł Hajdan, Jr."
> <phajdan.jr@gentoo.org> wrote:
>> I posted this issue here because it's not obvious what to do with it.
>> That version of pybugz worked for me before (20 February 2012).
>>
>> Any ideas?
>>
>
> I'm guessing it was broken by the upgrade from Bugzilla 4.0 to Bugzilla 4.2.
>
> I think you should file a bug for pybugz. :)
>
> Long term, we may want to consider porting pybugz to use Bugzilla's
> XML-RPC api to avoid such breakage.
>
XML-RPC is shit.
[eom]
-A
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-dev] automated bug filing (i.e. pybugz) failing because of missing token
2012-03-26 18:44 ` Alec Warner
@ 2012-03-27 7:33 ` Dirkjan Ochtman
2012-03-27 8:04 ` Ian Whyman
0 siblings, 1 reply; 13+ messages in thread
From: Dirkjan Ochtman @ 2012-03-27 7:33 UTC (permalink / raw
To: gentoo-dev
On Mon, Mar 26, 2012 at 20:44, Alec Warner <antarus@gentoo.org> wrote:
>> Long term, we may want to consider porting pybugz to use Bugzilla's
>> XML-RPC api to avoid such breakage.
>
> XML-RPC is shit.
https://wiki.mozilla.org/Bugzilla:REST_API
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-dev] automated bug filing (i.e. pybugz) failing because of missing token
2012-03-27 7:33 ` Dirkjan Ochtman
@ 2012-03-27 8:04 ` Ian Whyman
2012-03-27 13:52 ` Ian Stakenvicius
2012-03-27 14:45 ` Mike Gilbert
0 siblings, 2 replies; 13+ messages in thread
From: Ian Whyman @ 2012-03-27 8:04 UTC (permalink / raw
To: gentoo-dev
On 27 March 2012 08:33, Dirkjan Ochtman <djc@gentoo.org> wrote:
> On Mon, Mar 26, 2012 at 20:44, Alec Warner <antarus@gentoo.org> wrote:
>>> Long term, we may want to consider porting pybugz to use Bugzilla's
>>> XML-RPC api to avoid such breakage.
>>
>> XML-RPC is shit.
>
> https://wiki.mozilla.org/Bugzilla:REST_API
>
Shame that it requires custom patches to BZ, personally I think the
preferable (and offically supported) method would be JSON-RPC[1]
Ian
1.http://www.bugzilla.org/docs/4.0/en/html/api/Bugzilla/WebService/Server/JSONRPC.html
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-dev] automated bug filing (i.e. pybugz) failing because of missing token
2012-03-27 8:04 ` Ian Whyman
@ 2012-03-27 13:52 ` Ian Stakenvicius
2012-03-27 14:45 ` Mike Gilbert
1 sibling, 0 replies; 13+ messages in thread
From: Ian Stakenvicius @ 2012-03-27 13:52 UTC (permalink / raw
To: gentoo-dev
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
On 27/03/12 04:04 AM, Ian Whyman wrote:
> On 27 March 2012 08:33, Dirkjan Ochtman <djc@gentoo.org> wrote:
>> On Mon, Mar 26, 2012 at 20:44, Alec Warner <antarus@gentoo.org>
>> wrote:
>>>> Long term, we may want to consider porting pybugz to use
>>>> Bugzilla's XML-RPC api to avoid such breakage.
>>>
>>> XML-RPC is shit.
>>
>> https://wiki.mozilla.org/Bugzilla:REST_API
>>
>
> Shame that it requires custom patches to BZ, personally I think
> the preferable (and offically supported) method would be
> JSON-RPC[1]
>
> Ian
>
> 1.http://www.bugzilla.org/docs/4.0/en/html/api/Bugzilla/WebService/Server/JSONRPC.html
>
>
What about all of the above? :D Shouldn't be hard to use the various
support libs to dump the request object to either format, right?
(no, i'm not volunteering)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)
iF4EAREIAAYFAk9xxhoACgkQAJxUfCtlWe0nVwEA6DIm5IcHaxZuFUZz7ETOq8o3
zzVOBJqP84SY+FQv8xkBALlNtfKSgQLPR0Qoyc3/nUqt8hAuvOF0jOIEx9r0FVMm
=wYwb
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-dev] automated bug filing (i.e. pybugz) failing because of missing token
2012-03-27 8:04 ` Ian Whyman
2012-03-27 13:52 ` Ian Stakenvicius
@ 2012-03-27 14:45 ` Mike Gilbert
1 sibling, 0 replies; 13+ messages in thread
From: Mike Gilbert @ 2012-03-27 14:45 UTC (permalink / raw
To: gentoo-dev
On Tue, Mar 27, 2012 at 4:04 AM, Ian Whyman <thev00d00@gentoo.org> wrote:
> On 27 March 2012 08:33, Dirkjan Ochtman <djc@gentoo.org> wrote:
>> On Mon, Mar 26, 2012 at 20:44, Alec Warner <antarus@gentoo.org> wrote:
>>>> Long term, we may want to consider porting pybugz to use Bugzilla's
>>>> XML-RPC api to avoid such breakage.
>>>
>>> XML-RPC is shit.
>>
>> https://wiki.mozilla.org/Bugzilla:REST_API
>>
>
> Shame that it requires custom patches to BZ, personally I think the
> preferable (and offically supported) method would be JSON-RPC[1]
>
> Ian
>
> 1.http://www.bugzilla.org/docs/4.0/en/html/api/Bugzilla/WebService/Server/JSONRPC.html
>
Quoting that page:
Please note that everything about this JSON-RPC interface is
EXPERIMENTAL. If you want a fully stable API, please use the
Bugzilla::WebService::Server::XMLRPC|XML-RPC interface.
This is why I suggested the XML-RPC api.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-dev] automated bug filing (i.e. pybugz) failing because of missing token
2012-03-26 17:20 ` Mike Gilbert
2012-03-26 18:44 ` Alec Warner
@ 2012-03-27 15:19 ` "Paweł Hajdan, Jr."
2012-03-27 20:03 ` William Hubbs
2012-04-05 21:59 ` William Hubbs
2 siblings, 1 reply; 13+ messages in thread
From: "Paweł Hajdan, Jr." @ 2012-03-27 15:19 UTC (permalink / raw
To: gentoo-dev, williamh
[-- Attachment #1: Type: text/plain, Size: 681 bytes --]
On 3/26/12 7:20 PM, Mike Gilbert wrote:
> On Mon, Mar 26, 2012 at 1:08 PM, "Paweł Hajdan, Jr."
> <phajdan.jr@gentoo.org> wrote:
>> I posted this issue here because it's not obvious what to do with it.
>> That version of pybugz worked for me before (20 February 2012).
>>
>> Any ideas?
>>
> I'm guessing it was broken by the upgrade from Bugzilla 4.0 to Bugzilla 4.2.
>
> I think you should file a bug for pybugz. :)
Right, and indeed I've found existing
<https://github.com/williamh/pybugz/pull/19> (there is patch inside).
William, this is now broken with Gentoo bugzilla. Could you please take
another look at the pull request referenced above.
Thanks.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 203 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-dev] automated bug filing (i.e. pybugz) failing because of missing token
2012-03-27 15:19 ` "Paweł Hajdan, Jr."
@ 2012-03-27 20:03 ` William Hubbs
2012-03-30 2:37 ` Alec Warner
0 siblings, 1 reply; 13+ messages in thread
From: William Hubbs @ 2012-03-27 20:03 UTC (permalink / raw
To: "Paweł Hajdan, Jr."; +Cc: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 831 bytes --]
On Tue, Mar 27, 2012 at 05:19:10PM +0200, "Paweł Hajdan, Jr." wrote:
> On 3/26/12 7:20 PM, Mike Gilbert wrote:
> > On Mon, Mar 26, 2012 at 1:08 PM, "Paweł Hajdan, Jr."
> > <phajdan.jr@gentoo.org> wrote:
> >> I posted this issue here because it's not obvious what to do with it.
> >> That version of pybugz worked for me before (20 February 2012).
> >>
> >> Any ideas?
> >>
> > I'm guessing it was broken by the upgrade from Bugzilla 4.0 to Bugzilla 4.2.
> >
> > I think you should file a bug for pybugz. :)
>
> Right, and indeed I've found existing
> <https://github.com/williamh/pybugz/pull/19> (there is patch inside).
That is now merged into pybugz-9999, but it had nothing to do with the
bugzilla 4.2 issues.
I will see what else I can come up with, but patches/suggestions are
welcome.
William
[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-dev] automated bug filing (i.e. pybugz) failing because of missing token
2012-03-27 20:03 ` William Hubbs
@ 2012-03-30 2:37 ` Alec Warner
2012-04-01 2:26 ` William Hubbs
0 siblings, 1 reply; 13+ messages in thread
From: Alec Warner @ 2012-03-30 2:37 UTC (permalink / raw
To: gentoo-dev, "Paweł Hajdan, Jr."
On Tue, Mar 27, 2012 at 1:03 PM, William Hubbs <williamh@gentoo.org> wrote:
> On Tue, Mar 27, 2012 at 05:19:10PM +0200, "Paweł Hajdan, Jr." wrote:
>> On 3/26/12 7:20 PM, Mike Gilbert wrote:
>> > On Mon, Mar 26, 2012 at 1:08 PM, "Paweł Hajdan, Jr."
>> > <phajdan.jr@gentoo.org> wrote:
>> >> I posted this issue here because it's not obvious what to do with it.
>> >> That version of pybugz worked for me before (20 February 2012).
>> >>
>> >> Any ideas?
>> >>
>> > I'm guessing it was broken by the upgrade from Bugzilla 4.0 to Bugzilla 4.2.
>> >
>> > I think you should file a bug for pybugz. :)
>>
>> Right, and indeed I've found existing
>> <https://github.com/williamh/pybugz/pull/19> (there is patch inside).
>
> That is now merged into pybugz-9999, but it had nothing to do with the
> bugzilla 4.2 issues.
>
> I will see what else I can come up with, but patches/suggestions are
> welcome.
>
> William
>
My plan is to add support for the jsonrpc api, which I was going to do
this weekend.
-A
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-dev] automated bug filing (i.e. pybugz) failing because of missing token
2012-03-30 2:37 ` Alec Warner
@ 2012-04-01 2:26 ` William Hubbs
0 siblings, 0 replies; 13+ messages in thread
From: William Hubbs @ 2012-04-01 2:26 UTC (permalink / raw
To: Alec Warner; +Cc: gentoo-dev, "Paweł Hajdan, Jr."
[-- Attachment #1: Type: text/plain, Size: 1296 bytes --]
On Thu, Mar 29, 2012 at 07:37:15PM -0700, Alec Warner wrote:
> On Tue, Mar 27, 2012 at 1:03 PM, William Hubbs <williamh@gentoo.org> wrote:
> > On Tue, Mar 27, 2012 at 05:19:10PM +0200, "Paweł Hajdan, Jr." wrote:
> >> On 3/26/12 7:20 PM, Mike Gilbert wrote:
> >> > On Mon, Mar 26, 2012 at 1:08 PM, "Paweł Hajdan, Jr."
> >> > <phajdan.jr@gentoo.org> wrote:
> >> >> I posted this issue here because it's not obvious what to do with it.
> >> >> That version of pybugz worked for me before (20 February 2012).
> >> >>
> >> >> Any ideas?
> >> >>
> >> > I'm guessing it was broken by the upgrade from Bugzilla 4.0 to Bugzilla 4.2.
> >> >
> >> > I think you should file a bug for pybugz. :)
> >>
> >> Right, and indeed I've found existing
> >> <https://github.com/williamh/pybugz/pull/19> (there is patch inside).
> >
> > That is now merged into pybugz-9999, but it had nothing to do with the
> > bugzilla 4.2 issues.
> >
> > I will see what else I can come up with, but patches/suggestions are
> > welcome.
> >
> > William
> >
>
> My plan is to add support for the jsonrpc api, which I was going to do
> this weekend.
Go for it; actually I wouldn't have a problem with us converting over to
that and dropping the old method of communicating with bugzilla.
William
[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-dev] automated bug filing (i.e. pybugz) failing because of missing token
2012-03-26 17:20 ` Mike Gilbert
2012-03-26 18:44 ` Alec Warner
2012-03-27 15:19 ` "Paweł Hajdan, Jr."
@ 2012-04-05 21:59 ` William Hubbs
2012-04-06 1:40 ` Mike Gilbert
2 siblings, 1 reply; 13+ messages in thread
From: William Hubbs @ 2012-04-05 21:59 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 1209 bytes --]
Hi all,
here is a quick update on this:
On Mon, Mar 26, 2012 at 01:20:38PM -0400, Mike Gilbert wrote:
> On Mon, Mar 26, 2012 at 1:08 PM, "Paweł Hajdan, Jr."
> <phajdan.jr@gentoo.org> wrote:
> > I posted this issue here because it's not obvious what to do with it.
> > That version of pybugz worked for me before (20 February 2012).
> >
> > Any ideas?
> >
>
> I'm guessing it was broken by the upgrade from Bugzilla 4.0 to Bugzilla 4.2.
>
> I think you should file a bug for pybugz. :)
>
> Long term, we may want to consider porting pybugz to use Bugzilla's
> XML-RPC api to avoid such breakage.
Agreed, and I think that is going to happen sooner than longterm.
I now have a project on my github account called PyZilla, which is a
library for communicating with BugZilla via xmlrpc. [1] However, it
does not work with python 2.7, which is what I would like.
I emailed the original author since he hadn't worked on this library in
a year, and I was given permission to take over maintainership because
he said he doesn't have time to work on it.
So, any patches to make this work with python-2.7 are welcome. :-)
William
[1] https://github.com/williamh/PyZilla
[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-dev] automated bug filing (i.e. pybugz) failing because of missing token
2012-04-05 21:59 ` William Hubbs
@ 2012-04-06 1:40 ` Mike Gilbert
0 siblings, 0 replies; 13+ messages in thread
From: Mike Gilbert @ 2012-04-06 1:40 UTC (permalink / raw
To: gentoo-dev
On Thu, Apr 5, 2012 at 5:59 PM, William Hubbs <williamh@gentoo.org> wrote:
> Hi all,
>
> here is a quick update on this:
>
> On Mon, Mar 26, 2012 at 01:20:38PM -0400, Mike Gilbert wrote:
>> On Mon, Mar 26, 2012 at 1:08 PM, "Paweł Hajdan, Jr."
>> <phajdan.jr@gentoo.org> wrote:
>> > I posted this issue here because it's not obvious what to do with it.
>> > That version of pybugz worked for me before (20 February 2012).
>> >
>> > Any ideas?
>> >
>>
>> I'm guessing it was broken by the upgrade from Bugzilla 4.0 to Bugzilla 4.2.
>>
>> I think you should file a bug for pybugz. :)
>>
>> Long term, we may want to consider porting pybugz to use Bugzilla's
>> XML-RPC api to avoid such breakage.
>
> Agreed, and I think that is going to happen sooner than longterm.
>
> I now have a project on my github account called PyZilla, which is a
> library for communicating with BugZilla via xmlrpc. [1] However, it
> does not work with python 2.7, which is what I would like.
>
> I emailed the original author since he hadn't worked on this library in
> a year, and I was given permission to take over maintainership because
> he said he doesn't have time to work on it.
>
> So, any patches to make this work with python-2.7 are welcome. :-)
>
> William
>
> [1] https://github.com/williamh/PyZilla
>
Heh, I have been working on a similar concept, and I actually have a
working implementation. I am able to successfully search, log in, and
create new bugs. I just pushed this to my github.
https://github.com/floppym/BugzillaProxy
I have not taken the time to integrate it into pybugz. If you want to
take it from here, that would be great. Or I'm happy to help too; I'm
just not quite sure how to integrate it.
Side note: I have noticed that the xml-rpc interface does not allow
you to search on all available Bugzilla fields. The most obvious
missing field is the CC list.
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2012-04-06 1:41 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-26 17:08 [gentoo-dev] automated bug filing (i.e. pybugz) failing because of missing token "Paweł Hajdan, Jr."
2012-03-26 17:20 ` Mike Gilbert
2012-03-26 18:44 ` Alec Warner
2012-03-27 7:33 ` Dirkjan Ochtman
2012-03-27 8:04 ` Ian Whyman
2012-03-27 13:52 ` Ian Stakenvicius
2012-03-27 14:45 ` Mike Gilbert
2012-03-27 15:19 ` "Paweł Hajdan, Jr."
2012-03-27 20:03 ` William Hubbs
2012-03-30 2:37 ` Alec Warner
2012-04-01 2:26 ` William Hubbs
2012-04-05 21:59 ` William Hubbs
2012-04-06 1:40 ` Mike Gilbert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox