Git Staging Checkout Branch disabled
Oxygen general issues.
-
- Posts: 1009
- Joined: Wed Nov 16, 2005 11:11 am
Re: Git Staging Checkout Branch disabled
Post by alex_jitianu »
Hello,
The branch combo should activate once you paste an URL to Git repository in the Repository URL field. If that doesn't happen, there's usually a red error label that appears above the buttons, in the dialog. DO you see such a error message?
You can also try starting Oxygen from the command line (using oxygen.bat or oxygen.sh). Open the Clone dialog again and paste the repository URL. Check the console for any errors.
The branch combo should activate once you paste an URL to Git repository in the Repository URL field. If that doesn't happen, there's usually a red error label that appears above the buttons, in the dialog. DO you see such a error message?
You can also try starting Oxygen from the command line (using oxygen.bat or oxygen.sh). Open the Clone dialog again and paste the repository URL. Check the console for any errors.
Re: Git Staging Checkout Branch disabled
Thanks for the reply, Alex. I guess I should have been more explicit.
I am aware of how this should work as I have been able to get it to work in a test environment VM. Essentially, placing the URL in the Repository URL field does not cause the Checkout branch field to activate (again, it works fine in the test environment). I also do not receive an error in the dialog at all.
Here is the exception that appears in the console:
Exception in thread "Check Repo URL Connection Daemon" java.lang.ClassCastException: ro.sync.net.protocol.http.WebdavHttpURLConnection cannot be cast to javax.net.ssl.HttpsURLConnection
at org.eclipse.jgit.transport.http.JDKHttpConnection.configure(JDKHttpConnection.java:238)
at org.eclipse.jgit.util.HttpSupport.disableSslVerify(HttpSupport.java:307)
at org.eclipse.jgit.transport.TransportHttp.httpOpen(TransportHttp.java:879)
at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:500)
at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:359)
at org.eclipse.jgit.api.LsRemoteCommand.execute(LsRemoteCommand.java:167)
at org.eclipse.jgit.api.LsRemoteCommand.call(LsRemoteCommand.java:128)
at com.oxygenxml.git.service.GitAccess.doListRemoteBranchesInternal(GitAccess.java:928)
at com.oxygenxml.git.service.GitAccess.listRemoteBranchesForURL(GitAccess.java:888)
at com.oxygenxml.git.view.dialog.CloneRepositoryDialog$2$1.addBranches(CloneRepositoryDialog.java:305)
at com.oxygenxml.git.view.dialog.CloneRepositoryDialog$2$1.run(CloneRepositoryDialog.java:262)
at java.util.TimerThread.mainLoop(Unknown Source)
at java.util.TimerThread.run(Unknown Source)
Hopefully, this helps to troubleshoot further.
I am aware of how this should work as I have been able to get it to work in a test environment VM. Essentially, placing the URL in the Repository URL field does not cause the Checkout branch field to activate (again, it works fine in the test environment). I also do not receive an error in the dialog at all.
Here is the exception that appears in the console:
Exception in thread "Check Repo URL Connection Daemon" java.lang.ClassCastException: ro.sync.net.protocol.http.WebdavHttpURLConnection cannot be cast to javax.net.ssl.HttpsURLConnection
at org.eclipse.jgit.transport.http.JDKHttpConnection.configure(JDKHttpConnection.java:238)
at org.eclipse.jgit.util.HttpSupport.disableSslVerify(HttpSupport.java:307)
at org.eclipse.jgit.transport.TransportHttp.httpOpen(TransportHttp.java:879)
at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:500)
at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:359)
at org.eclipse.jgit.api.LsRemoteCommand.execute(LsRemoteCommand.java:167)
at org.eclipse.jgit.api.LsRemoteCommand.call(LsRemoteCommand.java:128)
at com.oxygenxml.git.service.GitAccess.doListRemoteBranchesInternal(GitAccess.java:928)
at com.oxygenxml.git.service.GitAccess.listRemoteBranchesForURL(GitAccess.java:888)
at com.oxygenxml.git.view.dialog.CloneRepositoryDialog$2$1.addBranches(CloneRepositoryDialog.java:305)
at com.oxygenxml.git.view.dialog.CloneRepositoryDialog$2$1.run(CloneRepositoryDialog.java:262)
at java.util.TimerThread.mainLoop(Unknown Source)
at java.util.TimerThread.run(Unknown Source)
Hopefully, this helps to troubleshoot further.
-
- Posts: 1009
- Joined: Wed Nov 16, 2005 11:11 am
Re: Git Staging Checkout Branch disabled
Post by alex_jitianu »
Hi,
I believe the http.sslVerify is disabled and because of that the exception is thrown. You can enable (which is the default mode) it by running:
I will add an issue to investigate and fix this situation on our side.
Best regards,
Alex
I believe the http.sslVerify is disabled and because of that the exception is thrown. You can enable (which is the default mode) it by running:
Code: Select all
git config http.sslVerify "true"
Best regards,
Alex
Re: Git Staging Checkout Branch disabled
A bit of a Catch-22 there. In order to run the git config statement, I need to run it from a git directory. In order to be in a git directory, I need to clone the repository. Unless I am misunderstanding something?
-
- Posts: 1009
- Joined: Wed Nov 16, 2005 11:11 am
Re: Git Staging Checkout Branch disabled
Post by alex_jitianu »
Hello,
I think this is a global setting, that you are having. You can run that command from anywhere, assuming you have a command line git client. Alternatively, you can manually edit the global configuration file which is located at:
Best regards,
Alex
I think this is a global setting, that you are having. You can run that command from anywhere, assuming you have a command line git client. Alternatively, you can manually edit the global configuration file which is located at:
Code: Select all
C:\Users\{user}\.gitconfig
Alex
-
- Posts: 907
- Joined: Thu May 02, 2019 2:32 pm
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service