Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Troubleshoot RTC 5.0.2 GIT Integration

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?

0 votes

Comments

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

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

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?

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
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

1 vote


One other answer

Permanent link
check this https://jazz.net/library/article/1485

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 97
× 20

Question asked: Feb 10 '15, 2:42 p.m.

Question was seen: 5,221 times

Last updated: Feb 16 '15, 5:57 a.m.

Confirmation Cancel Confirm