"401 Unauthorized" error when cloning repository with LFS and file smudging via HTTPS
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
Hướng nghiên cứu
Start with the reported failure in SmudgeFilter.downloadLfsResource and trace how HTTPS clone credentials reach the LFS batch request during checkout. Compare the JGit clone path with command-line behavior and inspect relevant LFS and clone tests. Done means an HTTPS clone with LFS successfully downloads and smudges files using the supplied credentials; the payload does not name a specific test file.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Version
7.5.0, but also with 7.7.0
Operating System
Windows
Bug description
When cloning a Git repository, where LFS is enabled and where one or more files are stored on the LFS server, a 401 is thrown when downloading the artifacts from the remote server.
This exception is thrown when using HTTPS, but not SSH, even though the credentials are set in the "Clone Repository" dialog and present in the Secure Storage. So it seems like they get lost somwhere during the checkout.
Actual behavior
The repository is not cloned.
Expected behavior
The repository, including all smudged files, should be present on the file system.
Relevant log output
java.io.IOException: When trying to open a connection to https://(...).git/info/lfs/objects/batch the server responded with an error code. rc=401
at org.eclipse.jgit.lfs.SmudgeFilter.downloadLfsResource(SmudgeFilter.java:151)
at org.eclipse.jgit.lfs.SmudgeFilter.<init>(SmudgeFilter.java:105)
at org.eclipse.jgit.lfs.SmudgeFilter.<init>(SmudgeFilter.java:91)
at org.eclipse.jgit.attributes.FilterCommandRegistry.createFilterCommand(FilterCommandRegistry.java:116)
at org.eclipse.jgit.dircache.DirCacheCheckout.runBuiltinFilterCommand(DirCacheCheckout.java:1558)
at org.eclipse.jgit.dircache.DirCacheCheckout.getContent(DirCacheCheckout.java:1496)
at org.eclipse.jgit.dircache.DirCacheCheckout.getContent(DirCacheCheckout.java:1428)
at org.eclipse.jgit.dircache.Checkout.checkout(Checkout.java:195)
at org.eclipse.jgit.dircache.DirCacheCheckout.doCheckout(DirCacheCheckout.java:595)
at org.eclipse.jgit.dircache.DirCacheCheckout.checkout(DirCacheCheckout.java:493)
at org.eclipse.jgit.api.CloneCommand.checkout(CloneCommand.java:396)
at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:216)
at org.eclipse.egit.core.op.CloneOperation.run(CloneOperation.java:194)
at org.eclipse.egit.ui.internal.clone.AbstractGitCloneWizard.executeCloneOperation(AbstractGitCloneWizard.java:490)
at org.eclipse.egit.ui.internal.clone.AbstractGitCloneWizard$5.run(AbstractGitCloneWizard.java:446)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:123)
Other information
We use an internal BitBucket server. Cloning the same repository from the command line works.
- Ngôn ngữ chính
- Java
- Star
- 427
- Fork
- 116
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của eclipse-jgit/jgit
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
eclipse-jgit/jgit#329 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
eclipse-jgit/jgit#327 ·
-
Repository.create(boolean bare) should provide a no-arg overload that uses isBare()Có thể làm lại được @hardikyadav12 đã nhận 77 ngày trước và không có pull request nào đang mở. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
eclipse-jgit/jgit#297 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
eclipse-jgit/jgit#293 · 2 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
eclipse-jgit/jgit#288 ·
Tất cả issue của eclipse-jgit/jgit
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
constellation-app/constellation#2613 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
[JUKEBOW] Arrows can be stolenĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 69/100
Vakore/ZappierGames#334 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
IETF-Hackathon/pqc-certificates#369 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
? - Needs Triage bot_watch bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
NVIDIA/cudf-spark-jni#5594 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100