LINK Issue - TRAC problem

Jamie Gagnon, modified 13 Years ago.

LINK Issue - TRAC problem

Padawan Posts: 46 Join Date: 8/27/10 Recent Posts
Hi There.

I think there may be a problem with the Link issue functionality in KLAROS when integrating with TRAC, although it could be just me.


I have executed a test and go to the point where I can click Link Issue.

On the screen I have the Link issue popup window.

I can see the table heading

Issue management system drop down

System Undertest drop down and the ID field.

In the ID field I have tried entering

500018
#500018
Ticket #500018

i even tried entering the full path https://<SERVER>/<DOMAIN>/trac/admin/ticket/500018

I hit the refresh it does nothing. when I click Link it does nothing. I expected on clicking link, I would see the link appear under the table heading.

Is this something I am perhaps doing wrong or is this a genuine issue?
thumbnail
Torsten Stolpmann, modified 13 Years ago.

RE: LINK Issue - TRAC problem

Jedi Council Member Posts: 759 Join Date: 2/12/09 Recent Posts
Hi Jamie,

I cannot reproduce this behaviour over here. The id to enter would be 500018. Is there anything in the log (catalina.out)?

Regards,

Torsten
Jamie Gagnon, modified 13 Years ago.

RE: LINK Issue - TRAC problem

Padawan Posts: 46 Join Date: 8/27/10 Recent Posts
When I try to link it does nothing.

Having difficulty locating catalina.out but did open stdout_20101111.log

I can see this response

2011-01-14 13:04:30: ERROR, org.apache.commons.httpclient.HttpMethodDirector, pool-3-thread-1 Credentials cannot be used for NTLM authentication: org.apache.commons.httpclient.UsernamePasswordCredentials
org.apache.commons.httpclient.auth.InvalidCredentialsException: Credentials cannot be used for NTLM authentication: org.apache.commons.httpclient.UsernamePasswordCredentials
at org.apache.commons.httpclient.auth.NTLMScheme.authenticate(NTLMScheme.java:332) ~[commons-httpclient-3.1.jar:na]
at org.apache.commons.httpclient.HttpMethodDirector.authenticateHost(HttpMethodDirector.java:282) [commons-httpclient-3.1.jar:na]
at org.apache.commons.httpclient.HttpMethodDirector.authenticate(HttpMethodDirector.java:234) [commons-httpclient-3.1.jar:na]
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170) [commons-httpclient-3.1.jar:na]
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) [commons-httpclient-3.1.jar:na]
at org.eclipse.mylyn.commons.net.WebUtil$2.execute(WebUtil.java:333) [commons-net-3.4.1.v20100625-2100-e3x.jar:na]
at org.eclipse.mylyn.commons.net.WebUtil$2.execute(WebUtil.java:1) [commons-net-3.4.1.v20100625-2100-e3x.jar:na]
at org.eclipse.mylyn.internal.commons.net.MonitoredRequest.call(MonitoredRequest.java:51) [commons-net-3.4.1.v20100625-2100-e3x.jar:na]
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [na:1.6.0_21]
at java.util.concurrent.FutureTask.run(FutureTask.java:138) [na:1.6.0_21]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [na:1.6.0_21]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [na:1.6.0_21]
at java.lang.Thread.run(Thread.java:619) [na:1.6.0_21]
thumbnail
Torsten Stolpmann, modified 13 Years ago.

RE: LINK Issue - TRAC problem

Jedi Council Member Posts: 759 Join Date: 2/12/09 Recent Posts
I fear that somehow https://bugs.eclipse.org/bugs/show_bug.cgi?id=201911 applies to your setup.

Since we depend on this implementation here, I currently see not much leeway in fixing this. http://hc.apache.org/httpclient-3.x/authentication.html describes what is expected for a successful NTML authentication.

I am confused that your setup is partly working, even with NTML authentication turned on.

So much for now.

Torsten
Jamie Gagnon, modified 13 Years ago.

RE: LINK Issue - TRAC problem

Padawan Posts: 46 Join Date: 8/27/10 Recent Posts
I have found the problem.

It appears that linking tickets to a test case will only work if the Username and password for the Klaros user match an actual user in TRAC.

so in my instance where I login to Klaros as jgagnon and my password but in TRAC i login as <domain>\jamiegagnon and password.

Linking does not work. Reason is because it never asks for a username and password on linking.

I can create an issue because it does ask for me to enter user credentials.

When I use the test account I set up to test NTLM earlier. <domain\jamiegagnon with the exact same password as I use in NTLM, It will link tickets without any bother at all
Jamie Gagnon, modified 13 Years ago.

RE: LINK Issue - TRAC problem

Padawan Posts: 46 Join Date: 8/27/10 Recent Posts
Actually Torsten.

I think I have got to the bottom of this issue completely.

Looks like it was my clicking that caused it.

Link Issue does offer authentication but has an ignore this type tick box on it. I managed to get it to work because I believe the initial attempt at performing the action. I may have inadvertently clicked the box emoticon

All fine now. sorry for sending you on a wild goose chase with this one.
thumbnail
Torsten Stolpmann, modified 13 Years ago.

RE: LINK Issue - TRAC problem (Answer)

Jedi Council Member Posts: 759 Join Date: 2/12/09 Recent Posts
No problem, setting this thread to resolved emoticon

Have a nice weekend!