Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[Bug]: New-project repository lookup fails for self-hosted GitLab when given a full URL — entire URL is sent as the project path to `glab api projects/<encoded-url>`

Đang mở Phù hợp với người mới
#7,849 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

  • #7862 của @Exotic209093 — đã đóng, không merge
  • #7944 của @IzonIcy — đã đóng, không merge
  • #10079 của @EzraBuild — đã đóng, không merge

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
78/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
api, desktop

Hướng nghiên cứu

Bắt đầu trong apps/desktop và theo dõi quá trình tra cứu repository kiểm soát mã nguồn GitLab, so sánh việc xử lý URL đầy đủ với hành vi hiện có của gitlab.com. Tái hiện với một host tự lưu trữ như sourcecontrol.example.com và xác minh rằng URL đầy đủ được phân giải thành group/project, trong khi đường dẫn không kèm host vẫn tiếp tục hoạt động.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug needs-triage
Before submitting
  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.
Area

apps/desktop

Steps to reproduce
  1. Authenticate glab against a self-hosted GitLab whose hostname does not contain "gitlab" (for example sourcecontrol.example.com) and set it as the default host.
  2. In t3 code, enable GitLab source control (it correctly detects the authenticated host).
  3. Start a new project, select GitLab, and paste the full repository URL: https://sourcecontrol.example.com/group/project
  4. Observe the error.
Expected behavior

t3 code normalizes the full URL to the group/project path and looks the repository up successfully, the same way it does for gitlab.com URLs.

Actual behavior

Lookup fails: "Source control repository operation lookupRepository failed for gitlab: The source control operation could not be completed."

Impact

Minor bug or occasional failure

Version or commit

No response

Environment
  • t3 code: Alpha (Windows build dated 2026-08-10) - OS: Windows 11 - glab: 1.102.0 - GitLab: self-managed, host sourcecontrol.example.com (hostname does not contain "gitlab") - glab authenticated and set as default host: - glab auth status → ✓ Logged in to sourcecontrol.example.com - glab config get host → sourcecontrol.example.com
Logs or stack traces

Screenshots, recordings, or supporting files

No response

Workaround

Enter the bare namespace/project path instead of the URL:

group/project

This resolves and clones correctly, because the server relies on glab's default host and the path maps to a valid glab api projects/<encoded-path> call.

Ngôn ngữ chính
TypeScript
Star
24.8k
Fork
6.4k
Merge trung bình
2 giờ 31 phút
Pull request đã merge (30 ngày)
475

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của pingdotgg/t3code

Tất cả issue của pingdotgg/t3code

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.