Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Error on git sync: "parameter must be ECParameterSpec ..." #1141

Closed
cmol opened this issue Oct 8, 2020 · 13 comments · Fixed by #1142
Closed

[BUG] Error on git sync: "parameter must be ECParameterSpec ..." #1141

cmol opened this issue Oct 8, 2020 · 13 comments · Fixed by #1142
Assignees
Milestone

Comments

@cmol
Copy link

cmol commented Oct 8, 2020

Describe the bug
When running a git operation, a popup with the following text occurs:

"An error occured during a Git operation

parameter must be ECParameterSync or ECGenParameterSpec"

The repo is not syncronized.

To Reproduce
Steps to reproduce the behavior:

  1. Open application
  2. Synchronize the repo

Expected behavior
Git repo synchronizes.

Device information:

  • Device: Google pixel 3a
  • OS: stock ROM Android version 11
  • App version 1.12.0
@cmol cmol added the bug label Oct 8, 2020
@msfjarvis
Copy link
Member

Can you provide more information regarding the authentication and the Git host that you're using?

@msfjarvis msfjarvis added this to the v1.13.0 milestone Oct 8, 2020
@cmol
Copy link
Author

cmol commented Oct 8, 2020

I'm using ssh-keys and are running git over ssh.
Basically I have just initialized a bare repo on a debian box.

@cmol
Copy link
Author

cmol commented Oct 8, 2020

It should also be noted that this has worked for a long time. It is now a new clone of the repo I am seeing this issue with.

@fmeum
Copy link
Member

fmeum commented Oct 8, 2020

Could you provide more information on what type of SSH key you are using and whether you imported or generated it in Password Store? Also, do you know which host key types your server is offering?

@cmol
Copy link
Author

cmol commented Oct 8, 2020

I am using imported 4096 bit RSA keys.

Host keys:
2048 bit RSA
1024 bit DSA
256 bit ECDSA

@fmeum
Copy link
Member

fmeum commented Oct 8, 2020

I am using imported 4096 bit RSA keys.

Host keys:
2048 bit RSA
1024 bit DSA
256 bit ECDSA

I might have an idea then, I'll investigate.

@fmeum fmeum self-assigned this Oct 8, 2020
@cmol
Copy link
Author

cmol commented Oct 8, 2020

It should also be noted that this has worked for a long time. It is now a new clone of the repo I am seeing this issue with.

Just realized I made a typo here. It's supposed to say "NOT a new clone".

@fmeum
Copy link
Member

fmeum commented Oct 8, 2020

I can reproduce the issue: An Android compatibility issue in SSHJ lets ECDSA key exchanges fail. Since we rank them relatively high in our config, the only workaround I see at the moment is to upgrade the server to an OpenSSH version with support for Curve25519 based key exchange.

@msfjarvis I could work around this and a different issue that prevents connections to hosts with only ECDSA host keys by reordering the ciphers in our config. Would this warrant a point release or should we wait a bit longer for a new SSHJ release?

@msfjarvis
Copy link
Member

I can reproduce the issue: An Android compatibility issue in SSHJ lets ECDSA key exchanges fail. Since we rank them relatively high in our config, the only workaround I see at the moment is to upgrade the server to an OpenSSH version with support for Curve25519 based key exchange.

@msfjarvis I could work around this and a different issue that prevents connections to hosts with only ECDSA host keys by reordering the ciphers in our config. Would this warrant a point release or should we wait a bit longer for a new SSHJ release?

I say we land the fix now but a new patch release doesn't seem worthwhile since the bug isn't particularly widespread.

@fmeum
Copy link
Member

fmeum commented Oct 8, 2020

I submitted the upstream PR: hierynomus/sshj#636 and will draft a workaround shortly.

@cmol
Copy link
Author

cmol commented Oct 8, 2020

I can reproduce the issue: An Android compatibility issue in SSHJ lets ECDSA key exchanges fail. Since we rank them relatively high in our config, the only workaround I see at the moment is to upgrade the server to an OpenSSH version with support for Curve25519 based key exchange.

@msfjarvis I could work around this and a different issue that prevents connections to hosts with only ECDSA host keys by reordering the ciphers in our config. Would this warrant a point release or should we wait a bit longer for a new SSHJ release?

That was a quick process! I'm assuming this will be in the next release? And do you know when that will hit the play store?

@cmol
Copy link
Author

cmol commented Oct 8, 2020

And thank you :)

@msfjarvis
Copy link
Member

That was a quick process! I'm assuming this will be in the next release? And do you know when that will hit the play store?

The issue is linked to the milestone for the next release, which contains our expected timeline.

@msfjarvis msfjarvis modified the milestones: v1.13.0, v1.12.1 Oct 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants