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.
BarryStaes
 
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 mad.inc to your project folder.
2) Make sure "mad.inc" contains {$D+}{$L+}.
3) Set a breakpoint in "function TWinHttp.InitMantis : boolean".
madshi
Site Admin
 
Posts: 9469
Joined: Sun Mar 21, 2004 5:25 pm

Re: Is MantisBT version used to change behavour?

Postby SanfordOlson » Mon Nov 13, 2017 8:37 pm

Is this something that has been fixed? I have upgraded some months ago to Mantis 2.x and have been using HTTP setting in MadExcept to submit bugs to Mantis, but now the attachments are not coming through. I see this error on my test client (not using the latest MadExcept):

Get Mantis Connection
Get user accessible projects
Exception: The HTTP redirect request must be confirmed by the user - URL:http://mantisbt.facfin.com/api/soap/mantisconnect.php - SOAPAction:http://mantisbt.facfin.com/api/soap/mantisconnect.php/mc_projects_get_user_accessible
SanfordOlson
 
Posts: 1
Joined: Mon Nov 13, 2017 8:31 pm

Re: Is MantisBT version used to change behavour?

Postby madshi » Wed Nov 15, 2017 2:15 pm

What does this have to dowith the MantisBT version? It seems like a completely different issue to me.

FWIW, another user reported to me that Mantis 2.6 works just fine with madExcept. So if your Mantis complains with "The HTTP redirect request must be confirmed by the user", that sounds like some sort of Mantis configuration issue to me. Why does Mantis think that there's a HTTP redirect request going on?
madshi
Site Admin
 
Posts: 9469
Joined: Sun Mar 21, 2004 5:25 pm


Return to madExcept

Who is online

Users browsing this forum: No registered users and 3 guests