It's all about the answers!

Ask a question

RTC - Git integration - clone gives 302 Found


john norris (20733844) | 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
!STACK 0
org.eclipse.jgit.api.errors.TransportException: http://mint-rtc:8888/git/groovyTest.git: 302 Found
 at org.eclipse.jgit.api.LsRemoteCommand.execute(LsRemoteCommand.java:220)
 at org.eclipse.jgit.api.LsRemoteCommand.call(LsRemoteCommand.java:159)
 at org.eclipse.egit.core.op.ListRemoteOperation.run(ListRemoteOperation.java:99)
 at org.eclipse.egit.ui.internal.clone.SourceBranchPage$8.run(SourceBranchPage.java:340)
 at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Caused by: org.eclipse.jgit.errors.TransportException: http://mint-rtc:8888/git/groovyTest.git: 302 Found
 at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:502)
 at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:288)
 at org.eclipse.jgit.api.LsRemoteCommand.execute(LsRemoteCommand.java:198)
 ... 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?

Regards,

John

One answer



permanent link
john norris (20733844) | 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.


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.