TestLink and Trac
Moderators: Amaradana, TurboPT, TL Developers
TestLink and Trac
I am having problems connecting to Trac for bug tracking. I believe the problem is that we are using secure socet layer (SSL). Has anyone had experience connecting to Trac from TestLink using SSL?
Hi.
I have a strange problem with trac and testlink.
I can see the function "bug management" and if I click on it a popup-window appears.
The problem is when i try to report a bug.
I put in a number in the field and then click on "add bug"-button, but I can't see any new bug in my system.
The pop-up window dont tell me anything about it, because it turns absolutly white.
I tryed to put in a letter as bugID instead and the function told me "Wrong Bug ID format!" so I guess the format have to be a number
Can anyone understand my problem?
I have a strange problem with trac and testlink.
I can see the function "bug management" and if I click on it a popup-window appears.
The problem is when i try to report a bug.
I put in a number in the field and then click on "add bug"-button, but I can't see any new bug in my system.
The pop-up window dont tell me anything about it, because it turns absolutly white.
I tryed to put in a letter as bugID instead and the function told me "Wrong Bug ID format!" so I guess the format have to be a number
Can anyone understand my problem?
let me explain my problem one more time...
my english are not so good.
This is the function steps:
The integration is done using links to pages on BTS, that calls the following features:
* Insert new bug.
* Display existent bug info.
Process to add a bug
* Step 1: use the link to open BTS to insert a new bug.
* Step 2: write down the BUGID assigned by BTS.
* Step 3: write BUGID on the input field.
* Step 4: use add bug button.
After closing the add bug page, you will see relevant bug data on the execute page.
.....
After step four the pop-up window dont tell me anything.
The window dont execute anything, it turns white
my english are not so good.
This is the function steps:
The integration is done using links to pages on BTS, that calls the following features:
* Insert new bug.
* Display existent bug info.
Process to add a bug
* Step 1: use the link to open BTS to insert a new bug.
* Step 2: write down the BUGID assigned by BTS.
* Step 3: write BUGID on the input field.
* Step 4: use add bug button.
After closing the add bug page, you will see relevant bug data on the execute page.
.....
After step four the pop-up window dont tell me anything.
The window dont execute anything, it turns white
Apache log give me this:
PHP Fatal error: Call to a member function query() on a non-object in C:\\Program Files\\Apache Group\\Apache2\\htdocs\\testlink\\lib\\bugtracking\\int_trac.php on line 190, referer: http://localhost/testlink/lib/execute/b ... exec_id=10
PHP Fatal error: Call to a member function query() on a non-object in C:\\Program Files\\Apache Group\\Apache2\\htdocs\\testlink\\lib\\bugtracking\\int_trac.php on line 190, referer: http://localhost/testlink/lib/execute/b ... exec_id=10
Maybe I understand my problem, but I dont know how to solve it.
I have Testlink on localhost, in the same catalog as apache (apache/htdocs)..
This means that the location on the server is localhost/testlink
My trac server dont have the same portnumber as testlink.
The location for trac is localhost:8000/trac
Is there a problem to have testlink on port 80 and trac on port 8000?
If I move trac to port 80 I can't reach it, my browser tells me that localhost/trac doesnt exist.
I wanna know how you solve it with "BUG_TRACK_DB_HOST".
please let me see your definitions in config.inc.php and trac.cfg.php
I have Testlink on localhost, in the same catalog as apache (apache/htdocs)..
This means that the location on the server is localhost/testlink
My trac server dont have the same portnumber as testlink.
The location for trac is localhost:8000/trac
Is there a problem to have testlink on port 80 and trac on port 8000?
If I move trac to port 80 I can't reach it, my browser tells me that localhost/trac doesnt exist.
I wanna know how you solve it with "BUG_TRACK_DB_HOST".
please let me see your definitions in config.inc.php and trac.cfg.php
Hi Nihongo,
hmmm its kind of sad when you are the only one who has written in this thread in over two months...
I had a look at the error you are getting in C:\\Program Files\\Apache Group\\Apache2\\htdocs\\testlink\\lib\\bugtracking\\int_trac.php on line 190.. which is the following function
At the top of the file it says
also in C:\\Program Files\\Apache Group\\Apache2\\htdocs\\testlink\\cfg\\trac.cfg you will see this at the top of the file.
I would say to check that you have the XmlRpcPlugin installed with the correct permissions set...
This could very well explain your issue. have a look and let me know
hmmm its kind of sad when you are the only one who has written in this thread in over two months...
I had a look at the error you are getting in C:\\Program Files\\Apache Group\\Apache2\\htdocs\\testlink\\lib\\bugtracking\\int_trac.php on line 190.. which is the following function
Code: Select all
/**
* checks is bug id is present on BTS
*
* @param int id the bug id
*
* @return if the bug id exest it returns true; otherwise false
*
* @version 1.0
* @author Toshiyuki Kawanishi <tosikawa@users.sourceforge.jp>
**/
function checkBugID_existence($id)
{
$this->checkConnectionViaXmarpc();
$statusOk = $this->m_xmlrpcClient->query('ticket.get', $id);
return $statusOk;
}
Code: Select all
* The interefaces of TestLink - Trac (BTS).
* TestLink connect to Trac via XML-RPC.
*
* The XmlRpcPlugin plugin should be installed in your Trac.
*
* @link http://trac.edgewall.org/ "Trac Project"
* @link http://trac-hacks.swapoff.org/wiki/XmlRpcPlugin/ "Trac XmlRpcPlugin"
Code: Select all
* [Trac Settings]
* The XmlRpcPlugin plugin should be installed in your Trac.
* @link http://trac-hacks.swapoff.org/wiki/XmlRpcPlugin/ "Trac XmlRpcPlugin"
*
* In addition, you should add the permission of 'TICKET_VIEW' and 'XML_RPC'
* to the user 'anonymous' in Trac.
This could very well explain your issue. have a look and let me know
hmm
well as a form of debugging, you could try replacing the checkBugID_existence($id) to just return a status of ok. It appears to really only be a checking function to check that the bug id is there... in the mantis plugin they actually execute sql code to find the bug id... but change it in int_trac.php to look like it does in int_bugtracking.php which defines the bugtrackingInterface class..
so set the code in int_trac.php to be like this and test to see if it adds it.. that should rule out the xml stuff if it still doesnt work..
well as a form of debugging, you could try replacing the checkBugID_existence($id) to just return a status of ok. It appears to really only be a checking function to check that the bug id is there... in the mantis plugin they actually execute sql code to find the bug id... but change it in int_trac.php to look like it does in int_bugtracking.php which defines the bugtrackingInterface class..
so set the code in int_trac.php to be like this and test to see if it adds it.. that should rule out the xml stuff if it still doesnt work..
Code: Select all
/**
* checks is bug id is present on BTS
*
* @return bool
**/
function checkBugID_existence($id)
{
$status_ok=1;
return $status_ok;
}
hi malexs.
Thanks for your fast answer!
I tried to implement the code you sent in my int_trac.php.
The pop-up window told me that "the bug has ben added", but after the bug was added my testlink dont work so well. I cant go to results and look at "total bugs for each case". Sometimes i got some kind of execution error and apache tells me this:
[Wed Apr 16 10:03:02 2008] [error] [client 127.0.0.1] PHP Fatal error: Maximum execution time of 30 seconds exceeded in C:\\Program Files\\Apache Group\\Apache2\\htdocs\\testlink\\lib\\functions\\common.php on line 188, referer: http://localhost/testlink/lib/execute/execNavigator.php
what do you think?
Thanks for your fast answer!
I tried to implement the code you sent in my int_trac.php.
The pop-up window told me that "the bug has ben added", but after the bug was added my testlink dont work so well. I cant go to results and look at "total bugs for each case". Sometimes i got some kind of execution error and apache tells me this:
[Wed Apr 16 10:03:02 2008] [error] [client 127.0.0.1] PHP Fatal error: Maximum execution time of 30 seconds exceeded in C:\\Program Files\\Apache Group\\Apache2\\htdocs\\testlink\\lib\\functions\\common.php on line 188, referer: http://localhost/testlink/lib/execute/execNavigator.php
what do you think?
hmm ok..
it works for me... when i changed the function or commented the entire function out.. (same effect)..
then when i added a bug it added ok.. with the proviso that the bug actually exists... adding a bug that didnt exist addid it with the following error
Error: Ticket #1231231231 is not registered in Trac. - Error: Ticket #1231231231 is not registered in Trac.
the report and things still work for me though... didnt notice any adverse things... but then it works normally on my setup..
After the modification... it did add the bug into testlink right, ignoring the other issues you are getting??
because if it did that.. then it means that the issue was with the XmlRpcPlugin... maybe the installation/configuration of it.. or maybe with the communication between the two systems... could be a firewall issue as you have trac on port 8000... you could try putting trac on port 8080 which is usually given the same permissions as port 80.
the reason you are having other adverse effects may still be related to other things the XmlRpcPlugin is trying to do, and not being able to do..
it works for me... when i changed the function or commented the entire function out.. (same effect)..
then when i added a bug it added ok.. with the proviso that the bug actually exists... adding a bug that didnt exist addid it with the following error
Error: Ticket #1231231231 is not registered in Trac. - Error: Ticket #1231231231 is not registered in Trac.
the report and things still work for me though... didnt notice any adverse things... but then it works normally on my setup..
After the modification... it did add the bug into testlink right, ignoring the other issues you are getting??
because if it did that.. then it means that the issue was with the XmlRpcPlugin... maybe the installation/configuration of it.. or maybe with the communication between the two systems... could be a firewall issue as you have trac on port 8000... you could try putting trac on port 8080 which is usually given the same permissions as port 80.
the reason you are having other adverse effects may still be related to other things the XmlRpcPlugin is trying to do, and not being able to do..
hi
ok it seems like it doesnt matter what ID i put in. The pop-up window tells me the bug is added anyway. It also seems like my Testlink doesnt work so well after a bug is added. I cant execute the testcases with an added bug, and I cant see Bug-results either.
I also tried to change port to 8080, but it seems like that wasnt why it doesnt work.
probably it is something with XmlRpcPlugin then. Can you give me a guide how you made it work right?
thanks
ok it seems like it doesnt matter what ID i put in. The pop-up window tells me the bug is added anyway. It also seems like my Testlink doesnt work so well after a bug is added. I cant execute the testcases with an added bug, and I cant see Bug-results either.
I also tried to change port to 8080, but it seems like that wasnt why it doesnt work.
probably it is something with XmlRpcPlugin then. Can you give me a guide how you made it work right?
thanks
Yes that is what i would have expected.. so if you return the lines you changed before in the function and restore it to calling the XmlRpcPlugin it should not be able to add bugs again...
to be honest, one of the other guys here did the XmlRpcPlugin install... maybe you can find some documentation on it or some other way to test that it is working... its not really my expertise. While i use trac, i dont maintain it and so dont know how it is set up.
you could also try putting trtac on a different computer and try it that way.?
to be honest, one of the other guys here did the XmlRpcPlugin install... maybe you can find some documentation on it or some other way to test that it is working... its not really my expertise. While i use trac, i dont maintain it and so dont know how it is set up.
you could also try putting trtac on a different computer and try it that way.?
hi again.
I tried to reinstall my xmlrpc-plugin and now I get this error:
[Wed Apr 23 16:50:48 2008] [error] [client 127.0.0.1] PHP Fatal error: Maximum execution time of 30 seconds exceeded in C:\\Program Files\\Apache Group\\Apache2\\htdocs\\testlink\\lib\\functions\\common.php on line 188, referer: http://localhost/testlink/lib/execute/e ... build_id=3
Is it something about my project name variable in trac.cfg.php?
thanks
I tried to reinstall my xmlrpc-plugin and now I get this error:
[Wed Apr 23 16:50:48 2008] [error] [client 127.0.0.1] PHP Fatal error: Maximum execution time of 30 seconds exceeded in C:\\Program Files\\Apache Group\\Apache2\\htdocs\\testlink\\lib\\functions\\common.php on line 188, referer: http://localhost/testlink/lib/execute/e ... build_id=3
Is it something about my project name variable in trac.cfg.php?
thanks