It's all about the answers!

Ask a question

Troubleshoot RTC 5.0.2 GIT Integration


Robert Carter (42928589) | asked Feb 10 '15, 2:42 p.m.
I have configured the GIT integration with RTC.  I have also configured a pre-condition to not allow commits without workitem number.

I have provided the following command on my commit:
git commit -am 'Fix other issues workitem 7'
git commit -am 'Fix other issues defect 7'

If I do a 'git log' I see the commit comments.

However, in the ccm.log I see errors:
GitWorkItemLinkRestService.invokeGitWorkItemLinkService(): No work item specified, ignoring the call to associate work item with git commit

RequireWorkItemHintInCommentValidator.run(): No WI hint mentioned in commit comment %B

Any ideas where to look for this?

Comments
Benjill Cubas commented Feb 10 '15, 5:39 p.m. | edited Feb 12 '15, 7:07 a.m.

I'm getting the same issue.  I hope someone has the solution.


Kiran M N commented Feb 11 '15, 12:39 a.m. | edited Feb 12 '15, 7:08 a.m.
JAZZ DEVELOPER

 Check the git version installed on the server. Make sure it is >= 1.7.9.


Robert Carter commented Feb 11 '15, 11:14 a.m.

I upgraded Git to 1.7.12.4.  I noticed that when I tried to do my push commands I am getting 403 errors, which I didn't before.  I came across this article that seems to indicate something change with the git client, Git No Longer Prompting for Passwords.

I have been trying to follow this setup guide, RTC GIT Setup Guide  But now with the 1.7.12.4 git client this Apache configuration maybe outdated?


Robert Carter commented Feb 13 '15, 11:04 a.m.

Maps the URL path "/git/" to the git-http-backend script


ScriptAlias /git/ /var/www/githooks/rtc-git-http-interceptor/


ScriptAlias /git/ /usr/libexec/git-core/git-http-backend/

When the Apache config file has the line with git-http-backend and I do a push the pre-receive hooks runs.  It fails with user not authorized.  But I think this is expected.  Since the pre-hook is expecting some info.

However, when I change the script to use rtc-git-http-interceptor line and I do a push the pre-receive hook is never called and the server reports a 403 error.

Accepted answer


permanent link
Kiran M N (3262) | answered Feb 16 '15, 12:29 a.m.
JAZZ DEVELOPER
The HTTP interceptor as well as pre-receive hook is trying to invoke services running on RTC server. To invoke these, you must authorize in RTC Web UI, to honour these incoming requests from Git. (See more details in this article: https://jazz.net/library/article/1423).

So, by commenting out the HTTP interceptor, and using the git-http-backend, you are only removing one invocation (in the http interceptor), and hence it goes through, but fails at next step (in pre-receive).

Robert Carter selected this answer as the correct answer

One other answer



permanent link
Manoj Panda (39336662) | answered Feb 16 '15, 5:57 a.m.
JAZZ DEVELOPER
check this https://jazz.net/library/article/1485

Your answer


Register or to post your answer.