RTC - Git integration - error 22 on push
![]()
john norris (207●3●40●44)
| asked Apr 17 '16, 4:07 a.m.
edited Jul 14 '16, 9:45 a.m. by Ralph Schoon (63.3k●3●36●46) Hi, I continue to follow the tutorial https://jazz.net/wiki/bin/view/Main/RTCGitIntegrationSetupUsingNode. I have started the node.js server - "nodejs main.js" using v5.10.1. Using RTC 6.0.1. Got to the step where I cloned the repo from the 8888 port (node.js), made some changes, committed locally with "task 2" in the message and then pushed.
C:\GitWork\groovyTest>git push origin master
There is no output from node.js - I have run it with nohup and nothing new in nohup.out, nor if I just run it on the command line with open terminal.
Just to add, git remote -v gives
but if I do the url in a browser then I do get a login dialog as in the tutorial Also, if I push via RTC client (eclipse) then I am asked for http authentication and then get Can't connect to any URI (the mint-rtc above) 302 Found. I am using a developer user rather than the gituser that I added to the server authentication details. Is that going to cause a problem? Also when I coned the git rep I was not asked for a user
C:\Temp>git clone http://mint-rtc:8888/git/groovyTest.git
Any ideas where I am going wrong? Regards, John |
2 answers
![]()
Hi Jon,
I get the same issue. Did found a solution?
What happens, when you open the git repo url in your browser?
|
![]()
Hi All
We identified the error code 22 is seen when BASIC registry (CCM URL) for authentication is used in config.json with the default authentication settings in JTS/RTC. It works well when Nodejs server is configured against LDAP server.
By Default a JTS server is not enabled for HTTP Basic authentication and uses FORM based Authentication. You would need to edit the web.xml files of JTS/CCM and enable BASIC <auth-method> for it to work.
Or you could connect Nodejs , through config.json to the LDAP server that your CLM is connected to. Comments
Hi Shubjit,
I checked the jazz tutorial that I used (see first entry) and that uses BASIC authentication. So for the person who wrote that, BASIC does work with nodejs.
So if you are correct and it simply can't work, how did the tutorial work for the author?
Hi John
Step 2c, "If your Jazz Team Server is configured to use HTTP Basic authentication, you can use the same server."
By default JTS is not configured with Basic Authentication, and we would need to change to Basic by editing the web.xml under <jts/ccm_war_extract>\WEB-INF directory
|
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
x
z