It's all about the answers!

Ask a question

RTC - Git integration - clone gives 302 Found

john norris (20723441) | asked Apr 18 '16, 6:05 a.m.
edited Apr 23 '16, 10:21 a.m.

Within RTC client (luna 6.0.1) I try to clone a node js registered git repository with in the git view

I enter the URI (http://mint-rtc:8888/git/groovyTest.git) and the user/password of the repository connection.

I get an error when trying to contact the above URI. The error log has

!ENTRY org.eclipse.egit.ui 4 0 2016-04-18 10:59:33.671
!MESSAGE http://mint-rtc:8888/git/groovyTest.git: 302 Found
org.eclipse.jgit.api.errors.TransportException: http://mint-rtc:8888/git/groovyTest.git: 302 Found
 at org.eclipse.jgit.api.LsRemoteCommand.execute(
 at org.eclipse.egit.ui.internal.clone.SourceBranchPage$
 at org.eclipse.jface.operation.ModalContext$
Caused by: org.eclipse.jgit.errors.TransportException: http://mint-rtc:8888/git/groovyTest.git: 302 Found
 at org.eclipse.jgit.transport.TransportHttp.connect(
 at org.eclipse.jgit.transport.TransportHttp.openFetch(
 at org.eclipse.jgit.api.LsRemoteCommand.execute(
 ... 4 more

This has something to do with redirect. I am utterly confused and very stuck. Does it suggest that I have configured node js incorrectly. If I run git clone on command line then it does work but I am not asked to authorise.

There is no output from main.js.

I do not have a security cert set so when I go to jazz server in browser I get the warning that certificate is incorrect and accept it anyway. Would this cause the problems with authorisation? Remember that when I test the git address in a browser (http://mint-rtc:8888/git/groovyTest.git), I do get an authorisation dialog but on the command line, the clone happens without any authorisation.

If I add a self signed certificate using iKeyman (am I still supposed to be using that or should I now use keytool?) and update the server.xml in clm then opening ccm in the browser fails as unable to find website.

What am I doing wrong? Any ideas?



One answer

permanent link
john norris (20723441) | answered Apr 27 '16, 3:21 a.m.

So this is what I did to get past these problems.

I changed from http to ssh

I added a security certificate and accepted that into the browser and in eclipse.

Now when I push it does get further - it still does not work but it does get past authentication.

Your answer

Register or to post your answer.