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 Searches" title="My Bugs"
href="buglist.cgi?bug_status=UNCONFIRMED&bug_status=NEW& bug_status=
ASSIGNED&bug_status=REOPENED&emailassigned_to1=1&e mailreporter1=1&
amp;emailtype1=exact&email1=crap%40diablops.com&fi eld0-0-0=bug_status&
amp;type0-0-0=notequals&value0-0-0=UNCONFIRMED&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.
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 Searches" title="My Bugs"
href="buglist.cgi?bug_status=UNCONFIRMED&bug_status=NEW& bug_status=
ASSIGNED&bug_status=REOPENED&emailassigned_to1=1&e mailreporter1=1&
amp;emailtype1=exact&email1=crap%40diablops.com&fi eld0-0-0=bug_status&
amp;type0-0-0=notequals&value0-0-0=UNCONFIRMED&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.