PDA

View Full Version : dotProject/Mantis Integration Module


jfaustin
11-07-06, 02:59 AM
I realize there are quite a few of the "mantis/dotProject" integration modules floating around, but we wanted to do our own because the existing ones didn't do everything we needed them to do.

The main problem was that none of them (at the time we were looking for a solution) used the Mantis-provided API, they all talked directly to the database. Which was fine for some things, but not for us.

Basically, we needed something to not only update and view bugs from Mantis, but also to convert those bugs directly to tasks in our project. So we wrote this little module and was able to get our employer (a university) to allow us to open source the software and provide it to all you fine folks.

So here is the software for what its work. There are more details on our site about how it is put together. Check those posts our here:

http://blogs.lib.ncsu.edu/page/web?entry=mantis_bug_tracking_extraordinaire
http://blogs.lib.ncsu.edu/page/web?entry=dotproject_open_source_project_managemen t
http://blogs.lib.ncsu.edu/page/web?entry=merging_dotproject_and_mantis

And finally, to download the module, you can go here:
http://blogs.lib.ncsu.edu/page/web?entry=mantis_and_dotproject_connection_module

CasN
12-07-06, 11:29 PM
Good to see there are other/better options.

I have tried this and found some issues :
1. require_once("mantis_config.php");
The code looks for dp_mantis_config.php.
so change
require_once("dp_mantis_config.php");
to
require_once("mantis_config.php");

2. If i try to get all bugs i get a message like

Fatal error: Call to undefined function: newerror() in g:\inetpub\wwwroot\PHPXMLRPC\client.php on line 115
XML-RPC: xmlrpcmsg::parseResponse: invalid charset encoding of received response: XML error: not well-formed (invalid token) at line 3242, column 2260

I thought I had defined my paths correctly since I do see bugs by project and I can create a project inside Mantis from within DP.
So can you please enlighten me on this ?

In addition, can you explain how edit selections works ?
I noticed that when clicking on this button without chnaging the status, it creates a task and chnages the status to "Acknowledged". Is this intended ?
If I change to "Assigned", the status is adjusted in Mantis however nobody is assigned.

Still believe there is a lot of potential here so I hope to get some feedback.

Cas

jfaustin
13-07-06, 01:51 AM
Thanks for testing it out. This is still very much a "first swing" at the problem so I am sure there are some quirks still. I am going to see if I can figure out some of the issues you are talking about and get them solved.

BTW, included with this package is basically an open XML-RPC client for Mantis that can be used by more than this little module. That was how the whole thing came about in the first place. We wrote some other stuff to do a simple include on our applications to get a friendly bug reporting form and feature request form that fits with the design of the application. So maybe some of you who are doing some Mantis stuff may be helped out with that.

- Jason

jfaustin
13-07-06, 02:27 AM
Cas et al,

We have fixed the few bugs that you were talking about in your post.

As far as this:
In addition, can you explain how edit selections works ?
I noticed that when clicking on this button without chnaging the status, it creates a task and chnages the status to "Acknowledged". Is this intended ?
If I change to "Assigned", the status is adjusted in Mantis however nobody is assigned.

The intended behavior is, when you convert the bug to a task, you have acknowledged its existance, therfore we set the status to acknowledged. If you want to change this, you can edit "editbugs.php" in the dotProject mantis module directory and change the status to be something different.


$mantis->resetRequest();
$mantis->setFunction("MantisRPC");
$mantis->addArg(array($mantis_user, $mantis_pass));
$mantis->addArg("updateMantisBugStatusById");
$mantis->addArg($b);

// change status here, 30 == Acknowledged in our version
$mantis->addArg("30");

$result = $mantis->call();

if(ERROR::isError($result)){
die($result->getErrstr());
}


We have updated our download site with the new version of the code with the fixes.

http://itdapps.ncsu.edu/downloads.php

- Jason

CasN
13-07-06, 04:31 PM
Hi Jason,
thanks for the update, unfortunately i receive another message:

Error: [5] Didn't receive 200 OK from remote server. (HTTP/1.1 401 Access Denied) at client.php:115XML-RPC: xmlrpcmsg::parseResponse: HTTP error, got response: HTTP/1.1 401 Access Denied

My settings are ok, userid and password I have verified once more.

I very much like the approach so hope we can tackle these minor issues.

Cas

jfaustin
13-07-06, 10:31 PM
Cas,

That sounds like an error thrown by the web server. Is your mantis directory protected by an htaccess file or some other authentication? Perhaps the xml-rpc directory is as well? If you want to get some advanced error reporting from the xmlrpc client, you can turn on debugging by doing the following:

On line 11 in index.php
$mantis->setXMLRPCDebug(2);

That will let you see the xml request and return payload. May help debug a bit. When were you getting the error? When you view bugs or when you change their status or what?

Let me know what you come up with.

- Jason

agrj
14-07-06, 04:06 AM
Hi,

I had the same error reported bu Cas.

I changed what you said, and the information I got is:

Mantis

---SENDING---
POST /home/restricted/home/projetosaes/public_html/mantis/mantis_xmlrpc/mantisserver.php HTTP/1.0
User-Agent: XML-RPC for PHP 2.0
Host: projetosaes.com.br
Accept-Encoding: gzip, deflate
Accept-Charset: UTF-8,ISO-8859-1,US-ASCII
Content-Type: text/xml
Content-Length: 349

<?xml version="1.0"?>
<methodCall>
<methodName>MantisRPC</methodName>
<params>
<param>
<value><string>admin_mantis</string></value>
</param>
<param>
<value><string>senha_mantis</string></value>
</param>
<param>
<value><string>getMantisBugByProjectID</string></value>
</param>
<param>
<value><string></string></value>
</param>
</params>
</methodCall>
---END---
---GOT---
HTTP/1.1 404 Not Found
Date: Thu, 13 Jul 2006 18:05:09 GMT
Server: Apache
Content-Length: 280
Connection: close
Content-Type: text/html; charset=iso-8859-1

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /home/restricted/home/projetosaes/public_html/mantis/mantis_xmlrpc/mantisserver.php was not found on this server.</p>
</body></html>

---END---
Error: [5] Didn't receive 200 OK from remote server. (HTTP/1.1 404 Not Found) at client.php:115

jfaustin
14-07-06, 04:14 AM
agrj,

You are getting a 404 error saying that it can't find the path to mantisserver.php. Check your file path to make sure mantisserver is where it is supposed to be. Your script is looking for it in /home/restricted/home/projetosaes/public_html/mantis/mantis_xmlrpc/mantisserver.php Make sure it is there and it should work out OK. Hope this helps.

- Jason

agrj
14-07-06, 04:29 AM
I'm trying to set the path correctly, but I can not find the correct one.

the public_html is in my root directory, and both mantis and dotproject are under this (public_html). what should be the correct path?

thanks again

Dinho

jfaustin
14-07-06, 04:36 AM
It depends on where your mantis_xmlrpc directory is. You are going to want to set the $web_path_to_mantis_xmlrpc in your mantis_config.php file to be the URL where your mantis_xmlrpc folder lives. My guess is that this variable is not set correclty. Where did you install the mantis_xmlrpc directory to? If you put it in your root public_html folder, you would change that variable to "mantis_xmlrpc/".

Hope that helps
- Jason

agrj
14-07-06, 04:45 AM
the mantis_xmlrpc is installed inside mantis diretory. the last shot I did was:

require_once("http://www.projetosaes.com.br/XMLRPC/PHPXMLRPC/client.php");


// The web path to the mantis_xmlrpc folder. Make sure you include the end slash
$web_path_to_mantis_xmlrpc = "http://www.projetosaes.com.br/mantis/mantis_xmlrpc/";
?>

and now I got this error:


Fatal error: Class 'PHPXMLRPCClient' not found in /home/restricted/home/projetosaes/public_html/dotproject/modules/mantis/index.php on line 4

any hints?

jfaustin
14-07-06, 10:04 PM
You can't use a URL in your require_once with that file, you have to put the file path relative to your working directory, or the absolute file path from root. Your $web_path_to_mantis_xmlrpc will probably work ok, but if it doesnt, just make it a relative path as well.

agrj
14-07-06, 10:07 PM
hi,

sorry for the stupid question, but how this path should be?

jfaustin
14-07-06, 10:21 PM
your require_once should probably look like (based on a previous post)

require_once("/home/restricted/home/projetosaes/public_html/XMLRPC/PHPXMLRPC/client.php");

That would be your absolute path (I assume, based on the URL you gave previously and your previous post). I would use that and see how it works out.

agrj
14-07-06, 10:37 PM
but, if I use this I get this error again:

---SENDING---
POST /home/restricted/home/projetosaes/public_html/mantis/mantis_xmlrpc/mantisserver.php HTTP/1.0
User-Agent: XML-RPC for PHP 2.0
Host: projetosaes.com.br
Accept-Encoding: gzip, deflate
Accept-Charset: UTF-8,ISO-8859-1,US-ASCII
Content-Type: text/xml
Content-Length: 334

<?xml version="1.0"?>
<methodCall>
<methodName>MantisRPC</methodName>
<params>
<param>
<value><string>admin</string></value>
</param>
<param>
<value><string>root</string></value>
</param>
<param>
<value><string>getMantisBugByProjectID</string></value>
</param>
<param>
<value><string></string></value>
</param>
</params>
</methodCall>
---END---
---GOT---
HTTP/1.1 404 Not Found
Date: Fri, 14 Jul 2006 12:36:05 GMT
Server: Apache
Content-Length: 280
Connection: close
Content-Type: text/html; charset=iso-8859-1

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /home/restricted/home/projetosaes/public_html/mantis/mantis_xmlrpc/mantisserver.php was not found on this server.</p>
</body></html>

---END---
Error: [5] Didn't receive 200 OK from remote server. (HTTP/1.1 404 Not Found) at client.php:115

I am completly lost!!!

jfaustin
14-07-06, 11:06 PM
OK, well your filepath is right in the require_once now, but your web path probably is not. Can you post your config file contents and the directory structure where you have installed the XMLRPC folder? Maybe I could help you track it down better

jfaustin
14-07-06, 11:11 PM
I think your web path should be "mantis/mantis_xmlrpc/" from what I can tell from you setup. Also, make sure you domain in the config file is set to "www.projetosaes.com.br"

agrj
14-07-06, 11:28 PM
here is the config file:

<?php

// Change this to the path to PHPXMLRPC client.php
require_once("/home/restricted/home/projetosaes/public_html/XMLRPC/PHPXMLRPC/client.php");

// Mantis username and password
$mantis_user = "******";
$mantis_pass = "******";

// Your domain
$domain = "www.projetosaes.com.br";

// The web path to the mantis_xmlrpc folder. Make sure you include the end slash
$web_path_to_mantis_xmlrpc = "/home/restricted/home/projetosaes/public_html/mantis/mantis_xmlrpc/";
?>


the XMLRPC folder is under public_html like mantis folder, so I think the path should be the same, no?

agrj
14-07-06, 11:31 PM
OK, different error now.

I changed the web_path as you said to mantis/mantis_xmlrpc/, and now I got this error:

---SENDING---
POST /mantis/mantis_xmlrpc/mantisserver.php HTTP/1.0
User-Agent: XML-RPC for PHP 2.0
Host: www.projetosaes.com.br
Accept-Encoding: gzip, deflate
Accept-Charset: UTF-8,ISO-8859-1,US-ASCII
Content-Type: text/xml
Content-Length: 334

<?xml version="1.0"?>
<methodCall>
<methodName>MantisRPC</methodName>
<params>
<param>
<value><string>admin</string></value>
</param>
<param>
<value><string>root</string></value>
</param>
<param>
<value><string>getMantisBugByProjectID</string></value>
</param>
<param>
<value><string></string></value>
</param>
</params>
</methodCall>
---END---
---GOT---
HTTP/1.1 200 OK
Date: Fri, 14 Jul 2006 13:29:44 GMT
Server: Apache
Connection: close
Content-Type: text/html

<br />
<b>Fatal error</b>: Call to undefined method PHPXMLRPCServer::XMLRPCServer() in <b>/home/restricted/home/projetosaes/public_html/XMLRPC/PHPXMLRPC/server.php</b> on line <b>23</b><br />

---END---
HEADER: date: Fri, 14 Jul 2006 13:29:44 GMT
HEADER: server: Apache
HEADER: connection: close
HEADER: content-type: text/html
XML error: Invalid document end at line 2, column 1Error: [2] Invalid return payload: enable debugging to examine incoming payload (XML error: Invalid document end at line 2, column 1) at client.php:115

jfaustin
15-07-06, 12:23 AM
did you set your require_once correctly in mantisserver.php? It should be "/home/restricted/home/projetosaes/public_html/XMLRPC/PHPXMLRPC/server.php"

agrj
15-07-06, 12:41 AM
Yes, it's like that:

require_once("/home/restricted/home/projetosaes/public_html/XMLRPC/PHPXMLRPC/server.php");

jfaustin
15-07-06, 12:46 AM
ah ha! I found the problem.

In server.php change the __construct function from:


function __construct(){
$this->XMLRPCServer();
}


to


function __construct(){
$this->PHPXMLRPCServer();
}


That should work. We have updated the package to include the fix too. Sorry bout that. We didn't catch it because we are using PHP4 and it doesnt look at the __construct() constructor.

agrj
15-07-06, 01:07 AM
Where do I turn the debug off?

now I have a lot of things but I don't know if these are errors or not?

look:

---SENDING---
POST /mantis/mantis_xmlrpc/mantisserver.php HTTP/1.0
User-Agent: XML-RPC for PHP 2.0
Host: www.projetosaes.com.br
Accept-Encoding: gzip, deflate
Accept-Charset: UTF-8,ISO-8859-1,US-ASCII
Content-Type: text/xml
Content-Length: 334

<?xml version="1.0"?>
<methodCall>
<methodName>MantisRPC</methodName>
<params>
<param>
<value><string>admin</string></value>
</param>
<param>
<value><string>root</string></value>
</param>
<param>
<value><string>getMantisBugByProjectID</string></value>
</param>
<param>
<value><string></string></value>
</param>
</params>
</methodCall>
---END---
---GOT---
HTTP/1.1 200 OK
Date: Fri, 14 Jul 2006 14:59:51 GMT
Server: Apache
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 732
Connection: close
Content-Type: text/xml

?½?Û?Ó0?ïûÑ"q·$qz¢
]!¸á$^ r?ikHìàCé¾=N¶»¬V/HK?ÚØM¾þõaþ?w?®MÎ ?PòÃMþ.»¹ÛÍÊìI5ßÁôJð
=×¼3?üû?·v%×?ßûË?[þZ«±ÚÕv|z·½+%ï`??éøþükBwy?^??éCϬL¯wÎÆ¾áaû?ÑÄ ä?QBz*~@m+T)?!?%DC¯´?k"ÅdI 9qÙ´!I¤´9É(!?ë[Qs ¸(RÞ?¤?^ ¥?½?[bó??bÀoè¸$ZØ
ÛY3R?ß#´j\-ö¢Å¥C×fM;\?[g¢ Þc1?x¬?j?õ?"
.G-ñF1^\-.ÇÜ%dØÍ?JcË?Tf%X?-o³Õm^$ùjS?9mÔ?qûNX ¨
ÌlÍü?v1§ñ\òzS°
#5m-7¶rý <,xYÌIÁ9æCh?Xg b?4kØ»ceápô´I
æA(!
g¤J0ëA«¤Ú;ÑbCCª³¤Q¬åö tCæ6(!×ÒEÃl%ä .ÐTBVuÅ0±ÖÃ\µ<?6VÌ0AíÎ~WC.Qp ó
?|£æ&ñ!´ä?4Õr]ÇQ»;%?a^?6?êµJ??è+«,o£ÌOÌQgÉ¢þ??Ü?^5\ ¼oµÒúíVÌ·²~Ê|?ôSæ©,ø!µþ?ᦨ?À=ür Õ?¸Vzë2ÌjÊy5T_Ḇ?q
©Øõ¬ÿkúy?:Fð?yr'NÛ^'NS?
.!¿?Å?xx0~iö?jÑǤÃMÒðä ÁïI£?ñ6ëw?y±õË!?|hØb??ßm?äò¿lz=?K?æþ¥ãñ¤/}:ûK_ þûÓæb=
---END---
HEADER: date: Fri, 14 Jul 2006 14:59:51 GMT
HEADER: server: Apache
HEADER: vary: Accept-Encoding
HEADER: content-encoding: gzip
HEADER: content-length: 732
HEADER: connection: close
HEADER: content-type: text/xml
---INFLATED RESPONSE---[7229 chars]---
<?xml version="1.0"?>
<methodResponse>
<params>
<param>
<value><array>
<data>
<value><array>
<data>
<value><struct>
<member><name>0</name>
<value><string>1</string></value>
</member>
</struct></value>
<value><struct>
<member><name>id</name>
<value><string>1</string></value>
</member>
</struct></value>
<value><struct>
<member><name>1</name>
<value><string>2</string></value>
</member>
</struct></value>
<value><struct>
<member><name>project_id</name>
<value><string>2</string></value>
</member>
</struct></value>
<value><struct>
<member><name>2</name>
<value><string>5</string></value>
</member>
</struct></value>
<value><struct>
<member><name>reporter_id</name>
<value><string>5</string></value>
</member>
</struct></value>
<value><struct>
<member><name>3</name>
<value><string>6</string></value>
</member>
</struct></value>
<value><struct>
<member><name>handler_id</name>
<value><string>6</string></value>
</member>
</struct></value>
<value><struct>
<member><name>4</name>
<value><string>0</string></value>
</member>
</struct></value>
<value><struct>
<member><name>duplicate_id</name>
<value><string>0</string></value>
</member>
</struct></value>
<value><struct>
<member><name>5</name>
<value><string>30</string></value>
</member>
</struct></value>
<value><struct>
<member><name>priority</name>
<value><string>30</string></value>
</member>
</struct></value>
<value><struct>
<member><name>6</name>
<value><string>50</string></value>
</member>
</struct></value>
<value><struct>
<member><name>severity</name>
<value><string>50</string></value>
</member>
</struct></value>
<value><struct>
<member><name>7</name>
<value><string>100</string></value>
</member>
</struct></value>
<value><struct>
<member><name>reproducibility</name>
<value><string>100</string></value>
</member>
</struct></value>
<value><struct>
<member><name>8</name>
<value><string>80</string></value>
</member>
</struct></value>
<value><struct>
<member><name>status</name>
<value><string>80</string></value>
</member>
</struct></value>
<value><struct>
<member><name>9</name>
<value><string>20</string></value>
</member>
</struct></value>
<value><struct>
<member><name>resolution</name>
<value><string>20</string></value>
</member>
</struct></value>
<value><struct>
<member><name>10</name>
<value><string>10</string></value>
</member>
</struct></value>
<value><struct>
<member><name>projection</name>
<value><string>10</string></value>
</member>
</struct></value>
<value><struct>
<member><name>11</name>
<value><string></string></value>
</member>
</struct></value>
<value><struct>
<member><name>category</name>
<value><string></string></value>
</member>
</struct></value>
<value><struct>
<member><name>12</name>
<value><string>2006-07-13 17:33:40</string></value>
</member>
</struct></value>
<value><struct>
<member><name>date_submitted</name>
<value><string>1152822820</string></value>
</member>
</struct></value>
<value><struct>
.
.
.
.
.


</struct></value>
<value><struct>
<member><name>24</name>
<value><string>Cameras externas</string></value>
</member>
</struct></value>
<value><struct>
<member><name>summary</name>
<value><string>Cameras externas</string></value>
</member>
</struct></value>
<value><struct>
<member><name>25</name>
<value><string>0</string></value>
</member>
</struct></value>
<value><struct>
<member><name>sponsorship_total</name>
<value><string>0</string></value>
</member>
</struct></value>
<value><struct>
<member><name>26</name>
<value><string>0</string></value>
</member>
</struct></value>
<value><struct>
<member><name>sticky</name>
<value><string>0</string></value>
</member>
</struct></value>
<value><struct>
<member><name>project_name</name>
<value><string>Ocorrências Internas</string></value>
</member>
</struct></value>
<value><struct>
<member><name>reporter_name</name>
<value><string>cristiane</string></value>
</member>
</struct></value>
<value><struct>
<member><name>severity_name</name>
<value><string>pequeno</string></value>
</member>
</struct></value>
<value><struct>
<member><name>priority_name</name>
<value><string>normal</string></value>
</member>
</struct></value>
<value><struct>
<member><name>status_name</name>
<value><string>resolvido</string></value>
</member>
</struct></value>
<value><struct>
<member><name>reproducibility_name</name>
<value><string>N/D</string></value>
</member>
</struct></value>
<value><struct>
<member><name>projection_name</name>
<value><string>nenhuma</string></value>
</member>
</struct></value>
<value><struct>
<member><name>eta_name</name>
<value><string>nenhum</string></value>
</member>
</struct></value>
<value><struct>
<member><name>resolution_name</name>
<value><string>corrigido</string></value>
</member>
</struct></value>
<value><struct>
<member><name>description</name>
<value><string>A camera da frente do escritório nao está funcionando</string></value>
</member>
</struct></value>
</data>
</array></value>
</data>
</array></value>
</param>
</params>
</methodResponse>
---END---
---PARSED---
xmlrpcval::__set_state(array(
'me' =>
array (
'array' =>
array (
0 =>
xmlrpcval::__set_state(array(
'me' =>
array (
'array' =>
array (
0 =>
xmlrpcval::__set_state(array(
'me' =>
array (
'struct' =>
array (
0 =>
.
.
.
.
.



'mytype' => 2,
'_php_class' => NULL,
)),
),
),
'mytype' => 2,
'_php_class' => NULL,
))
---END---


No bugs were found for this project.

jfaustin
15-07-06, 01:10 AM
line 8 in dotproject/modules/mantis/index.php: Change it to


$mantis->setXMLRPCDebug(0);


that will disable debug

agrj
15-07-06, 01:13 AM
OK, now looks like it's working, but shouldn't I see something more than just:

No bugs were found for this project.?

How can I interact with Mantis?

could I see all bugs and decide if it has be belong to some project?

thanks a lot

jfaustin
15-07-06, 01:19 AM
I assume you are clicking on the main "Mantis" link in the nav bar. This will show all bugs that the project name in Mantis matches a project name in dotProject. So if you have a project name in Mantis called "My Website" and a project in dotProject called "My Website", it will show bugs for that. However, if the name of the project in dotProject would be "My Personal Website", it won't show the bugs from the Mantis project "My Website" because it has no way to sync the two applications other than by Project Name.

Hope this helps.

- Jason

agrj
15-07-06, 01:23 AM
Clear now!!!

thank you for all your support

agrj
15-07-06, 01:37 AM
I found a possible problem when you click on a bug to be opened with mantis.

in index.php there is this reference:

$link .= "/index_dp.php?parm=";

it should be this:

$link .= "/mantis/index_dp.php?parm=";

otherwisde it will try to find the index_dp and other directly in the root directory.

CasN
16-07-06, 09:06 PM
AGRJ,
do not change index.php but add one setting to includes/config.php:

// where is Mantis installed, just need the relative path without thrailing slash
$dPconfig['mantis_path'] = "/prod/mantis" ;

This setting is a left over of my DP-Mantis module which was used as a base.
It is just not yet documented.

Jason
Sofar this is pretty promising, i still get an error message though. I see issues underneath a project, can create a project in Mantis but if I hit the mantis option in the menu bar, I get:

Error: [2] Invalid return payload: enable debugging to examine incoming payload (XML error: Undeclared entity warning at line 51, column 8) at client.php:115XML error: Undeclared entity warning at line 51, column 8


Debugging shows:

---SENDING---
POST /prod/mantis/mantis_xmlrpc/mantisserver.php HTTP/1.0
User-Agent: XML-RPC for PHP 2.0
Host: localhost
Accept-Encoding: gzip, deflate
Accept-Charset: UTF-8,ISO-8859-1,US-ASCII
Content-Type: text/xml
Content-Length: 338

<?xml version="1.0"?>
<methodCall>
<methodName>MantisRPC</methodName>
<params>
<param>
<value><string>admin</string></value>
</param>
<param>
<value><string>********</string></value>
</param>
<param>
<value><string>getMantisBugByProjectID</string></value>
</param>
<param>
<value><string></string></value>
</param>
</params>
</methodCall>
---END---
---GOT---
HTTP/1.1 200 OK
Server: Microsoft-IIS/5.1
Date: Sun, 16 Jul 2006 10:36:14 GMT
X-Powered-By: ASP.NET
Content-type: text/html
X-Powered-By: PHP/5.1.2

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/default_tabbed.css" />
<script type="text/javascript" language="JavaScript"><!--
if(document.layers) {document.write("<style>td{padding:0px;}<\/style>")}
// --></script>
<meta http-equiv="Content-type" content="text/html;charset=windows-1252" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="Pragma-directive" content="no-cache" />
<meta http-equiv="Cache-Directive" content="no-cache" />
<meta http-equiv="Expires" content="Sun, 16 Jul 2006 10:36:14 GMT" />
<title>Stahl Waalwijk ITS Helpdesk</title>
<script type="text/JavaScript" src="javascript/common.js"></script>
</head>
<body>
<div class="center"><span class="pagetitle">Stahl Waalwijk ITS Helpdesk</span></div>
<table class="hide"><tr><td class="login-info-left">Logged in as: <span class="italic">admin</span> <span class="small">(Cas Nuy (ADM) - administrator)</span></td><td class="login-info-middle"><span class="italic">16-07-2006 12:36 CEST</span></td><td class="login-info-right"><form method="post" name="form_set_project" action="set_project.php">Project: <select name="project_id" class="small" onchange="document.forms.form_set_project.submit();"><option value="0" selected="selected" >All Projects</option>
<option value="27">2nd Line Support</option>
<option value="27;31">&raquo; 2nd Line Changes</option>
<option value="27;29">&raquo; 2nd Line Incidents</option>
<option value="27;30">&raquo; 2nd Line Problems</option>
<option value="34">ASI</option>
<option value="35">BDAG</option>
<option value="39">CHINA</option>
<option value="3">DP1 DotProject-Mantis</option>
<option value="41">dp_mantis</option>
<option value="28">Helpdesk</option>
<option value="40">Hours excl support</option>
<option value="36">MEXICO-USA</option>
<option value="11">No Dotproject project</option>
<option value="10">pnCPG</option>
<option value="38">SAP-HelpDesk</option>
<option value="32">SBE</option>
<option value="26">Stahl Holdings</option>
<option value="26;18">&raquo; 3rd Line Problems</option>
<option value="26;23">&raquo; General</option>
<option value="26;12">&raquo; Issues</option>
<option value="26;19">&raquo; Projects &amp; Changes</option>
<option value="26;25">&raquo; Security</option>
<option value="37">Turkey</option>
</select> <input type="submit" class="button-small" value="Switch" /></form></td></tr></table><table class="width100" cellspacing="0"><tr><td class="menu"><a href="main_page.php">Main</a> | <a href="my_view_page.php">My View</a> | <a href="print_mytime_tracking_page.php">My Time</a> | <a href="view_all_bug_page.php">View Issues</a> | <a href="bug_report_page.php">Report Issue</a> | <a href="summary_page.php">Summary</a> | <a href="proj_doc_page.php">Docs</a> | <a href="manage_user_page.php">Manage</a> | <a href="news_menu_page.php">Edit News</a> | <a href="faq_menu_page.php">FAQ</a> | <a href="logout_page.php">Logout</a></td><td class="right" style="white-space: nowrap;"><form method="post" action="jump_to_bug.php"><input type="text" name="bug_id" size="10" class="small" />&nbsp;<input type="submit" class="button-small" value="Jump" />&nbsp;</form></td></tr></table><br /><div align="center"><table class="width50" cellspacing="1"><tr><td class="form-title">APPLICATION ERROR #1100</td></tr><tr><td><p class="center" style="color:red">Issue 1624 not found.</p></td></tr><tr><td><p class="center">Please use the "Back" button in your web browser to return to the previous page. There you can correct whatever problems were identified in this error or select another action. You can also click an option from the menu bar to go directly to a new section.</p></td></tr></table></div> <br />
<hr size="1" />
<table border="0" width="100%" cellspacing="0" cellpadding="0"><tr valign="top"><td> <span class="timer"><a href="http://www.mantisbt.org/">Mantis 1.0.1.Stahl.3</a>[<a href="http://www.mantisbt.org/" target="_blank">^</a>]</span>
<address>Copyright &copy; 2000 - 2006 Mantis Group</address>
<address><a href="mailto:cas@nuy.info">cas@nuy.info</a></address>
<span class="italic">Time: 0.292782 seconds.</span><br /> 22 total queries executed.<br />
21 unique queries executed.<br />
</td><td><div align="right"><a href="http://www.mantisbt.org" title="Powered by Mantis Bugtracker"><img src="images/mantis_logo_button.gif" width="88" height="35" alt="Powered by Mantis Bugtracker" border="0" /></a></div></td></tr></table></body>
</html>

---END---
HEADER: server: Microsoft-IIS/5.1
HEADER: date: Sun, 16 Jul 2006 10:36:14 GMT
HEADER: x-powered-by: PHP/5.1.2
HEADER: content-type: text/html


Second small issue:
In your distribution, you should move the image-directory one level up otherwise the logo is not shown.

Third issue:
mantis issues can be copied multiple times to tasks, think a check is needed here.

Last one for now:
If Issue is Assigned, no user is connected to this, should this not be the user that intiates this action ?

Cas

Rgerla
27-07-06, 06:59 PM
The Mantis - dot project integration is looking great, but when I ty to change the status of an outstanding bug from within Dot Project I get the follow message:
'Fatal error: Cannot redeclare class ctask in D:\wwwprojects\dotproject20\modules\tasks\tasks.cl ass.php on line 43'

Does anybody know how to fix this?

bitreality
25-08-06, 07:22 AM
Hi guys,

When trying to configure this mantis integration module I get the following error:

---SENDING---
POST /home/.furrball/bitreality/bitreality.com/mantis/mantis_xmlrpc/mantisserver.php HTTP/1.0
User-Agent: XML-RPC for PHP 2.0
Host: www.bitreality.com
Accept-Encoding: gzip, deflate
Accept-Charset: UTF-8,ISO-8859-1,US-ASCII
Content-Type: text/xml
Content-Length: 337

<?xml version="1.0"?>
<methodCall>
<methodName>MantisRPC</methodName>
<params>
<param>
<value><string>admin</string></value>
</param>
<param>
<value><string>frodo06</string></value>
</param>
<param>
<value><string>getMantisBugByProjectID</string></value>
</param>
<param>
<value><string></string></value>
</param>
</params>
</methodCall>
---END---
---GOT---
HTTP/1.1 404 Not Found
Date: Thu, 24 Aug 2006 21:19:56 GMT
Server: Apache/2.0.54 (Unix) PHP/4.4.2 mod_ssl/2.0.54 OpenSSL/0.9.7e mod_fastcgi/2.4.2 DAV/2 SVN/1.1.4
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 279
Connection: close
Content-Type: text/html; charset=iso-8859-1

?UPÁNÃ0 ½÷+ÌÎP´cT ÖNLcBÝ?J?DJ??º?þ=iW?qrÞ˳?ýÄMþº.ß<?/;8?vÛ5,î·E¹AÌËüòó?.?ý"K?æÆfB?T°aKÙj¹?½gØøÞ)?28?DåÕ0öÝgW??Ñf¥&ôÕSÇ¤àø¶Ô¾!LO}?´+Ã?¤5<\=ÓÚ7ØHǦ?ËÇOcC[Ϩ£ðM!mu gÙ??¾§Ñ¼Ö¦?Y °?ÖxTʰñ.· áßA ?àÃ4?\¦?=kc 8 Æ}{è;é ʝû??¼?N?¿Kg[???Q??&¿û?È|?
---END---
Error: [5] Didn't receive 200 OK from remote server. (HTTP/1.1 404 Not Found) at client.php:115


I've double checked all my configuration files and made sure all the locations are correct. Everything (mantis, XMLRPC) are in the root. Here is a sample of my mantis_config.php file:

<?php

// Change this to the path to PHPXMLRPC client.php
require_once("/home/.furrball/bitreality/bitreality.com/XMLRPC/PHPXMLRPC/client.php");

// Mantis username and password
$mantis_user = "xxxxx";
$mantis_pass = "xxxxx";

// Your domain
$domain = "www.bitreality.com";

// The web path to the mantis_xmlrpc folder. Make sure you include the end slash
$web_path_to_mantis_xmlrpc = "/home/.furrball/bitreality/bitreality.com/mantis/mantis_xmlrpc/";
?>

Does anyone know what might be wrong? I have no .htaccess files setup in any directories. Thanks!

informvarma
02-11-06, 03:49 PM
Hi,

after i have installed and configure, i get the `mantis` menu item on the top menu of the dotProject, but the `mantis` tab that is to appear project page is not showing up.

Any help on this would be great.

Thanks.
Varma

joshmathis
03-11-06, 03:42 AM
I am getting an error when I click the Mantis tab:

XML error: not well-formed (invalid token) at line 1622, column 230Error: [2] Invalid return payload: enable debugging to examine incoming payload (XML error: not well-formed (invalid token) at line 1622, column 230) at client.php:115XML error: not well-formed (invalid token) at line 1622, column 230

I enabled debugging and it shows that all of the bugs from Mantis were read and are correct - the whole XML file is there (payload ends with </methodResponse>.

Line 1622 of the payload is in the middle of a normal string value, so I don't know what it is talking about here. Any ideas?

Thanks, this module looks like it will be great for our use!

glynnsmith
03-11-06, 03:50 AM
As is, I have noticed that procedure will fail if you have invalid characters such as quotes in the Mantis Issue. I was going to look at that when I had a chance but up to this point I have just remove the characters from the issue text.

I have made alot of changes to this integration and will share when I have a chance to clean it up. Unfortunately, that may be a month or so out.

joshmathis
03-11-06, 04:10 AM
Quotation marks are invalid?

The only other things I have noticed in my data stream are HTML entities like line feed/carriage return (#13;, #10; ). These are going to be in there no matter what... so I hope that these aren't the problem!

glynnsmith
03-11-06, 04:47 AM
Well - they aren't necessarily invalid but the current process that builds the XML doesn't escape them properly and thus breaks the interface. It is something that could be fixed...

Carriage returns / line feeds shouldn't cause a problem... I don't know what other characters may break it, I had only ran into the quotes (").

andre525exc
11-11-06, 08:41 AM
:confused:
this is the result I'm getting
running on apache, php, linux
something about IIS and needing a secure link
both dotproject and mantis are on the same server

help me Obiewan -- your my laaast chance!:(

---SENDING---
POST /http://mantis.discgostudio.com/mantis_xmlrpc/mantisserver.php HTTP/1.0
User-Agent: XML-RPC for PHP 2.0
Host: discgostudio.com
Accept-Encoding: gzip, deflate
Accept-Charset: UTF-8,ISO-8859-1,US-ASCII
Content-Type: text/xml
Content-Length: 365

<?xml version="1.0"?>
<methodCall>
<methodName>MantisRPC</methodName>
<params>
<param>
<value><string>your_mantis_username</string></value>
</param>
<param>
<value><string>your_mantis_password</string></value>
</param>
<param>
<value><string>getMantisBugByProjectID</string></value>
</param>
<param>
<value><string></string></value>
</param>
</params>
</methodCall>
---END---
---GOT---
HTTP/1.1 403 Forbidden
Content-Length: 1409
Content-Type: text/html
Server: Microsoft-IIS/6.0
MicrosoftOfficeWebServer: 5.0_Pub
X-Powered-By: ASP.NET
Date: Fri, 10 Nov 2006 22:38:45 GMT
Connection: close

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>The page must be viewed over a secure channel</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=Windows-1252">
<STYLE type="text/css">
BODY { font: 8pt/12pt verdana }
H1 { font: 13pt/15pt verdana }
H2 { font: 8pt/12pt verdana }
A:link { color: red }
A:visited { color: maroon }
</STYLE>
</HEAD><BODY><TABLE width=500 border=0 cellspacing=10><TR><TD>

<h1>The page must be viewed over a secure channel</h1>
The page you are trying to access is secured with Secure Sockets Layer (SSL).
<hr>
<p>Please try the following:</p>
<ul>
<li>Type <b>https://</b> at the beginning of the address you are attempting to reach and press ENTER.</li>
</ul>
<h2>HTTP Error 403.4 - Forbidden: SSL is required to view this resource.<br>Internet Information Services (IIS)</h2>
<hr>
<p>Technical Information (for support personnel)</p>
<ul>
<li>Go to <a href="http://go.microsoft.com/fwlink/?linkid=8180">Microsoft Product Support Services</a> and perform a title search for the words <b>HTTP</b> and <b>403</b>.</li>
<li>Open <b>IIS Help</b>, which is accessible in IIS Manager (inetmgr),
and search for topics titled <b>About Security</b>, <b>Secure Sockets Layer (SSL)</b>, and <b>About Custom Error Messages</b>.</li>
</ul>

</TD></TR></TABLE></BODY></HTML>

---END---
Error: [5] Didn't receive 200 OK from remote server. (HTTP/1.1 403 Forbidden) at client.php:115

rony007dennis
15-11-06, 09:46 PM
i have installed the mantis plugin form ur blog
did all the settings correctly.

but now when i click mantis link on top its displaying

""This project was not found in Mantis.""
and under that a button named ""Create project in mantis.""

and after i click it its redirected to Projects page

No project is created in mantis....

I tried after creating one with the same name in mantis. but then also the same thing happens. cud u help me out??????

nwalton
26-01-07, 08:59 AM
I am trying to do your integration because it looks like exactly what we need at my company. I already did the integration of nuy.info, but yours seems to give the functionality we really need. However, I cannot get the thing to work. I have turned on debug and when I go to the mantis tab I get the following error message [payload error] (I have checked and double checked all the pathnames, and done everything I can think of to make this work) - if someone could just point me in the right direction of how to fix this??

---SENDING---
POST /mantis/mantis_xmlrpc/mantisserver.php HTTP/1.0
User-Agent: XML-RPC for PHP 2.0
Host: 192.168.16.103
Accept-Encoding: gzip, deflate
Accept-Charset: UTF-8,ISO-8859-1,US-ASCII
Content-Type: text/xml
Content-Length: 338

<?xml version="1.0"?>
<methodCall>
<methodName>MantisRPC</methodName>
<params>
<param>
<value><string>webuser</string></value>
</param>
<param>
<value><string>roster</string></value>
</param>
<param>
<value><string>getMantisBugByProjectID</string></value>
</param>
<param>
<value><string></string></value>
</param>
</params>
</methodCall>
---END---
---GOT---
HTTP/1.1 200 OK
Date: Thu, 25 Jan 2007 22:55:23 GMT
Server: Apache/2.0.52 (Red Hat)
X-Powered-By: PHP/4.3.9
Connection: close
Content-Type: text/html; charset=UTF-8

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css" href="http://192.168.16.103/mantis/mantis_xmlrpc/css/default.css" />
<script type="text/javascript" language="JavaScript"><!--
if(document.layers) {document.write("<style>td{padding:0px;}<\/style>")}
// --></script>
<meta http-equiv="Content-type" content="text/html;charset=windows-1252" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="Pragma-directive" content="no-cache" />
<meta http-equiv="Cache-Directive" content="no-cache" />
<meta http-equiv="Expires" content="Thu, 25 Jan 2007 22:55:23 GMT" />
<title>Mantis</title>
<script type="text/JavaScript" src="javascript/common.js"></script>
</head>
<body>
<div class="center"><span class="pagetitle"></span></div>
<div align="left"><a href="http://www.mantisbugtracker.com" title="Mantis Bugtracker"><img border="0" width="238" height="78" alt="Mantis Bugtracker" src="images/mantis_logo.gif" /></a></div><br /><div align="center"><table class="width50" cellspacing="1"><tr><td class="form-title">APPLICATION ERROR #801</td></tr><tr><td><p class="center" style="color:red">User not found.</p></td></tr><tr><td><p class="center">Please use the "Back" button in your web browser to return to the previous page. There you can correct whatever problems were identified in this error or select another action. You can also click an option from the menu bar to go directly to a new section.</p></td></tr></table></div> <br />
<hr size="1" />
<table border="0" width="100%" cellspacing="0" cellpadding="0"><tr valign="top"><td> <span class="timer"><a href="http://www.mantisbugtracker.com/">Mantis 1.0.6</a>[<a href="http://www.mantisbugtracker.com/" target="_blank">^</a>]</span>
<address>Copyright &copy; 2000 - 2006 Mantis Group</address>
<address><a href="mailto:webmaster@example.com">webmaster@example.com</a></address>
3 total queries executed.<br />
3 unique queries executed.<br />
</td><td><div align="right"><a href="http://www.mantisbugtracker.com" title="Powered by Mantis Bugtracker"><img src="images/mantis_logo_button.gif" width="88" height="35" alt="Powered by Mantis Bugtracker" border="0" /></a></div></td></tr></table></body>
</html>

---END---
HEADER: date: Thu, 25 Jan 2007 22:55:23 GMT
HEADER: server: Apache/2.0.52 (Red Hat)
HEADER: x-powered-by: PHP/4.3.9
HEADER: connection: close
HEADER: content-type: text/html; charset=UTF-8
Error: [2] Invalid return payload: enable debugging to examine incoming payload missing top level xmlrpc element at client.php:115

jfaustin
26-01-07, 11:03 PM
Looks like you have the wrong user/pass combination. You are getting an error from Mantis, not from the module, as noted:

APPLICATION ERROR #801</td></tr><tr><td><p class="center" style="color:red">User not found.</p></td></tr><tr><td><p class="center">Please use the "Back" button in your web browser to return to the previous page. There you can correct whatever problems were identified in this error or select another action. You can also click an option from the menu bar to go directly to a new section.

hope this helps...

nwalton
27-01-07, 03:55 AM
Duh! That worked. Sometimes all you need is a different pair of eyes. Thanks so much. I just knew it was something simple that I was missing.

nwalton
28-01-07, 12:05 AM
OK. I have gotten the mantis page at the top working, but I don't see a Mantis tab in projects or tasks. I know this is a configuration issue - I had the same problem with the nuy.info module, but I can't remember how I fixed it. Any hints - hopefully this will be my last question. I will turn on debugging to see if I can figure it our for myself also.

Duck
30-01-07, 06:19 PM
hi,


I continually get error messages from my mantis tab in a project. This is most common

Error: [5] Didn't receive 200 OK from remote server. (HTTP/1.1 404 Not Found) at client.php:115

Now I've checked this thread and done everything I've found

and currently have settled on my original settings in mantis_config

require_once("/home/mysite/public_html/XMLRPC/PHPXMLRPC/client.php");

$web_path_to_mantis_xmlrpc = "/mantis/mantis_xmlrpc/";

Now I've tried many different options here using absolute web path and absolute root path for $webpath and require once and nothing seems to work.

Now the mantis tab would error occaisionally at first but usually after a couple clicks it would work. Then I noticed the Links didn't work in tasks so I updated the includes/config.php with this:
$dPconfig['mantis_path'] = "/mantis" ;
First time I tried and viola links worked great next time I tried the mantis tab I've been always getting the above error.

My Specs:


Apache 1.3.37
Perl 5.8.7
PHP 4.4.3
MySql 4.1.21-standard

Any help is very appreciated thanks,

Duck

Duck
31-01-07, 06:14 AM
Ok seems this error is intermittent. One minute it is not working but refreshing sometimes works. Then sometimes after a few refreshes it seems the Mantis account Password is reset or something and now I get an unauthorized error. This is really frustrating. I really like the looks of this module and integration for the most part it seems awesome if anyone can help me get it running smoothly I'd be forever grateful.

Thanks,

Duck

DC_Adam
03-02-07, 06:48 AM
Hey Guys,
Has anyone seen this error before, I didnt see it in any of the previous posts.

Warning: Unknown(): A session is active. You cannot change the session module's ini settings at this time. in Unknown on line 0


I get this error after going into the Mantis module in DP, and it only shows up after a long delay and the Mantis logo shows up. I believe this must be a setting in Mantis that I have not set up. Unfortunatly at this time I dont know where else to troubleshoot the issue.

I have tested the username and password and they work so I dont believe it is the login information.

Thanks for any help that can be provided.
Adam

Duck
10-02-07, 12:53 AM
I guess noone is watching this topic anymore?

sgtmcg
10-02-07, 07:38 AM
Hi,

after i have installed and configure, i get the `mantis` menu item on the top menu of the dotProject, but the `mantis` tab that is to appear project page is not showing up.

Any help on this would be great.

Thanks.
Varma
I too am having the same difficulty. There are no errors being returned from the XMLRPC, I simply cannot create a project in Mantis, nor see a Mantis tab on dotProject project. Has anyone else run into this?

caseydk
11-02-07, 02:14 AM
I don't believe so... you might want to contact whoever originally put out the module.

lvalics
08-03-07, 10:37 AM
Anyone have a solution for

Error: [5] Didn't receive 200 OK from remote server. (HTTP/1.1 404 Not Found) at client.php:115

Thank you for any help.

fmerloz
09-03-07, 07:19 PM
Why!!!! The Helpdesk module is better than Mantis..... And it should be easier to update a new package for the new versions!!!!!

lvalics
10-03-07, 05:35 AM
I made it work now, actually almost. The idea was that I used domain and project was on subdomain. I thought that $domain variable was for cookie, but then I realized it is for URL building, I think should be there a better comment.

Now I get
Error: [2] Invalid return payload: enable debugging to examine incoming payload (XML error: not well-formed (invalid token) at line 336, column 282) at client.php:115

When I enable DEBUG, before any XML response, I got strange characters back and I think this is the problem, unfortunatelly I did not get the solution to fix it yet. ANYONE?

lvalics
10-03-07, 05:32 PM
I have meditated a little bit and I have a theory how I see MANTIS - DP integration. This is based on our scenario, but free to comment.

First of all, we use Mantis to add Bugs/New Feature request to our softwares.
This software, like DotProject as well, is based on versions, revision, branches, RoadMap (new feature), ChangeLogs. So to have this feature, we will need to use Mantis, but prefer to have it also as a Project in DotCommerce.

So I'd like to have possibilities that if I'm in a Project, to see as a tasks, imported from Mantis, as a list. Inside TASK, I think should be imported like:
MANTIS - DOTPROJECT

BUG ID - Task ID (!?)
Dunno if can be used BUG ID, cause could be taken, but I feel in some cases, can be added to DotProject (if you use Mantis) a mantis table into database and store this kind of info's, Task ID connected to Bug ID. etc.

Category - Project (?!)
Maybe is OK, maybe same as BUG ID, require into DB a field.

Severity - (?!)
Cannot find similar info

Reproducibility - (?!)
Cannot find similar info

Date Submitted - Start Date

Last Update - (?!)
Cannot find similar info

Priority - Priority
Summary - Task
Reporter - Owner
Assigned to - Assigned Users

Status - (?!)
Cannot find similar info

View Status - Access (?!)
Cannot find similar info or could be access in DP?

Resolution - (?!)
Cannot find similar info

Product Version - (?!)
Cannot find similar info

Description - Description

Additional Information - (?!)
Cannot find similar info, but could be empty in many cases.

Attached Files - Files
Time tracking - Time Worked

Issue History - (?!)
Cannot find similar info, practically Mantis keep info on all move.

Add Note (Notes) - Task Logs

Relationships - (?!)
Cannot find similar info

Project involved - Project Contacts (!?)
Could be used this.

Of course, at start, should be much more simple. BUT in any case (either direct work in mantis DB (read) or WebServices (like actually I saw)), should be some matching done. I think on something like this, when I click as ADMIN on Mantis menu, I should have a matching for Projects and Users.
Users, because then is easier to update back to Mantis who edited in DP and same for Projects, cause then not need to have same name in Mantis and DP.
So step 1 should be this, to match From Mantis and DP the users and then to Match the projects. Admin can do this from time to time. Also can be an import Projects from Mantis.
Personally I think Databae direct work is better, in some cases Webservices (API) can be slow, cause getting too many data all the time. this is especially for View Data (gathering data from Mantis). For add data is much easier I think.

OK, then when I'm in a project and I hit Mantis TAB, or in Projects, if there is Mantis integration, to have a new tab where I can add mantis specific fields, to send back to Mantis. Each time I change in TASK something, can be also send to Mantis via API (here is much better API), so Mantis will update as well the job, same as I work in Mantis.

Then probabbly other jobs what ADMIN usually do in Mantis, like Roadmap, Change Logs, etc, will be done in Mantis.
This is how I see an integration, anyone can comment it?

hunt529
15-04-07, 02:27 PM
CasN and/or Jason,

I am expeiencing the same access problem -- how did you overcome?

David

Hi Jason,
thanks for the update, unfortunately i receive another message:
Quote:
Error: [5] Didn't receive 200 OK from remote server. (HTTP/1.1 401 Access Denied) at client.php:115XML-RPC: xmlrpcmsg:arseResponse: HTTP error, got response: HTTP/1.1 401 Access Denied
My settings are ok, userid and password I have verified once more.

I very much like the approach so hope we can tackle these minor issues.

Cas
Reply With Quote

silence
16-04-07, 08:38 PM
Hello! Thanks for your cool module!
We are using dotProject and Mantis now.

dotProject v2.1-rc1
Mantis v1.0.0

They are working well.
I have installed this module by the steps in the instruction.
(Mantis_dotProject_Integration-1.2.zip)
The "Mantis" label has appeared in the DP.
However, i get an error after click it:

"Error: [2] Invalid return payload: enable debugging to examine incoming payload missing top level xmlrpc element at client.php:115"

I know so few about XMLRPC and PHP.
Who can help me?? Thanks!

CasN
17-04-07, 04:47 AM
My integration has nothing to do with the one using XMLRPC, mine was a relative simple integration.
In case support is needed with that one, just drop me a mesage.

Cas
CasN and/or Jason,

I am expeiencing the same access problem -- how did you overcome?

David

Hi Jason,
thanks for the update, unfortunately i receive another message:
Quote:
Error: [5] Didn't receive 200 OK from remote server. (HTTP/1.1 401 Access Denied) at client.php:115XML-RPC: xmlrpcmsg:arseResponse: HTTP error, got response: HTTP/1.1 401 Access Denied
My settings are ok, userid and password I have verified once more.

I very much like the approach so hope we can tackle these minor issues.

Cas
Reply With Quote

tbia
22-05-07, 11:06 PM
Hello,

I am testing the dP/Mantis integration using the XMLRPC core version.
Everything is fine about correct addresing of dP<-->mantis (after a bit of troubles).

Now the rpc appears to work but it claims an Error: [104] Received from server invalid compressed HTTP at client.php:124

Turned on debug infos:

---SENDING---
POST /bugmanager/xmlrpc/dotproject/dpserver.php HTTP/1.0
User-Agent: XML-RPC for PHP 2.0
Host: 10.124.3.16
Accept-Encoding: gzip, deflate
Accept-Charset: UTF-8,ISO-8859-1,US-ASCII
Content-Type: text/xml
Content-Length: 364

<?xml version="1.0"?>
<methodCall>
<methodName>MantisRPC</methodName>
<params>
<param>
<value><string>tbianco</string></value>
</param>
<param>
<value><string>d02c4c4cde7ae76252540d116a40f23a</string></value>
</param>
<param>
<value><string>getMantisBugByProjectId</string></value>
</param>
<param>
<value><string></string></value>
</param>
</params>
</methodCall>
---END---

---GOT---
HTTP/1.1 200 OK
Date: Tue, 22 May 2007 13:00:09 GMT
Server: Apache/2.0.54 (Debian GNU/Linux)
Pragma: no-cache
Cache-Control: no-store, no-cache, must-revalidate
Cache-Control: post-check=0, pre-check=0
Expires: Tue, 22 May 2007 13:00:10 GMT
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 270
Connection: close
Content-Type: text/xml

<p style="color:red">SYSTEM WARNING: fprintf(): supplied argument is not a valid stream resource</p>�������mO1Â0 Üû�¨Àec0éÀÄJ_��H�SÅIÅóI«PÅä»óùlcûò½)� |¬÷»¦nu� �Ò3Ø ÉX¨w�ûTêhú<qI1ß�.F¥¨��'=�NÁÂÌW;:NúÐ4@XC`�®ð¾9]��Û$�U}æÂ�UY(*ÃBT�AX ÿ�ÀrtõÓ\ÿ�ÍÇoó-.ä��
---END---

HEADER: date: Tue, 22 May 2007 13:00:09 GMT
HEADER: server: Apache/2.0.54 (Debian GNU/Linux)
HEADER: pragma: no-cache
HEADER: cache-control: post-check=0, pre-check=0
HEADER: expires: Tue, 22 May 2007 13:00:10 GMT
HEADER: vary: Accept-Encoding
HEADER: content-encoding: gzip
HEADER: content-length: 270
HEADER: connection: close
HEADER: content-type: text/xml

Error: [104] Received from server invalid compressed HTTP at client.php:124


What's the "unvalid stream resource" msg about? Any hint?

Thank you

Bye

tibia

kalf
22-05-07, 11:20 PM
hi !

i try to integrate Mantis Integration Module, and i met a problem, i follow the Readme file for upload and configuration, but after install the module i have this error when i click on the "Mantis" tab :

Error: [2] Invalid return payload: enable debugging to examine incoming payload (XML error: Undeclared entity warning at line 27, column 8) at client.php:124


someone have a solution for me ? :)

thanks

dingfelder
08-06-07, 02:25 PM
there is a new sourceforge project for the integration

(talked about on: http://docs.dotproject.net/index.php/Mantis_Integration )

also another forum thread http://www.dotproject.net/vbulletin/showthread.php?t=6765

Are these 2 seperate versions of the same library? Im assuming the other one is a fork of this version?

I was getting errors trying to make this one woek but got his to work, so maybe there are some improvements?

Cheers,

Ding

code4fun
14-06-07, 04:47 PM
I'm using Mantis with Subversion integration, but I need some time tracking features. Is it possible to use dotProject time tracking features on a Mantis issues with this dotProject/Mantis integration or is the Mantis issues just linked or imported ?

rstevens
29-07-07, 10:58 AM
I have this module installed and working but it isn't returning all the open bugs for the project it only shows 17 it is possible to display all of them for the project? If so how do I do it?

jony
31-07-07, 08:51 PM
my mantis module gives me next error:
Error: [5] Didn't receive 200 OK from remote server. (HTTP/1.1 404 Not Found) at client.php:115
what is the reason and solution? -)

lito_gps
01-08-07, 10:36 PM
1º, sorry my english is not good.. i am in the spain.

i want integrate mantis with dotproject, but i have the next error.

---SENDING---
POST /mantis/mantis_xmlrpc/mantisserver.php HTTP/1.0
User-Agent: XML-RPC for PHP 2.0
Host: localhost
Accept-Encoding: gzip, deflate
Accept-Charset: UTF-8,ISO-8859-1,US-ASCII
Content-Type: text/xml
Content-Length: 337

<?xml version="1.0"?>
<methodCall>
<methodName>MantisRPC</methodName>
<params>
<param>
<value><string>mantis</string></value>
</param>
<param>
<value><string>mantis</string></value>
</param>
<param>
<value><string>getMantisBugByProjectID</string></value>
</param>
<param>
<value><string></string></value>
</param>
</params>
</methodCall>
---END---
---GOT---
HTTP/1.1 200 OK
Date: Wed, 01 Aug 2007 12:34:42 GMT
Server: Apache/2.2.4 (Win32) DAV/2 mod_ssl/2.2.4 OpenSSL/0.9.8e mod_autoindex_color PHP/5.2.2
X-Powered-By: PHP/5.2.2
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 192
Connection: close
Content-Type: text/xml

?mP»Â0 ÜûVgDèÀ?L:0!Á ki DJ?GÅç?V- ?Égßù¬3Ö/k #´ãmY-We- ´N?(<Ê?[?L̵kLêû}j£ÌB{%/?Krí?"C?ÉQs?Õj?¢(&1nø_?sô?ïs§0LååxòÞù
ì9SZ?rm²Ä?4?f?j*3É2T(ÆÝ÷Å?§ø!§Èbö?7Á?ç?3
---END---
HEADER: date: Wed, 01 Aug 2007 12:34:42 GMT
HEADER: server: Apache/2.2.4 (Win32) DAV/2 mod_ssl/2.2.4 OpenSSL/0.9.8e mod_autoindex_color PHP/5.2.2
HEADER: x-powered-by: PHP/5.2.2
HEADER: vary: Accept-Encoding
HEADER: content-encoding: gzip
HEADER: content-length: 192
HEADER: connection: close
HEADER: content-type: text/xml
---INFLATED RESPONSE---[307 chars]---
<?xml version="1.0"?>
<methodResponse>
<fault>
<value>
<struct><member><name>faultCode</name>
<value><int>105</int></value>
</member>
<member>
<name>faultString</name>
<value><string>XML error: Invalid document end at line 1, column 1</string></value>
</member>
</struct>
</value>
</fault>
</methodResponse>
---END------PARSED---
class xmlrpcval {
var $me =
array (
'struct' =>
array (
'faultCode' =>
class xmlrpcval {
var $me =
array (
'int' => 105,
);
var $mytype = 1;
var $_php_class = NULL;
},
'faultString' =>
class xmlrpcval {
var $me =
array (
'string' => 'XML error: Invalid document end at line 1, column 1',
);
var $mytype = 1;
var $_php_class = NULL;
},
),
);
var $mytype = 3;
var $_php_class = NULL;
}
---END---Error: [105] XML error: Invalid document end at line 1, column 1 at client.php:115

my installation is:
dotproject ,mantis and xmlrpc folders, all in the
c:\xampp\htdocs\

in mantis_config.php

$domain = "localhost";
$web_path_to_mantis_xmlrpc = "/mantis/mantis_xmlrpc/";

in mantisserver.php
require_once("C:/xampp/htdocs/XMLRPC/PHPXMLRPC/server.php");
in mantisherlper.php
require_once('C:/xampp/htdocs/mantis/core.php');

i do test with ../../ and continue con the problem.

thaks for your help.

logicast
10-08-07, 10:36 PM
Hi All,
We got similar problem:

XML error: not well-formed (invalid token) at line 251, column 21Error: [2] Invalid return payload: enable debugging to examine incoming payload (XML error: not well-formed (invalid token) at line 251, column 21) at client.php:115

It raises when the following entry is met:

<member><name>24</name>
<value><string>Ñ? гидов не показÑ?ваеÑ?Ñ?Ñ? деÑ?кÑ?ипÑ?н.</string></value>
</member>

Some guys reported about the non-wellformed XML document problem before, but they talked about quote sign " and other special chars. Here it looks like all special (Cyrillic letters) are encoded correctly, but it fails on this piece of XML.

Thank you for your help.

-Gene

P.S. dotProject v. 2.1-rc2, mantis 1.0.5. PHP 4.

leojiang
08-10-07, 08:37 PM
1º, sorry my english is not good.. i am in the spain.

i want integrate mantis with dotproject, but i have the next error.

---SENDING---
POST /mantis/mantis_xmlrpc/mantisserver.php HTTP/1.0
User-Agent: XML-RPC for PHP 2.0
Host: localhost
Accept-Encoding: gzip, deflate
Accept-Charset: UTF-8,ISO-8859-1,US-ASCII
Content-Type: text/xml
Content-Length: 337

<?xml version="1.0"?>
<methodCall>
<methodName>MantisRPC</methodName>
<params>
<param>
<value><string>mantis</string></value>
</param>
<param>
<value><string>mantis</string></value>
</param>
<param>
<value><string>getMantisBugByProjectID</string></value>
</param>
<param>
<value><string></string></value>
</param>
</params>
</methodCall>
---END---
---GOT---
HTTP/1.1 200 OK
Date: Wed, 01 Aug 2007 12:34:42 GMT
Server: Apache/2.2.4 (Win32) DAV/2 mod_ssl/2.2.4 OpenSSL/0.9.8e mod_autoindex_color PHP/5.2.2
X-Powered-By: PHP/5.2.2
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 192
Connection: close
Content-Type: text/xml

?mP»Â0 ÜûVgDèÀ?L:0!Á ki DJ?GÅç?V- ?Égßù¬3Ö/k #´ãmY-We- ´N?(<Ê?[?L̵kLêû}j£ÌB{%/?Krí?"C?ÉQs?Õj?¢(&1nø_?sô?ïs§0LååxòÞù
ì9SZ?rm²Ä?4?f?j*3É2T(ÆÝ÷Å?§ø!§Èbö?7Á?ç?3
---END---
HEADER: date: Wed, 01 Aug 2007 12:34:42 GMT
HEADER: server: Apache/2.2.4 (Win32) DAV/2 mod_ssl/2.2.4 OpenSSL/0.9.8e mod_autoindex_color PHP/5.2.2
HEADER: x-powered-by: PHP/5.2.2
HEADER: vary: Accept-Encoding
HEADER: content-encoding: gzip
HEADER: content-length: 192
HEADER: connection: close
HEADER: content-type: text/xml
---INFLATED RESPONSE---[307 chars]---
<?xml version="1.0"?>
<methodResponse>
<fault>
<value>
<struct><member><name>faultCode</name>
<value><int>105</int></value>
</member>
<member>
<name>faultString</name>
<value><string>XML error: Invalid document end at line 1, column 1</string></value>
</member>
</struct>
</value>
</fault>
</methodResponse>
---END------PARSED---
class xmlrpcval {
var $me =
array (
'struct' =>
array (
'faultCode' =>
class xmlrpcval {
var $me =
array (
'int' => 105,
);
var $mytype = 1;
var $_php_class = NULL;
},
'faultString' =>
class xmlrpcval {
var $me =
array (
'string' => 'XML error: Invalid document end at line 1, column 1',
);
var $mytype = 1;
var $_php_class = NULL;
},
),
);
var $mytype = 3;
var $_php_class = NULL;
}
---END---Error: [105] XML error: Invalid document end at line 1, column 1 at client.php:115

my installation is:
dotproject ,mantis and xmlrpc folders, all in the
c:\xampp\htdocs\

in mantis_config.php

$domain = "localhost";
$web_path_to_mantis_xmlrpc = "/mantis/mantis_xmlrpc/";

in mantisserver.php
require_once("C:/xampp/htdocs/XMLRPC/PHPXMLRPC/server.php");
in mantisherlper.php
require_once('C:/xampp/htdocs/mantis/core.php');

i do test with ../../ and continue con the problem.

thaks for your help.

jefersonfoliveira
30-10-08, 05:47 AM
Now I get

Error: [2] Invalid return payload: enable debugging to examine incoming payload (XML error: not well-formed (invalid token) at line 336, column 282) at client.php:115



Similar error here (dotProject 2.1.1 and Mantis 1.1.1):

XML error: Invalid character at line 1921, column 41Error: [2] Invalid return payload: enable debugging to examine incoming payload (XML error: Invalid character at line 1921, column 41) at client.php:124

Did you solve your problem?
Could someone tell me what is causing this error and/or how to solve it?

Thank you!


Regards,

Jeferson Oliveira
Brazil

gggeek
30-10-08, 06:28 AM
@ leojiang: Sorry to chime in so late, but anyway:
PHP 5.2.2 has a known bug in handling the RAW_POST_DATA variable, which is used by the phpxmlrpc server to receive the incoming xml payload (and incidentally, by pear::xmllrpc and many other php webservice libraries).
It has been fixed in php 5.2.3, and in later versions of the phpxmlrpc lib as well, so you only need to update one of the two to get it working.

jefersonfoliveira
30-10-08, 09:37 PM
@ leojiang: Sorry to chime in so late, but anyway:
PHP 5.2.2 has a known bug in handling the RAW_POST_DATA variable, which is used by the phpxmlrpc server to receive the incoming xml payload (and incidentally, by pear::xmllrpc and many other php webservice libraries).
It has been fixed in php 5.2.3, and in later versions of the phpxmlrpc lib as well, so you only need to update one of the two to get it working.

I am running PHP 5.2.5. After read your comment, I have downloaded PHPXMLRPC version 2.2.1 and updated the files xmlrpc.inc.php and xmlrpcs.inc.php in the xmlrpc\PHPXMLRPC folder, but still no success.

Analyzing the XMLs returned in the error message (with debug = 1) I have percepted that the error is in the handling of the special characters in upper case in the Mantis issues summary.

If the issue summary contains, for example, the portuguese word, "GERAÇÃO" the error occurs in that line of the XML, but if I change the Mantis summary for, "GERAçãO", no errors of that kind anymore.

So, my question is how to correctly handle character sets between Mantis and dotProject. Is it a dotProject configuration, or is it something specific to the integration process?

Thank you!


Regards,

Jeferson Oliveira
Brazil

gggeek
31-10-08, 06:20 PM
@jefersonfoliveira: Do you know if dotproject is configured to handle data in UTF8 format, internally? And mantis?

If it is, you need to add one line to the inc.php file in the phpxmlrpc folder (just after inclusion of the phpxmlrpc libs):

$GLOBALS['xmlrpc_internalencoding']='UTF-8';

Please note that this might need to be done on the mantis side, on the dp side or both sides. I have not yet had time to do research about the mantis and dp configs to find out the character set in use - but I plan to do so in the future, and any testing is welcome.

jefersonfoliveira
05-11-08, 02:25 AM
Do you know if dotproject is configured to handle data in UTF8 format, internally?


I don't know. How do I check this in dotProject?



And mantis?

Yes. Since version 1.1.x Mantis uses UTF8 as the default charset.



If it is, you need to add one line to the inc.php file in the phpxmlrpc folder (just after inclusion of the phpxmlrpc libs):

$GLOBALS['xmlrpc_internalencoding']='UTF-8';

Great! Worked fine!



Please note that this might need to be done on the mantis side, on the dp side or both sides.

Just added the line in the inc.php that is located in the "common" folder (\xmlrpc\PHPXMLRPC).

Thank you so much gggeek!


Regards,

Jeferson Oliveira
Brazil

aCCuReRaS
15-11-08, 09:32 AM
Hi Guys,

I receive this error: Error: [104] Received from server invalid compressed HTTP at client.php:124
The PHPXMLRPC package is already upgraded to the latest version.

Anyone an idea what's wrong? Can't find a thing on the internet about this...

dotProject Version: 2.1.2
MySQL Version: 5.0.41
PHP Version: 5.2.6
Operating System: Windows Vista SP1
Mantis Version: 1.1.4

My debug info:
---GOT---
HTTP/1.0 200 OK
Date: Fri, 14 Nov 2008 23:26:13 GMT
Connection: close
X-Powered-By: PHP/5.2.6
Set-Cookie: PHPSESSID=f4eaa7a5826a7efb284d418a379c2a83; path=/
Last-Modified: Thu, 12 Apr 2007 12:47:10 GMT
Cache-Control: private, must-revalidate
Expires: Fri, 14 Nov 2008 23:26:13 GMT
Content-Type: text/xml
Content-Encoding: gzip
Vary: Accept-Encoding
Content-Length: 172


�������mO1Â0Üû�¨Àec0éÀÄJ_��H�SÅIÅóI«PÅä»óùlcûò½)�| ¬÷»¦nu��Ò3ØÉX¨w�ûTêhú<qI1ß�.F¥¨��'=�NÁÂÌW;:NúÐ4@XC`�®ð¾9]��Û$�U}æÂ�UY(*ÃBT�AXÿ�ÀrtõÓ\ÿ�ÍÇoó-.ä��
---END---

HEADER: date: Fri, 14 Nov 2008 23:26:13 GMT
HEADER: connection: close
HEADER: x-powered-by: PHP/5.2.6
HEADER: set-cookie: PHPSESSID=f4eaa7a5826a7efb284d418a379c2a83; path=/
HEADER: last-modified: Thu, 12 Apr 2007 12:47:10 GMT
HEADER: cache-control: private, must-revalidate
HEADER: expires: Fri, 14 Nov 2008 23:26:13 GMT
HEADER: content-type: text/xml
HEADER: content-encoding: gzip
HEADER: vary: Accept-Encoding
HEADER: content-length: 172
COOKIE: PHPSESSID=f4eaa7a5826a7efb284d418a379c2a83

---GOT---
HTTP/1.0 200 OK
Date: Fri, 14 Nov 2008 23:26:13 GMT
Connection: close
X-Powered-By: PHP/5.2.6
Set-Cookie: PHPSESSID=d6f1eff205afe7dc6f5ba4bbe2b3ad21; path=/
Last-Modified: Thu, 12 Apr 2007 12:47:10 GMT
Cache-Control: private, must-revalidate
Expires: Fri, 14 Nov 2008 23:26:13 GMT
Content-Type: text/xml
Content-Encoding: gzip
Vary: Accept-Encoding
Content-Length: 172


�������mO1Â0Üû�¨Àec0éÀÄJ_��H�SÅIÅóI«PÅä»óùlcûò½)�| ¬÷»¦nu��Ò3ØÉX¨w�ûTêhú<qI1ß�.F¥¨��'=�NÁÂÌW;:NúÐ4@XC`�®ð¾9]��Û$�U}æÂ�UY(*ÃBT�AXÿ�ÀrtõÓ\ÿ�ÍÇoó-.ä��
---END---

HEADER: date: Fri, 14 Nov 2008 23:26:13 GMT
HEADER: connection: close
HEADER: x-powered-by: PHP/5.2.6
HEADER: set-cookie: PHPSESSID=d6f1eff205afe7dc6f5ba4bbe2b3ad21; path=/
HEADER: last-modified: Thu, 12 Apr 2007 12:47:10 GMT
HEADER: cache-control: private, must-revalidate
HEADER: expires: Fri, 14 Nov 2008 23:26:13 GMT
HEADER: content-type: text/xml
HEADER: content-encoding: gzip
HEADER: vary: Accept-Encoding
HEADER: content-length: 172
COOKIE: PHPSESSID=d6f1eff205afe7dc6f5ba4bbe2b3ad21

gggeek
15-11-08, 07:46 PM
@accureras: can you try changing the constructor of the xmlrpc client so that it declares no support for compressed responses?

in file client.php

function createClient($path, $host, $port=80,$method='http'){
$this->_client_obj = new xmlrpc_client($path, $host, $port, $method);
$this->_client_obj->setdebug(0);
$this->_client_obj->setAcceptedCompression('');
}

aCCuReRaS
15-11-08, 10:15 PM
thanks, this works.

But now I run into the next problem:

Error: [800] Invalid user and/or pass at client.php:125

Altough, I have identical user accounts in both systems.

Debug info:
---GOT---
HTTP/1.0 200 OK
Date: Sat, 15 Nov 2008 12:26:50 GMT
Connection: close
X-Powered-By: PHP/5.2.6
Set-Cookie: PHPSESSID=e77993f0c2c7f6fd2b19e28d993e0b5f; path=/
Last-Modified: Thu, 12 Apr 2007 12:47:10 GMT
Cache-Control: private, must-revalidate
Expires: Sat, 15 Nov 2008 12:26:50 GMT
Content-Type: text/xml
Vary: Accept-Charset
Content-Length: 282


<?xml version="1.0"?>
<methodResponse>
<fault>
<value>
<struct><member><name>faultCode</name>
<value><int>800</int></value>
</member>
<member>
<name>faultString</name>
<value><string>Invalid user and/or pass</string></value>
</member>
</struct>
</value>
</fault>
</methodResponse>
---END---
HEADER: date: Sat, 15 Nov 2008 12:26:50 GMT
HEADER: connection: close
HEADER: x-powered-by: PHP/5.2.6
HEADER: set-cookie: PHPSESSID=e77993f0c2c7f6fd2b19e28d993e0b5f; path=/
HEADER: last-modified: Thu, 12 Apr 2007 12:47:10 GMT
HEADER: cache-control: private, must-revalidate
HEADER: expires: Sat, 15 Nov 2008 12:26:50 GMT
HEADER: content-type: text/xml
HEADER: vary: Accept-Charset
HEADER: content-length: 282
COOKIE: PHPSESSID=e77993f0c2c7f6fd2b19e28d993e0b5f
---PARSED---
xmlrpcval::__set_state(array(
'me' =>
array (
'struct' =>
array (
'faultCode' =>
xmlrpcval::__set_state(array(
'me' =>
array (
'int' => 800,
),
'mytype' => 1,
'_php_class' => NULL,
)),
'faultString' =>
xmlrpcval::__set_state(array(
'me' =>
array (
'string' => 'Invalid user and/or pass',
),
'mytype' => 1,
'_php_class' => NULL,
)),
),
),
'mytype' => 3,
'_php_class' => NULL,
))
---END------GOT---
HTTP/1.0 200 OK
Date: Sat, 15 Nov 2008 12:26:51 GMT
Connection: close
X-Powered-By: PHP/5.2.6
Set-Cookie: PHPSESSID=1d6a95c8b939df4755d128df89d398bb; path=/
Last-Modified: Thu, 12 Apr 2007 12:47:10 GMT
Cache-Control: private, must-revalidate
Expires: Sat, 15 Nov 2008 12:26:51 GMT
Content-Type: text/xml
Vary: Accept-Charset
Content-Length: 282


<?xml version="1.0"?>
<methodResponse>
<fault>
<value>
<struct><member><name>faultCode</name>
<value><int>800</int></value>
</member>
<member>
<name>faultString</name>
<value><string>Invalid user and/or pass</string></value>
</member>
</struct>
</value>
</fault>
</methodResponse>
---END---
HEADER: date: Sat, 15 Nov 2008 12:26:51 GMT
HEADER: connection: close
HEADER: x-powered-by: PHP/5.2.6
HEADER: set-cookie: PHPSESSID=1d6a95c8b939df4755d128df89d398bb; path=/
HEADER: last-modified: Thu, 12 Apr 2007 12:47:10 GMT
HEADER: cache-control: private, must-revalidate
HEADER: expires: Sat, 15 Nov 2008 12:26:51 GMT
HEADER: content-type: text/xml
HEADER: vary: Accept-Charset
HEADER: content-length: 282
COOKIE: PHPSESSID=1d6a95c8b939df4755d128df89d398bb
---PARSED---
xmlrpcval::__set_state(array(
'me' =>
array (
'struct' =>
array (
'faultCode' =>
xmlrpcval::__set_state(array(
'me' =>
array (
'int' => 800,
),
'mytype' => 1,
'_php_class' => NULL,
)),
'faultString' =>
xmlrpcval::__set_state(array(
'me' =>
array (
'string' => 'Invalid user and/or pass',
),
'mytype' => 1,
'_php_class' => NULL,
)),
),
),
'mytype' => 3,
'_php_class' => NULL,
))
---END---Error: [800] Invalid user and/or pass at client.php:125

gggeek
17-11-08, 03:45 AM
@accureras: does your username or password contain non-ascii characters? If so, it might simply be the case of bad encoding - see the previous posts in this thread for a fix.

If you want to have even more debug of the xmlrpc process, you can have the server include a dump of the incoming call as part of the response, inside an xml comment. The client will then add this dump to its debug message.

To enable it, change the code of the server constructor in the server.php file:

function startServer(){
$this->_server = new xmlrpc_server($this->_functions, false);
$this->_server->setdebug(3); // was 0

$this->_server->service();
}

aCCuReRaS
18-11-08, 09:33 PM
No success.
I enabled level 3 debugging and compared the details provided in de xml file directly with the details in the database, and they are identical.

The UTF-8 is also set, and I also tried very simple usernames/passwords, with only text, no special chars.

---GOT---
HTTP/1.0 200 OK
Date: Tue, 18 Nov 2008 11:28:05 GMT
Connection: close
X-Powered-By: PHP/5.2.6
Set-Cookie: PHPSESSID=13b34632b72bd7d11ce592b2b8df6f4b; path=/
Last-Modified: Thu, 12 Apr 2007 12:47:10 GMT
Cache-Control: private, must-revalidate
Expires: Tue, 18 Nov 2008 11:28:05 GMT
Content-Type: text/xml
Vary: Accept-Charset
Content-Length: 2348


<?xml version="1.0"?>
<!-- SERVER DEBUG INFO (BASE64 ENCODED):
KysrR09UKysrCjw/eG1sIHZlcnNpb249IjEuMCI/Pgo8bWV0aG9kQ2FsbD4KPG1ldGhvZE5hbWU+TWFudGlzUlBDPC 9tZXRob2ROYW1lPgo8cGFyYW1zPgo8cGFyYW0+Cjx2YWx1ZT48 c3RyaW5nPnJ1dGdlcjwvc3RyaW5nPjwvdmFsdWU+CjwvcGFyYW 0+CjxwYXJhbT4KPHZhbHVlPjxzdHJpbmc+MDk4ZjZiY2Q0NjIx ZDM3M2NhZGU0ZTgzMjYyN2I0ZjY8L3N0cmluZz48L3ZhbHVlPg o8L3BhcmFtPgo8cGFyYW0+Cjx2YWx1ZT48c3RyaW5nPmdldFVz ZXJBY2Nlc3NMZXZlbDwvc3RyaW5nPjwvdmFsdWU+CjwvcGFyYW 0+CjxwYXJhbT4KPHZhbHVlPjxzdHJpbmc+cnV0Z2VyPC9zdHJp bmc+PC92YWx1ZT4KPC9wYXJhbT4KPC9wYXJhbXM+CjwvbWV0aG 9kQ2FsbD4KKysrRU5EKysrCgpIRUFERVI6IEFjY2VwdC1DaGFy c2V0OiBVVEYtOCxJU08tODg1OS0xLFVTLUFTQ0lJCkhFQURFUj ogQWNjZXB0LUVuY29kaW5nOiAKSEVBREVSOiBDb250ZW50LVR5 cGU6IHRleHQveG1sCkhFQURFUjogQ29udGVudC1MZW5ndGg6ID M2NApIRUFERVI6IEhvc3Q6IHRtYW50aXMuZXNvbC5iZTo4MApI RUFERVI6IFVzZXItQWdlbnQ6IFhNTC1SUEMgZm9yIFBIUCAyLj IuMQoKKysrUEFSU0VEKysrCnhtbHJwY21zZzo6X19zZXRfc3Rh dGUoYXJyYXkoCiAgICdwYXlsb2FkJyA9PiBOVUxMLAogICAnbW V0aG9kbmFtZScgPT4gJ01hbnRpc1JQQycsCiAgICdwYXJhbXMn ID0+IAogIGFycmF5ICgKICAgIDAgPT4gCiAgICB4bWxycGN2YW w6Ol9fc2V0X3N0YXRlKGFycmF5KAogICAgICAgJ21lJyA9PiAK ICAgICAgYXJyYXkgKAogICAgICAgICdzdHJpbmcnID0+ICdydX RnZXInLAogICAgICApLAogICAgICAgJ215dHlwZScgPT4gMSwK ICAgICAgICdfcGhwX2NsYXNzJyA9PiBOVUxMLAogICAgKSksCi AgICAxID0+IAogICAgeG1scnBjdmFsOjpfX3NldF9zdGF0ZShh cnJheSgKICAgICAgICdtZScgPT4gCiAgICAgIGFycmF5ICgKIC AgICAgICAnc3RyaW5nJyA9PiAnMDk4ZjZiY2Q0NjIxZDM3M2Nh ZGU0ZTgzMjYyN2I0ZjYnLAogICAgICApLAogICAgICAgJ215dH lwZScgPT4gMSwKICAgICAgICdfcGhwX2NsYXNzJyA9PiBOVUxM LAogICAgKSksCiAgICAyID0+IAogICAgeG1scnBjdmFsOjpfX3 NldF9zdGF0ZShhcnJheSgKICAgICAgICdtZScgPT4gCiAgICAg IGFycmF5ICgKICAgICAgICAnc3RyaW5nJyA9PiAnZ2V0VXNlck FjY2Vzc0xldmVsJywKICAgICAgKSwKICAgICAgICdteXR5cGUn ID0+IDEsCiAgICAgICAnX3BocF9jbGFzcycgPT4gTlVMTCwKIC AgICkpLAogICAgMyA9PiAKICAgIHhtbHJwY3ZhbDo6X19zZXRf c3RhdGUoYXJyYXkoCiAgICAgICAnbWUnID0+IAogICAgICBhcn JheSAoCiAgICAgICAgJ3N0cmluZycgPT4gJ3J1dGdlcicsCiAg ICAgICksCiAgICAgICAnbXl0eXBlJyA9PiAxLAogICAgICAgJ1 9waHBfY2xhc3MnID0+IE5VTEwsCiAgICApKSwKICApLAogICAn ZGVidWcnID0+IDAsCiAgICdjb250ZW50X3R5cGUnID0+ICd0ZX h0L3htbCcsCikpCisrK0VORCsrKwo=
-->
<methodResponse>
<fault>
<value>
<struct><member><name>faultCode</name>
<value><int>800</int></value>
</member>
<member>
<name>faultString</name>
<value><string>Invalid user and/or pass</string></value>
</member>
</struct>
</value>
</fault>
</methodResponse>
---END---
HEADER: date: Tue, 18 Nov 2008 11:28:05 GMT
HEADER: connection: close
HEADER: x-powered-by: PHP/5.2.6
HEADER: set-cookie: PHPSESSID=13b34632b72bd7d11ce592b2b8df6f4b; path=/
HEADER: last-modified: Thu, 12 Apr 2007 12:47:10 GMT
HEADER: cache-control: private, must-revalidate
HEADER: expires: Tue, 18 Nov 2008 11:28:05 GMT
HEADER: content-type: text/xml
HEADER: vary: Accept-Charset
HEADER: content-length: 2348
COOKIE: PHPSESSID=13b34632b72bd7d11ce592b2b8df6f4b
---SERVER DEBUG INFO (DECODED) ---
+++GOT+++
<?xml version="1.0"?>
<methodCall>
<methodName>MantisRPC</methodName>
<params>
<param>
<value><string>rutger</string></value>
</param>
<param>
<value><string>098f6bcd4621d373cade4e832627b4f6</string></value>
</param>
<param>
<value><string>getUserAccessLevel</string></value>
</param>
<param>
<value><string>rutger</string></value>
</param>
</params>
</methodCall>
+++END+++

HEADER: Accept-Charset: UTF-8,ISO-8859-1,US-ASCII
HEADER: Accept-Encoding:
HEADER: Content-Type: text/xml
HEADER: Content-Length: 364
HEADER: Host: tmantis.***
HEADER: User-Agent: XML-RPC for PHP 2.2.1

+++PARSED+++
xmlrpcmsg::__set_state(array(
'payload' => NULL,
'methodname' => 'MantisRPC',
'params' =>
array (
0 =>
xmlrpcval::__set_state(array(
'me' =>
array (
'string' => 'rutger',
),
'mytype' => 1,
'_php_class' => NULL,
)),
1 =>
xmlrpcval::__set_state(array(
'me' =>
array (
'string' => '098f6bcd4621d373cade4e832627b4f6',
),
'mytype' => 1,
'_php_class' => NULL,
)),
2 =>
xmlrpcval::__set_state(array(
'me' =>
array (
'string' => 'getUserAccessLevel',
),
'mytype' => 1,
'_php_class' => NULL,
)),
3 =>
xmlrpcval::__set_state(array(
'me' =>
array (
'string' => 'rutger',
),
'mytype' => 1,
'_php_class' => NULL,
)),
),
'debug' => 0,
'content_type' => 'text/xml',
))
+++END+++

---END---
---PARSED---
xmlrpcval::__set_state(array(
'me' =>
array (
'struct' =>
array (
'faultCode' =>
xmlrpcval::__set_state(array(
'me' =>
array (
'int' => 800,
),
'mytype' => 1,
'_php_class' => NULL,
)),
'faultString' =>
xmlrpcval::__set_state(array(
'me' =>
array (
'string' => 'Invalid user and/or pass',
),
'mytype' => 1,
'_php_class' => NULL,
)),
),
),
'mytype' => 3,
'_php_class' => NULL,
))
---END---Error: [800] Invalid user and/or pass at client.php:125

gggeek
20-11-08, 08:12 PM
@accureras: reading your communication trace, I see the password used is "098f6bcd4621d373cade4e832627b4f6". Is this correct? (I would not qualify that as 'simple'... ;)

If it is indeed correct, the only thing that I think might interfere with the communication is that if both apps are on the same server and share the same php session cookie, the auth might be impaired.

Please note that I never actually even tried to use the plugin (I have no dp install to test it on, currently), so I am just trying to guess based on theory...

aCCuReRaS
21-11-08, 04:19 AM
The password is correct, as it is the MD5 hash. I compared the hash with the stored password in de 2 databases, and it matches. So, no clue what's wrong.
I even changed the session save path from mantis, but then it's still not working :-/

vkulkov
22-11-08, 04:31 AM
The download link to the dotProject/Mantis Integration Module developed at NCSU is gone! I tried:

http://blogs.lib.ncsu.edu/page/web?entry=mantis_and_dotproject_connection_module
http://itdapps.ncsu.edu/downloads.php

and I get redirected to http://webapps.ncsu.edu/ot/ that has no information on the dotProject/Mantis Integration Module whatsoever?

Any ideas anyone? Is this module still available for download somewhere? Please help!

pavanesh_soni
22-11-08, 08:00 PM
Dear sir,
When I tried to install mantis 1.1.4 then it is showing
Error message-module could not get setup file.
Second problem occured when i am trying to access "Permission" and "Myinfo"
block...

aCCuReRaS
22-11-08, 08:12 PM
If you have problems with Mantis installations, you can better post your questions on the Mantis forums: http://www.mantisbt.org/forums/

xav
15-04-09, 07:58 PM
The download link to the dotProject/Mantis Integration Module developed at NCSU is gone! I tried:

http://blogs.lib.ncsu.edu/page/web?entry=mantis_and_dotproject_connection_module
http://itdapps.ncsu.edu/downloads.php

and I get redirected to http://webapps.ncsu.edu/ot/ that has no information on the dotProject/Mantis Integration Module whatsoever?

Any ideas anyone? Is this module still available for download somewhere? Please help!

I cannot find this module too.
The Mantis Integration wiki (http://docs.dotproject.net/index.php?title=Mantis_Integration) does not help either.

jfaustin : Can you publish your module again please ?

Thanks.

pelucre
15-04-09, 10:40 PM
Hello,

I also search this module

rbarreto
21-05-09, 09:52 PM
I had the same problem that aCCuReRaS. The username and password are the same in both software, I can't understand. Somebody help me? The following error:

---SENDING---
POST /mantis/xmlrpc/dotproject/dpserver.php HTTP/1.0
User-Agent: XML-RPC for PHP 2.0
Host: localhost
Accept-Encoding: gzip, deflate
Accept-Charset: UTF-8,ISO-8859-1,US-ASCII
Content-Type: text/xml
Content-Length: 363

<?xml version="1.0"?>
<methodCall>
<methodName>MantisRPC</methodName>
<params>
<param>
<value><string>rafael</string></value>
</param>
<param>
<value><string>2e674dbb1a4873e7dfe5cc936828b3ad</string></value>
</param>
<param>
<value><string>getMantisBugByProjectId</string></value>
</param>
<param>
<value><string></string></value>
</param>
</params>
</methodCall>
---END---

---GOT---
HTTP/1.1 200 OK
Date: Thu, 21 May 2009 11:43:50 GMT
Server: Apache/2.2.11 (Ubuntu) PHP/5.2.6-3ubuntu4.1 with Suhosin-Patch mod_perl/2.0.4 Perl/v5.10.0
X-Powered-By: PHP/5.2.6-3ubuntu4.1
Set-Cookie: PHPSESSID=5c36d986aeb1380818824c6024b8b64b; path=/
Cache-Control: no-store, no-cache, must-revalidate
Last-Modified: Thu, 21 May 2009 11:43:51 GMT
Expires: Thu, 21 May 2009 11:43:51 GMT
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 1094
Connection: close
Content-Type: text/xml

�������ÅVI�¢X¾×¯pú45jE9aW�¬��ì7yX,>�á×Ob¡eõtLߺÉ{�_~¹³oçN»CçÙ×/äßÄ�o¯³?��N·8}Àr´)D�WÒó
÷<p
£²û×?˦<èÄÔìÞLRwY�£L)|j<î(3âpæ/¾m[aº×(¾ôÙñr-�8¢�ÇM"ß6
�?nML³kfZy��û�®º6�;{$ð
Èí�L<2É�rí3éã4Ò�*=ÉÖ�y)�}¶>ÝÎ�ú¤|�àyº³¯]G�|ø,¼È_Xx��Û`!~�åÔ¤�Vß»©xv
m¬´
V(=õ+qÛ}«$a£
bëÚÚËj¤(ÅG¯�Üc×Õ��PÊW?å�8àÈÈÏôéÒÄ\H§mj%�÷��/�¯öK�ïbøðu�w½¸çõs�WµìkXðWÂýaÙT¼±×à].�}Äk¦Î�IZ��QLÒe6m��W�¤i
�ú#14¹HYñ(ÏQ7yè.ñYä"¨�ö,
ç�}ýÑ�îùÄ¥¬:`HÞO��'tÜóÐbêЬÔxÂÓ~hÃn!ß�²5¦-�s+�9K&ñR©lHªâ¼â-ceò�F`é>��B/Biî�=á9±E�ÿ��r�za?Ó*ô½��«ñúB^2qyX�4mb�×�ëbìÛç J�(ô¬âé[ÇÍ��¸���×��,çy(2ózeâÓÈcP¸6Æ¡�-Ù`ê%Ü�ÕÏ�p��Ld�G� ×�[GÙ���*>p.s#5óé:��=Ôfd·�çL<ïtê�ý»~ØÍ0Êè¤ë5)Þ�x¨K�çMÔÛ�ïOPy�w�=^(ö±�̽pé{½ç��N êÚV)5õMo¹©?aï}��>F�+o>ÏÑ9â§ ô@��ÿæIdöE��PÞ\ã�óÔq!Õn7lþì�Óúü
øE�`æ0O�ëìó{_·<÷x?Èãå�®3Öó�Z + "<A�e�#Tµ�ì½Ô$]J�È*;��(�)~ÿKòÿ¦<Pÿ¿ß~IìÍo�½Aw�÷�øû&ºÓÏÄyuÃrZoô�K�#4�ß}sËàê+FÑçêc;1lÔçjÞë�OMö�3ºË%|ì5¦ ã¸/.{�°Ô÷��}xz�?�tWEy ïÊ"Ïʼm�¸�÷i��ÝwY�¨zÅÔß^gÙ6ݽ^��<ØÍ��ï«ú,Ϊ×��
;a6¼�{ë�ÙMøÀÙT�8¿G*/§¯bßq08�»Ã`�Ãü0(¶e9ö
?r2ìI?Ü]^ã~ñ¿��G* ��
---END---

HEADER: date: Thu, 21 May 2009 11:43:50 GMT
HEADER: server: Apache/2.2.11 (Ubuntu) PHP/5.2.6-3ubuntu4.1 with Suhosin-Patch mod_perl/2.0.4 Perl/v5.10.0
HEADER: x-powered-by: PHP/5.2.6-3ubuntu4.1
HEADER: set-cookie: PHPSESSID=5c36d986aeb1380818824c6024b8b64b; path=/
HEADER: cache-control: no-store, no-cache, must-revalidate
HEADER: last-modified: Thu, 21 May 2009 11:43:51 GMT
HEADER: expires: Thu, 21 May 2009 11:43:51 GMT
HEADER: vary: Accept-Encoding
HEADER: content-encoding: gzip
HEADER: content-length: 1094
HEADER: connection: close
HEADER: content-type: text/xml
COOKIE: PHPSESSID=5c36d986aeb1380818824c6024b8b64b

---INFLATED RESPONSE---[2346 chars]---
<?xml version="1.0"?>
<!-- SERVER DEBUG INFO (BASE64 ENCODED):
KysrR09UKysrCjw/eG1sIHZlcnNpb249IjEuMCI/Pgo8bWV0aG9kQ2FsbD4KPG1ldGhvZE5hbWU+TWFudGlzUlBDPC 9tZXRob2ROYW1lPgo8cGFyYW1zPgo8cGFyYW0+Cjx2YWx1ZT48 c3RyaW5nPnJhZmFlbDwvc3RyaW5nPjwvdmFsdWU+CjwvcGFyYW 0+CjxwYXJhbT4KPHZhbHVlPjxzdHJpbmc+MmU2NzRkYmIxYTQ4 NzNlN2RmZTVjYzkzNjgyOGIzYWQ8L3N0cmluZz48L3ZhbHVlPg o8L3BhcmFtPgo8cGFyYW0+Cjx2YWx1ZT48c3RyaW5nPmdldE1h bnRpc0J1Z0J5UHJvamVjdElkPC9zdHJpbmc+PC92YWx1ZT4KPC 9wYXJhbT4KPHBhcmFtPgo8dmFsdWU+PHN0cmluZz48L3N0cmlu Zz48L3ZhbHVlPgo8L3BhcmFtPgo8L3BhcmFtcz4KPC9tZXRob2 RDYWxsPgorKytFTkQrKysKCkhFQURFUjogVXNlci1BZ2VudDog WE1MLVJQQyBmb3IgUEhQIDIuMApIRUFERVI6IEhvc3Q6IGxvY2 FsaG9zdApIRUFERVI6IEFjY2VwdC1FbmNvZGluZzogZ3ppcCwg ZGVmbGF0ZQpIRUFERVI6IEFjY2VwdC1DaGFyc2V0OiBVVEYtOC xJU08tODg1OS0xLFVTLUFTQ0lJCkhFQURFUjogQ29udGVudC1U eXBlOiB0ZXh0L3htbApIRUFERVI6IENvbnRlbnQtTGVuZ3RoOi AzNjMKCisrK1BBUlNFRCsrKwp4bWxycGNtc2c6Ol9fc2V0X3N0 YXRlKGFycmF5KAogICAncGF5bG9hZCcgPT4gTlVMTCwKICAgJ2 1ldGhvZG5hbWUnID0+ICdNYW50aXNSUEMnLAogICAncGFyYW1z JyA9PiAKICBhcnJheSAoCiAgICAwID0+IAogICAgeG1scnBjdm FsOjpfX3NldF9zdGF0ZShhcnJheSgKICAgICAgICdtZScgPT4g CiAgICAgIGFycmF5ICgKICAgICAgICAnc3RyaW5nJyA9PiAncm FmYWVsJywKICAgICAgKSwKICAgICAgICdteXR5cGUnID0+IDEs CiAgICAgICAnX3BocF9jbGFzcycgPT4gTlVMTCwKICAgICkpLA ogICAgMSA9PiAKICAgIHhtbHJwY3ZhbDo6X19zZXRfc3RhdGUo YXJyYXkoCiAgICAgICAnbWUnID0+IAogICAgICBhcnJheSAoCi AgICAgICAgJ3N0cmluZycgPT4gJzJlNjc0ZGJiMWE0ODczZTdk ZmU1Y2M5MzY4MjhiM2FkJywKICAgICAgKSwKICAgICAgICdteX R5cGUnID0+IDEsCiAgICAgICAnX3BocF9jbGFzcycgPT4gTlVM TCwKICAgICkpLAogICAgMiA9PiAKICAgIHhtbHJwY3ZhbDo6X1 9zZXRfc3RhdGUoYXJyYXkoCiAgICAgICAnbWUnID0+IAogICAg ICBhcnJheSAoCiAgICAgICAgJ3N0cmluZycgPT4gJ2dldE1hbn Rpc0J1Z0J5UHJvamVjdElkJywKICAgICAgKSwKICAgICAgICdt eXR5cGUnID0+IDEsCiAgICAgICAnX3BocF9jbGFzcycgPT4gTl VMTCwKICAgICkpLAogICAgMyA9PiAKICAgIHhtbHJwY3ZhbDo6 X19zZXRfc3RhdGUoYXJyYXkoCiAgICAgICAnbWUnID0+IAogIC AgICBhcnJheSAoCiAgICAgICAgJ3N0cmluZycgPT4gJycsCiAg ICAgICksCiAgICAgICAnbXl0eXBlJyA9PiAxLAogICAgICAgJ1 9waHBfY2xhc3MnID0+IE5VTEwsCiAgICApKSwKICApLAogICAn ZGVidWcnID0+IDAsCiAgICdjb250ZW50X3R5cGUnID0+ICd0ZX h0L3htbCcsCikpCisrK0VORCsrKwo=
-->
<methodResponse>
<fault>
<value>
<struct><member><name>faultCode</name>
<value><int>800</int></value>
</member>
<member>
<name>faultString</name>
<value><string>Invalid user and/or pass</string></value>
</member>
</struct>
</value>
</fault>
</methodResponse>
---END---

---PARSED---
xmlrpcval::__set_state(array(
'me' =>
array (
'struct' =>
array (
'faultCode' =>
xmlrpcval::__set_state(array(
'me' =>
array (
'int' => 800,
),
'mytype' => 1,
'_php_class' => NULL,
)),
'faultString' =>
xmlrpcval::__set_state(array(
'me' =>
array (
'string' => 'Invalid user and/or pass',
),
'mytype' => 1,
'_php_class' => NULL,
)),
),
),
'mytype' => 3,
'_php_class' => NULL,
))
---END---

Error: [800] Invalid user and/or pass at client.php:124


Thanks.

gggeek
22-05-09, 06:23 PM
@rbarreto: to troubleshoot login problems, check out function MantisLogin(), in dpserver.php line 40 (no.core version). As far as I can tell, the xmlrpc part of the process was fine, but the auth did not work out well.
You can add inside that function some debug messages that get saved to a file (echoing them to screen will corrupt the xmlrcp output) to find out more.

rbarreto
26-05-09, 05:30 AM
gggeek,

I think that the problem is in following line:

"if( auth_attempt_script_login($username,$password) === false ) return false;"

I added inside at the function MantisLogin() a debug message before and after these line. Puting after these line, the problem was persisted.

Any idea?

Thanks a lot and sorry me for my english isn't very well.

titounette
18-06-09, 05:49 PM
Hi everybody and particularly RBARRETO!!

Already sorry for my english which isn't well!!!


I meet the same problem as you!! Could you solve your problem???

Thanks for your answer

Guitar_Men
30-06-09, 06:25 AM
Hi for everyone and forgive my english...:cool: :cool:
I trying to download mantis integration module on sourceforge link (http://sourceforge.net/tracker/index.php?func=detail&aid=1698458&group_id=70930&atid=529515) but the zip file (mantis.integration_20070418.zip) is corrupted, anybody have this module or correct link to download this ??

Thanks!!!

gggeek
30-06-09, 05:46 PM
@Guitar_Men try downloading it again. It works fine for me...

gggeek
30-06-09, 05:58 PM
@rbarreto, @titounette: if using php5, you might try the latest version of xmlrpc.inc and xmlrpcs.inc from the svn: http://phpxmlrpc.svn.sourceforge.net/viewvc/phpxmlrpc/

It is basically the same as release 2.2.2, but with assign-by-ref replaced with plain assignment. I have found some edge cases where it makes a difference.

Guitar_Men
30-06-09, 10:59 PM
@Guitar_Men try downloading it again. It works fine for me...

Tanks gggeek its works for me too, but after the instalation when a try to acess the module, dotProject show this message:

Warning: require_once(../xmlrpc/PHPXMLRPC/client.php) [function.require-once]: failed to open stream: No such file or directory in C:\wamp\www\dotproject\modules\mantis\mantis.confi g.php on line 3

Fatal error: require_once() [function.require]: Failed opening required '../xmlrpc/PHPXMLRPC/client.php' (include_path='.;C:\php5\pear') in C:\wamp\www\dotproject\modules\mantis\mantis.confi g.php on line 3

rbarreto
30-06-09, 11:29 PM
@rbarreto, @titounette: if using php5, you might try the latest version of xmlrpc.inc and xmlrpcs.inc from the svn: http://phpxmlrpc.svn.sourceforge.net/viewvc/phpxmlrpc/

It is basically the same as release 2.2.2, but with assign-by-ref replaced with plain assignment. I have found some edge cases where it makes a difference.

I tried to use the trunk version of phpxmlrpc, the lastest version, but the problem persists:

"Error: [800] Invalid user and/or pass at client.php:124"

I have no ideia to resolve. =/

jdkelsey
05-08-09, 01:29 AM
I am getting the same error


Error: [800] Invalid user and/or pass at client.php:125



does anyone know more about how this works? I assumed that if there was only 1 user in the project (mantis and dot-project) it would work. Do I need the user table for mantis to match that in dot project exactly? It is difficult to get all my coworkers to change their passwords, especially bosses who rarely use it. and I am worried I will go through this process for a waste of time.

jdkelsey
06-08-09, 03:19 AM
I was getting the same user/password error as the rest of you until I tried

Morgg's fix from page 2 of this thread (http://www.dotproject.net/vbulletin/showthread.php?t=6765&page=2)... it worked!! although in my version of mantis the line that needs to be commented in core/authentication_api.php in Mantis folder
is line 227 "continue;"


from Morgg's post:

"After some tracing throught Mantis code I found out the problem was in auth_does_password_match() function, returning false even if the incoming password from dotproject (the MD5 hash of the real password) was the same as the one stored in Mantis database.

Reading code comments I learned the developer had stopped support for PLAIN password authentication method, and that's the one that dotproject-mantis module is using. Actually it is the only one it can use, since the module can only know the MD5 hash and not the real password. The fact that you can login with just the MD5 hash can be considered a weakness, but it is necessary for the integration module to work.

So, the solution is just to re-activate the support for PLAIN authentication, commenting line 231 of core/authentication_api.php in Mantis folder. It's the one in auth_does_password_match() function that shows "continue;" inside an "if" statement.

And voilà! It works again."

gggeek
06-08-09, 06:48 PM
+1 jdkelsey - I think you've made a lot of people happy around here...

Maybe we can try to open a feature request in mantis upstream so that mantis allows PLAIN as auth method when invoked from plugins (something like changing the login function to

function auth_does_password_match( $p_user_id, $p_test_password, $p_login_method = null )

CasN
07-08-09, 07:37 PM
Mantis has a function which allows for login without password, initially intended for scripting. Works excellent.
Code would be something like:
$name = the userid that want to logon

$ok=auth_attempt_script_login( $name );
if ( auth_is_user_authenticated() ) {
print_header_redirect( 'main_page.php' );
} else {
print_header_redirect( 'signup_page.php' );
}

gggeek
10-08-09, 06:24 PM
Good idea!
While at it, we might even take advantage of mci_check_login() function.
All we need is somebody volunteering to upgrade the existing plugin.

In the past I thought I might take over its maintenance, but I did not like the code and in the end coded instead an xmlrpc layer on top of the existing Mantis SOAP api [http://gggeek.altervista.org/2008/10/30/an-xmlrpc-connector-for-mantis]. As the soap API is actively maintained, I think it is a better path to success.

If anybody volunteers, another option would be to add the necessary dP logic to that plugin instead of maintaining the original one...

konrad.lang
19-04-10, 09:28 PM
Hello,

I am currently working on the integration of dotProject & Mantis and would appreciate if it is possible to get the files referred to in this thread somewhere to download as the given links are not working any more?

cheers,
konrad

CasN
22-04-10, 06:18 PM
please look here http://www.nuy.info/downloads

soul
25-05-10, 04:28 AM
hi,
can anyboby help me? when I can see de mantis tab in DP, the error is:
---SENDING---
POST /mantis/xmlrpc/dotproject/dpserver.php HTTP/1.0
User-Agent: XML-RPC for PHP 2.0
Host: 192.168.5.21
Accept-Encoding: gzip, deflate
Accept-Charset: UTF-8,ISO-8859-1,US-ASCII
Content-Type: text/xml
Content-Length: 430

<?xml version="1.0"?>
<methodCall>
<methodName>MantisRPC</methodName>
<params>
<param>
<value><string>alma</string></value>
</param>
<param>
<value><string>d157bc16f6d5b38587a9bbcc96d5fecb</string></value>
</param>
<param>
<value><string>checkUserPermForProject</string></value>
</param>
<param>
<value><string>alma</string></value>
</param>
<param>
<value><string>Actividades_CRM</string></value>
</param>
</params>
</methodCall>
---END---

---GOT---
HTTP/1.1 200 OK
Date: Mon, 24 May 2010 18:21:05 GMT
Server: Apache/2.2.12 (Ubuntu)
X-Powered-By: PHP/5.2.10-2ubuntu6.4
Set-Cookie: PHPSESSID=add415be9ad03239ba8ea90c70d12a26; path=/; HttpOnly
Cache-Control: no-store, no-cache, must-revalidate
Last-Modified: Mon, 24 May 2010 18:21:05 GMT
Expires: Mon, 24 May 2010 18:21:05 GMT
X-Frame-Options: DENY
X-Content-Security-Policy: allow 'self'; options inline-script eval-script; frame-ancestors 'none'
Content-Encoding: gzip
Vary: Accept-Encoding
Content-Length: 1346
Connection: close
Content-Type: text/html;charset=utf-8

�������´VÝnÔ8¾n�â.
ZOJ[ÊtfV¥A-³í i¥Ê±�Ä*Û�!�˽ث½ÛÛ¾Ø'±,,+5�Ø>ç|ßùuw�_MßLÆ�»BÁäÕ�'G��¼~xDÈñô~}6=}qÔ�©¡¥�Nê �*BÆg¹sU��ù|ÍFÚddzNÞVì�»×Ð*iFÜñ`´9ð'þGP>ÚÜ(Y^�jX·TÂæB¸Ü²ÃÀ��#ÌÚr#Òá
5~¼Å{ûÑn´���NZ²(�©áÚUF_ Öè.RZ+56��³ÌÈÊ*Û¿¢3Úî h�Õ4ãç¸{Ñî�wÂpscC¦÷¸fu!J)ºÆÞ�wwæF:q/4^�WQÎe�õ{Õâàýà7Ò÷ßona8�ÖÓ*�£àÝ ÅÛZÎ�Á�. �
=ÑX»êû�Ë©±Â
k��û�w����tÍ@©CFY.¾¤päC�n´ú½(äÒ`ìåL|3äñwh�j Ù5�S]>�í8¥KØîÅ=�÷ûÛq¿· OO§��µ�˵q¬v ÑÀªÈ¾\Q²ÀÒ°$¥3/á¿U¡6'd¶vn£jX¾¥U¥$£¾'�®DÙ�rÑÖîþ�À(,�BéÓ�Ë�i¦ �y¸èL}G;$FÏ*0�-Þe¥êL�Q�W?7¼|ayæ?�ø�µµ�þ°�¼åÜ��V�Ò®7¿ÒíÖ°J÷'QR È�0]�õ+¬uî
áÓàXͨ¥©�^��Õn2ZrEÁÁG;?�(½¢�Û4I;n�æKüárTÉ ¬J¤~ÄÑ.;Åòr&Åü²Bg|�ñH$Úpa�A/@=·J/<©3;°ka¾Ê²ë�öüRéLG�L}þ�â��F�Äøõ=�m�ÆGG%�)jí0�K îò]$Ã�R¶¢ #< b/fðá+¹T�"l�!N&xÇNO^�Áøüüå9ÜÝéÅX+ÁµFu4¨VÚ64��ZiÓ7o±gRªå3 ï§�Å[�õ«�Zÿ¨Ó6�±a�6¸5«�r*\Ü��{änÜÛÛéÃ]CNghÙ©Ê�º6pñË °ËÒÑ�ÿ�]�Ë`Dkªð�:¤bp VºäªÑ:]6zÂÌ�|,ö*`de#³ÜuF½F�¤Jl6غO¡Â8Ì1õÃ-ï>JX¼�îñÝäáþîþ#ú8I{�ëT°d ^?��A¢ìÎÖ $b´aèz�úðjr|8ü�©Fÿ"w£ ú�[�P;�L�PXÎîæÏ�Cgn>àý�i°5�ô sj`.��÷L+µÆ�êæ̲·,µ���ºùªZ �&ô�ôo�˵ Þbbs̤�X,�#-�âå($0¿˦Ôí���j³®1gJ0æ¿�p�ßR@Y#�ÈSZ$òæ÷² Ï)C� ý»«# F¦ºúh²)8�&ð¿WnþjýCºí�MýG �\£WÖbF½C»kÒ´âªc«ÑÄ��ÔµE?Ê0¥�voA3VcP8ò�`ó¯®i¬v* ��·�}³wÖN�>z $�¸Z@¢p¸¬>¥`§Z>É�wäzw¿><?;9{êû©×�3G�5«º-ŵ¸ ¥Tfµé�¿Õ�§Ú_:��[�û�³¤��¤ý�ý��ÿÿ�'ÂâqF ��
---END---

HEADER: date: Mon, 24 May 2010 18:21:05 GMT
HEADER: server: Apache/2.2.12 (Ubuntu)
HEADER: x-powered-by: PHP/5.2.10-2ubuntu6.4
HEADER: set-cookie: PHPSESSID=add415be9ad03239ba8ea90c70d12a26; path=/; HttpOnly
HEADER: cache-control: no-store, no-cache, must-revalidate
HEADER: last-modified: Mon, 24 May 2010 18:21:05 GMT
HEADER: expires: Mon, 24 May 2010 18:21:05 GMT
HEADER: x-frame-options: DENY
HEADER: x-content-security-policy: allow 'self'; options inline-script eval-script; frame-ancestors 'none'
HEADER: content-encoding: gzip
HEADER: vary: Accept-Encoding
HEADER: content-length: 1346
HEADER: connection: close
HEADER: content-type: text/html;charset=utf-8
COOKIE: PHPSESSID=add415be9ad03239ba8ea90c70d12a26

---INFLATED RESPONSE---[2886 chars]---
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css" href="http://192.168.5.21/mantis/xmlrpc/dotproject/css/default.css" />
<script type="text/javascript" language="JavaScript"><!--
if(document.layers) {document.write("<style>td{padding:0px;}<\/style>")}
// --></script>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="Pragma-directive" content="no-cache" />
<meta http-equiv="Cache-Directive" content="no-cache" />
<meta http-equiv="Expires" content="Mon, 24 May 2010 18:21:05 GMT" />
<link rel="shortcut icon" href="/mantis/xmlrpc/dotproject/images/favicon.ico" type="image/x-icon" />
<link rel="search" type="application/opensearchdescription+xml" title="MantisBT: Text Search" href="http://192.168.5.21/mantis/xmlrpc/dotproject/browser_search_plugin.php?type=text" /> <link rel="search" type="application/opensearchdescription+xml" title="MantisBT: Issue Id" href="http://192.168.5.21/mantis/xmlrpc/dotproject/browser_search_plugin.php?type=id" /> <title>MantisBT</title>
<script type="text/javascript" src="/mantis/xmlrpc/dotproject/javascript/min/common.js"></script>
<script language="javascript">var loading_lang = "Cargando..";</script><script type="text/javascript" src="/mantis/xmlrpc/dotproject/javascript/min/ajax.js"></script>
</head>
<body>
<div align="left"><a href="my_view_page.php"><img border="0" alt="Mantis Bug Tracker" src="/mantis/xmlrpc/dotproject/images/mantis_logo.gif" /></a></div><br /><div align="center"><table class="width50" cellspacing="1"><tr><td class="form-title">APPLICATION ERROR #401</td></tr><tr><td><p class="center" style="color:red">Ha fallado la consulta a la base de datos. El error devuelto por la base de datos fue #1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SET password='d157bc16f6d5b38587a9bbcc96d5fecb' WHERE id='4'' at line 1 para la consulta: UPDATE SET password='d157bc16f6d5b38587a9bbcc96d5fecb' WHERE id='4'</p></td></tr><tr><td><p class="center">Por favor, utilice el botón "Atrás" de su navegador web para volver a la página anterior. AllÃ* puede corregir los problemas que han sido identificados en esta notificación de error o seleccionar otra acción. También puede hacer click sobre una opción de la barra de menú para ir directamente a una nueva sección.</p></td></tr></table></div><p>Previous non-fatal errors occurred. Page contents follow.</p><div style="border: solid 1px black;padding: 4px"><p style="color:red">APPLICATION WARNING #100: No se encuentra la opción de configuración 'mantis_user_table'.</p></div></body>
</html>

---END---

---SENDING---
POST /mantis/xmlrpc/dotproject/dpserver.php HTTP/1.0
User-Agent: XML-RPC for PHP 2.0
Host: 192.168.5.21
Accept-Encoding: gzip, deflate
Accept-Charset: UTF-8,ISO-8859-1,US-ASCII
Content-Type: text/xml
Content-Length: 378

<?xml version="1.0"?>
<methodCall>
<methodName>MantisRPC</methodName>
<params>
<param>
<value><string>alma</string></value>
</param>
<param>
<value><string>d157bc16f6d5b38587a9bbcc96d5fecb</string></value>
</param>
<param>
<value><string>getMantisBugByProjectName</string></value>
</param>
<param>
<value><string>Actividades_CRM</string></value>
</param>
</params>
</methodCall>
---END---

---GOT---
HTTP/1.1 200 OK
Date: Mon, 24 May 2010 18:21:05 GMT
Server: Apache/2.2.12 (Ubuntu)
X-Powered-By: PHP/5.2.10-2ubuntu6.4
Set-Cookie: PHPSESSID=b4e758be610790243a7b215501d075a3; path=/; HttpOnly
Cache-Control: no-store, no-cache, must-revalidate
Last-Modified: Mon, 24 May 2010 18:21:05 GMT
Expires: Mon, 24 May 2010 18:21:05 GMT
X-Frame-Options: DENY
X-Content-Security-Policy: allow 'self'; options inline-script eval-script; frame-ancestors 'none'
Content-Encoding: gzip
Vary: Accept-Encoding
Content-Length: 147
Connection: close
Content-Type: text/html;charset=utf-8

�������$�AÂ0 ï¼b_�Gõ�8*¡Eil¹)¡¿§×Õìì�è îb÷à â®(vàÆ9kÁº4¾¥/Ð'Êf�ëúºï8x»ó�)cWÐ��j*4s.ÓBß9¹õ4h1×& ÁFI&~´ÑÚ
4#MYZû|jIøú��ÿÿ�øõHn����
---END---

HEADER: date: Mon, 24 May 2010 18:21:05 GMT
HEADER: server: Apache/2.2.12 (Ubuntu)
HEADER: x-powered-by: PHP/5.2.10-2ubuntu6.4
HEADER: set-cookie: PHPSESSID=b4e758be610790243a7b215501d075a3; path=/; HttpOnly
HEADER: cache-control: no-store, no-cache, must-revalidate
HEADER: last-modified: Mon, 24 May 2010 18:21:05 GMT
HEADER: expires: Mon, 24 May 2010 18:21:05 GMT
HEADER: x-frame-options: DENY
HEADER: x-content-security-policy: allow 'self'; options inline-script eval-script; frame-ancestors 'none'
HEADER: content-encoding: gzip
HEADER: vary: Accept-Encoding
HEADER: content-length: 147
HEADER: connection: close
HEADER: content-type: text/html;charset=utf-8
COOKIE: PHPSESSID=b4e758be610790243a7b215501d075a3

---INFLATED RESPONSE---[152 chars]---
<br />
<b>Fatal error</b>: Cannot use object of type BugData as array in <b>/var/www/mantis/xmlrpc/dotproject/dphelper.php</b> on line <b>20</b><br />

---END---

XML error: Invalid document end at line 2, column 1Error: [2] Invalid return payload: enable debugging to examine incoming payload (XML error: Invalid document end at line 2, column 1) at client.php:124

please, help me

rubenpais
22-09-10, 05:56 PM
Hello,

I'm trying to integrate Mantis with DotProyect but when I import a task always appears the XML error: Undeclared entity warning at line 28, column 8Error: [2] Invalid return payload: enable debugging to examine incoming payload (XML error: Undeclared entity warning at line 28, column 8) at client.php:124.

I tested modules dotproject.mantis.integration_2010.8.13.zip and mantis.integration_20070418.zip and the version of Mantis to 1.2.2 and also upgrade the libraries and xmlrpc.inc xmlrpcs.inc

Any ideas?

Thanks!

devilpussy
16-03-11, 04:25 AM
---SENDING---
POST /mantis/xmlrpc/dotproject/dpserver.php HTTP/1.0
User-Agent: XML-RPC for PHP 2.0
Host: 192.168.10.41
Accept-Encoding:
Accept-Charset: UTF-8,ISO-8859-1,US-ASCII
Content-Type: text/xml
Content-Length: 269

<?xml version="1.0"?>
<methodCall>
<methodName>MantisRPC</methodName>
<params>
<param>
<value></value>
</param>
<param>
<value></value>
</param>
<param>
<value><string>getUserAccessLevel</string></value>
</param>
<param>
<value></value>
</param>
</params>
</methodCall>
---END---

---GOT---
HTTP/1.0 500 Internal Server Error
Date: Tue, 15 Mar 2011 18:19:00 GMT
Server: Apache/2.2.17 (Win32) PHP/5.3.5
X-Powered-By: PHP/5.3.5
Content-Length: 0
Connection: close
Content-Type: text/html


---END---

---SENDING---
POST /mantis/xmlrpc/dotproject/dpserver.php HTTP/1.0
User-Agent: XML-RPC for PHP 2.0
Host: 192.168.10.41
Accept-Encoding:
Accept-Charset: UTF-8,ISO-8859-1,US-ASCII
Content-Type: text/xml
Content-Length: 291

<?xml version="1.0"?>
<methodCall>
<methodName>MantisRPC</methodName>
<params>
<param>
<value></value>
</param>
<param>
<value></value>
</param>
<param>
<value><string>getMantisBugByProjectId</string></value>
</param>
<param>
<value><string></string></value>
</param>
</params>
</methodCall>
---END---

---GOT---
HTTP/1.0 500 Internal Server Error
Date: Tue, 15 Mar 2011 18:19:00 GMT
Server: Apache/2.2.17 (Win32) PHP/5.3.5
X-Powered-By: PHP/5.3.5
Content-Length: 0
Connection: close
Content-Type: text/html


---END---

Error: [5] Didn't receive 200 OK from remote server. (HTTP/1.0 500 Internal Server Error) at client.php:125


somebody can help?

RARlink99
18-03-11, 08:07 AM
Please point me to the correct forum for returning the system admin button to active. It is hidden now and I do not understand how to return to active. thank you so much! Thank you Ray Rogers

darkmatter
19-03-11, 02:53 AM
Are you still an administraotor? Did you delete your permissions? I found a problem where if you delete all the roles everything breaks. Hopefully you didn't do that.

If you can still open the User Administration screen, you can re-add your roles. Otherwise you have to use the database directly. I don't know that part.