Skip to content

Incorrect error message on cloning unauthorized repo #1181

@jescalada

Description

@jescalada

Describe the bug
When cloning a repo that isn't in the authorisedList or in the repo database, an incorrect/unrelated error message appears.

To Reproduce
Choose a repo that isn't in the authorisedList or in the repo database, then clone it:

  1. Run GitProxy
  2. Execute the following (replace with invalid repo)
git clone http://localhost:8080/open-webui/open-webui.git`

This gives the following error:

fatal: http://localhost:8000/open-webui/open-webui.git/info/refs not valid: could not determine hash algorithm; is this a git repository?`

Adding the repo to the database or authorisedList will let the clone go through (therefore the command is correct).

Image

Expected behavior
This flow should display a relevant error, such as REPO_NAME not in authorisedList or database.

Screenshots

Proxy output

Image

git clone output

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions