Mantisbt Integration error

Selvakumaran Muthu, geändert vor 3 Jahren.

Mantisbt Integration error

Youngling Beiträge: 6 Beitrittsdatum: 29.11.20 Neueste Beiträge
Hi, 
We are trying to integrate Klaros 5.0.5 with Mantisbt 2.24.3 (Php 7.4.12)

Installation details: 
We have used docker instance of Klaors with Postgres SQL. 

Issue:
When trying to connect we are getting remote machine exception 404 error. When we looked in to Mantis Log, we can see that SOAP request URL is incorrect (Duplicated URI Path). Here is the exact POST message logged in Mantis. Note: Mantis has been configued in nginx web server.

/mantisbt/api/soap/mantisconnect.php/api/soap/mantisconnect.php - 

172.25.0.1 - - [29/Nov/2020:12:39:07 +0000] "POST /mantisbt/api/soap/mantisconnect.php/api/soap/mantisconnect.php HTTP/1.1" 404 153 "-" "Mylyn Mylyn-Mantis Connector/Version n/a Apache Axis/1.4 HttpClient/3.1 Java/11.0.9 (AdoptOpenJDK) Linux/4.9.184-linuxkit (amd64)"

We are unable to figure why the DUPLICATE URI has been appended. Please guide us to resolve this issue. 

Regards,
Selva
thumbnail
Torsten Stolpmann, geändert vor 3 Jahren.

RE: Mantisbt Integration error

Jedi Council Member Beiträge: 755 Beitrittsdatum: 12.02.09 Neueste Beiträge
Hi Selvakumaran,

what is the URL you have entered for the issue management system URL?

I suspect the path you have entered is /mantisbt/api/soap/mantisconnect.php. In that case, it should be enough to change this to /mantisbt.

Klaros is expecting the base URL of your Mantis installation here, as shown in Figure 10.18 in the documentation: https://www.klaros-testmanagement.com/files/doc/html/User-Manual.Configure.Main-IntegrationSettings.html#User-Manual.Configure.Main-IntegrationSettings.IssueManagement.

Hope this helps, please let me know if this works for you.

Regards,

Torsten
Selvakumaran Muthu, geändert vor 3 Jahren.

RE: Mantisbt Integration error

Youngling Beiträge: 6 Beitrittsdatum: 29.11.20 Neueste Beiträge
Hi Torsten,

Attached the screenshot of the config. I just entered /mantisbt/ only in the configuration.

Regards,
Selva
thumbnail
Torsten Stolpmann, geändert vor 3 Jahren.

RE: Mantisbt Integration error

Jedi Council Member Beiträge: 755 Beitrittsdatum: 12.02.09 Neueste Beiträge
Hi Selva,

This basically looks ok to me.

Do you also receive a 404 if you remove the trailing slash in your URL?

Regards,

Torsten
Selvakumaran Muthu, geändert vor 3 Jahren.

RE: Mantisbt Integration error

Youngling Beiträge: 6 Beitrittsdatum: 29.11.20 Neueste Beiträge
Hi Torsten,
Yes, we are getting 404 error if we remove trailling slash from URL . And also, we tried all the different combinations on the URL.

Regards,
Selva
thumbnail
Torsten Stolpmann, geändert vor 3 Jahren.

RE: Mantisbt Integration error

Jedi Council Member Beiträge: 755 Beitrittsdatum: 12.02.09 Neueste Beiträge
There must be something weird here.

I would like to check, if the connectivity from your klaros docker container to your mantis instance is working correctly.

Can you install curl or wget on the klaros instance and retrieve the URLs from there?

If all is correct this should work the same as if you call mantis from your machine.

Hope this helps,

Torsten
Selvakumaran Muthu, geändert vor 3 Jahren.

RE: Mantisbt Integration error

Youngling Beiträge: 6 Beitrittsdatum: 29.11.20 Neueste Beiträge
Hi Torsten,

I have installed CURL inside Klaros docker and tried to issue the POST from Curl.  Attached the screen shot.

I am getting SOAP response with correct url. 
With duplicated URL, it is giving 404 error. 
I have attached both the screen shots.
thumbnail
Torsten Stolpmann, geändert vor 3 Jahren.

RE: Mantisbt Integration error

Jedi Council Member Beiträge: 755 Beitrittsdatum: 12.02.09 Neueste Beiträge
Hi Selva,

my only guess is, that the URL containing the duplicate mantisconnect.php is coming from a previous configuration attempt.

Can you please restart klaros in the container (systemctl stop klaros; systemctl start klaros) and see if the problem persists?

Regards,

Torsten
Selvakumaran Muthu, geändert vor 3 Jahren.

RE: Mantisbt Integration error

Youngling Beiträge: 6 Beitrittsdatum: 29.11.20 Neueste Beiträge
Hi Torsten,

There is no command Systemctl inside docker container. So, we deleted the complete the containter, images and Postgres DB (Volumes). And then reinsatlled from the begining. Still we are getting the same error. 

Attached the config screenshot.

 [30/Nov/2020:16:08:18 +0000] "POST /mantisbt/api/soap/mantisconnect.php/api/soap/mantisconnect.php HTTP/1.1" 404 153 "-" "Mylyn Mylyn-Mantis Connector/Version n/a Apache Axis/1.4 HttpClient/3.1 Java/11.0.9 (AdoptOpenJDK) Linux/4.9.184-linuxkit (amd64)"

Regards,
Selva
thumbnail
Torsten Stolpmann, geändert vor 3 Jahren.

RE: Mantisbt Integration error (Antwort)

Jedi Council Member Beiträge: 755 Beitrittsdatum: 12.02.09 Neueste Beiträge
Hi Selva,

I rechecked as well here with a fresh docker installation, and cannot find any flaw in the implementation or overall behavior.

Given that your Project ID is valid, I am currently out of ideas here. Maybe it helps if you add your Mantis log files.

Torsten
Selvakumaran Muthu, geändert vor 3 Jahren.

RE: Mantisbt Integration error

Youngling Beiträge: 6 Beitrittsdatum: 29.11.20 Neueste Beiträge
Hi Torsten,

Thanks for all your response. As you confirmed that it is working fine in your docker instance. We are investigating if the issue is from our NGINX web server. There are no specific error in Mantis log other than SQL Statement. We will let you know once we have identified the root cause. Once again thanks for all your help and support. 

Regards,
Selva