Is MantisBT version used to change behavour?

delphi package - automated exception handling

Is MantisBT version used to change behavour?

Postby BarryStaes » Fri Jan 27, 2017 1:44 pm

So madExcept sends bugreports to mantisbt and that works fine, but not since i tried upgrading to mantisbt 2.0.0

I looked into what goes wrong .. because madexcept does not understand a 302 redirect i tried using a mod_rewrite redirect on the server, but that does not seem to pass path_info to mantisbt. After some attempts i got the point that mantisbt seems to just close the connection instead of sending a HTTP reply. Working around / without a 302 isnt easy but i'll look into what goes on there.

Mathias, while i further look into this i wonder .. does madExcept change its behaviour depending on the detected mantisbt version?
While using WireShark i noticed the first call it does is mc_version and it now returns 2.0.0 instead of 1.2.18.
Posts: 32
Joined: Wed Dec 14, 2011 8:13 am

Re: Is MantisBT version used to change behavour?

Postby madshi » Mon Jan 30, 2017 12:06 pm

No, the version should be ignored by madExcept, it just asks for the version to see if any sort of Mantis support is available at the URL.

If you want to do some debugging, you could do this:

1) Copy madExcept.pas and to your project folder.
2) Make sure "" contains {$D+}{$L+}.
3) Set a breakpoint in "function TWinHttp.InitMantis : boolean".
Site Admin
Posts: 9412
Joined: Sun Mar 21, 2004 5:25 pm

Return to madExcept

Who is online

Users browsing this forum: No registered users and 3 guests