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] Custom port in git http url not supported #2494

Open
viric opened this issue Apr 30, 2023 · 5 comments
Open

[BUG] Custom port in git http url not supported #2494

viric opened this issue Apr 30, 2023 · 5 comments
Labels
A-auth Area: Connection and authentication C-bug Category: This is a bug P-low Priority: low
Milestone

Comments

@viric
Copy link

viric commented Apr 30, 2023

Describe the bug

If the git server url is http with a port (http://1.2.3.4:1234) the program suggests to prepend ssh:// in front.
It says "Potential problematic url, click Ok to fix" and, moreover, there is no other option than click Ok. Then it prepends ssh://.

Steps to reproduce

Steps to reproduce the behavior:

  1. Go to 'Edit Git server settings'
  2. Type an http url with port 'http://1.2.3.4:1234/'
  3. Accept
  4. See error complaining about potential wrong URL, forcing to Ok

Expected behavior

Accept the url normally. It is well formed.

I guess the aid is meant for some non-http urls; even in that case, the "fix" of prepending ssh:// should be optional.

Screenshots

No response

Device information

  • OS: Android 13
  • App version: 1.13.5

Additional context

No response

@viric viric added C-bug Category: This is a bug S-awaiting-triage Status: New issues that have not been assessed yet labels Apr 30, 2023
@msfjarvis
Copy link
Member

This should be relatively straightforward to fix, the code that's failing is here.

@msfjarvis msfjarvis added P-low Priority: low A-auth Area: Connection and authentication and removed S-awaiting-triage Status: New issues that have not been assessed yet labels Apr 30, 2023
@viric
Copy link
Author

viric commented May 8, 2023

What I want to do is to be able to use a git server that I just run in my desktop. Be it "git daemon" (git:// is disallowed) or "git instaweb" (http doesn't work unless on port 80).

Those two paths not working leaves me with no git clone possible, I think.

@msfjarvis
Copy link
Member

What I want to do is to be able to use a git server that I just run in my desktop. Be it "git daemon" (git:// is disallowed) or "git instaweb" (http doesn't work unless on port 80).

Those two paths not working leaves me with no git clone possible, I think.

You can do it via SSH but yes if you're trying to use HTTPS then it is currently not possible.

@viric
Copy link
Author

viric commented May 10, 2023

I'd be happy with http or git, which I cannot use.
As these are not working I ended up using ssh with a command="git-shell ..." parameter in the authorized_keys, but it annoys me that I have to give shell access to my account to password store, for a simple git sync.

Fixing this http:// port bug would be good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-auth Area: Connection and authentication C-bug Category: This is a bug P-low Priority: low
Projects
Status: 📖 Has instructions
Development

No branches or pull requests

3 participants
@viric @msfjarvis and others