this is first time im working with mantis and its components.
i'm looking for a solution to report incoming emails automatic into mantisBT.
There for , i built a little program which simple logs into Mantis per HTTP POST commands and report any bug like this.
Code: Select all
POST /workflow/bug_report.php HTTP/1.1
Host: file
Content-Type: multipart/form-data; boundary=---------------------------
Content-Length: 1600
-----------------------------
Content-Disposition: form-data; name="bug_report_token"
20100112-eb52d2ae53296422ddc31cd26ca091d8f6263cb8
-----------------------------
Content-Disposition: form-data; name="m_id"
0
-----------------------------
Content-Disposition: form-data; name="project_id"
3
Problem there is that i cant get the boundary ID from bug_report_token so i always get error message that i may postet twice ...
Guess there is some algorithm coded so i cant read out the token from http response header... and trying to rebuild the algorithm may need much more time than i have

for my 2nd try... i created a win xp VM with sql and mantis.
i have downloaded MantisConnect-1.0a5.zip and copied the webservice folder into C:\xampp\htdocs\mantis\ folder and renamed it to "mc"
on the next step i downloaded the nant-0.86-beta1, copied the sample.build file from the mantisconnetor\nant-task folder into my own files folder(where nant islooking for build files by default) and executed it in hope it will do a bugrepot entry in mantis.
Code: Select all
<?xml version="1.0" ?>
<project name="MantisConnectNAnt" default="test">
<target name="test">
<mantis-submit
url="http://localhost/mantis/mc/mantisconnect.php"
username="administrator"
password="root"
project="Testprojekt"
summary="Nighty Build Failed"
description="Nightly build failed during unit testing."
category="Build"
stepsToReproduce="Checkout using tag 20040919, and run the build script."
priority="normal"
severity="major"
platform="i386"
os="Win XP Pro"
osVersion="SP2"
/>
</target>
</project>
Code: Select all
NAnt 0.86 (Build 0.86.2898.0; beta1; 08.12.2007)
Copyright (C) 2001-2007 Gerry Shaw
http://nant.sourceforge.net
Buildfile: file:///C:/Dokumente und Einstellungen/Admin/sample.build
Target framework: Microsoft .NET Framework 2.0
Target(s) specified: test
test:
BUILD FAILED
C:\Dokumente und Einstellungen\Admin\sample.build(5,3):
Invalid element <mantis-submit>. Unknown task or datatype.
Total time: 0 seconds.
manual login and bugreport works fine
What i have to change that the displayed build script will be reportet in mantis?