PDA

View Full Version : Bugzilla update of existing bugs not working


braindead0
07-Oct-2008, 06:18 PM
EL 6.0.17 RC8
Bugzilla 3.0.4 (*nix server, running Apache2).

The problem is in EWebTools.pas lines 1779+

BugClosed :=
((Pos(LowerCase('value="reopen"'), LowerCase(Response.HTML)) > 0) or
// BugZilla 3.x
(Pos(LowerCase('value="reopened"'), LowerCase(Response.HTML)) > 0));

The problem is that all user pages contain a link to 'My Bugs' search, which includes a long list of statuses:

<link rel="Saved&nbsp;Searches" title="My Bugs"
href="buglist.cgi?bug_status=UNCONFIRMED&amp;bug_status=NEW&amp; bug_status=
ASSIGNED&amp;bug_status=REOPENED&amp;emailassigned_to1=1&amp;e mailreporter1=1&
amp;emailtype1=exact&amp;email1=crap%40diablops.com&amp;fi eld0-0-0=bug_status&
amp;type0-0-0=notequals&amp;value0-0-0=UNCONFIRMED&amp;field0-0-


Here's an example of the status field HTML:

<tr>
<td align="right">
<b><a href="page.cgi?id=fields.html#status">Status</a></b>:
</td>
<td>CLOSED</td>
</tr>


I would recommend a better way to handle this:

BugClosed := Pos('>closed<', LowerCase(Response.HTML);

I'm not sure how it looks in Bugzilla 2 however.

There is also a problem with posting updates to existing bugs, were the server returns:
Bugzilla has suffered an internal error. Please save this page and send it to <administrator name> with details of what you were doing at the time this message appeared.
Form field component was not defined.


Still working on that.

braindead0
07-Oct-2008, 08:06 PM
Ended up using FTP. There are problems with updating existing bug reports in bugzilla. Missing fields (component and version for starters) seems to be the biggest. I believe that fixing it will require after searching for a pre-existing bug, then getting bug page (rather than just the search results) so that the proper version/component/etc can be pulled.

admin
09-Oct-2008, 10:00 AM
Hi,

I understand but to can help you I need a little source demo able to reproduce the issue.

Can you create and send it to me, please?