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? |
Accepted answer
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
check this https://jazz.net/library/article/1485
|
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.
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.