Fog Creek Software
Discussion Board




Accessing ScoutSubmit from custom HTML page

I'm working on submitting bugs to ScoutSubmit using HTTP.  I've started by creating a simple HTML form with all of the fields that the BugzScout Sample VB app has.  Bugs are being created just fine, but the notification email is not being sent like it is when I submit nearly identical bugs using the VB app.

I'll try pasting the HTML source below (dunno how the forum software will handle it):

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head><title>Test FogBUGZ BugzScout</title></head>
  <body>
    Remember to edit the action attribute of the form element to point to your
    FogBUGZ Server.
    <form method="post" action="http://localhost/FogBUGZ/ScoutSubmit.asp">
      <table>
        <tr>
          <td>Username:</td>
          <td><input type="text" value="Ken Klose" name="ScoutUserName"></td>
        </tr>
        <tr>
          <td>Project:</td>
          <td><input type="text" value="jBugzScout" name="ScoutProject"></td>
        </tr>
        <tr>
          <td>Area:</td>
          <td><input type="text" value="Test" name="ScoutArea"></td>
        </tr>
        <tr>
          <td>Description:</td>
          <td><input type="text" value="html desc" name="Description"></td>
        </tr>
        <tr>
          <td>Extra Info:</td>
          <td><input type="text" value="extra info" name="Extra"></td>
        </tr>
        <tr>
          <td>Customers Email:</td>
          <td><input type="text" value="customer@emailaddress.com" name="Email"></td>
        </tr>
        <tr>
          <td>Always Create New:</td>
          <td><input type="text" value="0" name="ForceNewBug"></td>
        </tr>
        <tr>
          <td colspan="2">1 to create new, 0 to append to bug with matching description</td>
        </tr>
        <tr>
          <td>Default Message:</td>
          <td><input type="text" value="html Default Message" name="ScoutDefaultMessage"></td>
        </tr>
        <tr>
          <td>Friendly response:</td>
          <td><input type="text" value="1" name="FriendlyResponse"></td>
        </tr>
        <tr>
          <td colspan="2">1 to response in HTML, 0 as XML</td>
        </tr>
        <tr>
          <td colspan="2"><input type="submit"></td>
        </tr>
      </table>
    </form>
  </body>
</html>

Ken Klose
Tuesday, November 05, 2002

Are you sure the parameters in both apps are exactly the same?

The reason is that, basically this is a client/server setup.  In one case the VB app is the client, and the other the web form is, but in both cases, all of the server code (scoutSubmit.asp) is being executed exactly the same (if the parameters are the same).  The truth is they are both just doing a POST to scoutSubmit.asp.  And since the generated email comes from within FogBUGZ, it doesn't follow that they would have different behaviours...

Can you think of anything else that might be different in the two cases?

Michael H. Pryor
Wednesday, November 06, 2002

I've loaded the same HTML page into an old copy of Netscape still sitting around (ver4.76) and it behaves correctly (email gets sent), but from IE 6.0.2800.1106 the bug gets created, but no email is sent.  I understand that this should be impossible, but I've done it now enough times to convince myself that I'm not crazy.

Ken Klose
Wednesday, November 06, 2002

I'm wondering if perhaps you are logged on to IE as yourself, so there's a cookie on the IE side that says you are you, and the email notification goes to you too, so the email notification is being supressed under the "no self notification" rule?

Joel Spolsky
Wednesday, November 06, 2002

Yes Joel that is apparently what was happening.  Once I logged out of FogBUGZ under IE ScoutSubmit began emailing bug reports.  My thanks to you and Mike for helping me figure this out.

Ken Klose
Wednesday, November 06, 2002

*  Recent Topics

*  Fog Creek Home