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

Problem: Git repo cannot be cloned if password contains a slash #2758

Open
DesertFox8 opened this issue Feb 20, 2025 · 0 comments
Open

Problem: Git repo cannot be cloned if password contains a slash #2758

DesertFox8 opened this issue Feb 20, 2025 · 0 comments

Comments

@DesertFox8
Copy link

DesertFox8 commented Feb 20, 2025

Issue

I use HTTPS Git repository with a token authentication.
If the token contains a "/" cloning is rejected with failure "URL rejected: Port number was not a decimal number between 0 and 65535".
A token/password without "/" works perfectly.

Furthermore, the respective log entry contains the full secret (which it shall not do for security reasons):
fatal: unable to access 'https://USERID:EXAMPLE/[email protected]/bitbucket/scm/project/ansible.git/': URL rejected: Port number was not a decimal number between 0 and 65535

Impact

Ansible (task execution)

Installation method

Docker

Database

Postgres

Browser

Safari

Semaphore Version

2.12.14

Ansible Version

Logs & errors

10:32:18 AM Task 5 added to queue
10:32:23 AM Started: 5
10:32:23 AM Run TaskRunner with template: Read facts
10:33:00 AM Preparing: 5
10:33:00 AM Cloning Repository https://example.com/bitbucket/scm/project/ansible.git
10:33:00 AM Cloning into 'repository_2_3'...
10:33:00 AM fatal: unable to access 'https://USERID:EXAMPLE/[email protected]/bitbucket/scm/project/ansible.gitt/': URL rejected: Port number was not a decimal number between 0 and 65535
10:33:00 AM Failed updating repository: exit status 128
10:32:27 AM Running app failed: task failed

Manual installation - system information

No response

Configuration

No response

Additional information

No response

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

No branches or pull requests

1 participant