"401 Unauthorized" error when cloning repository with LFS and file smudging via HTTPS
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 48/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Java
- Estrellas
- 427
- Forks
- 116
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de eclipse-jgit/jgit
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
eclipse-jgit/jgit#329 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
eclipse-jgit/jgit#327 ·
-
Repository.create(boolean bare) should provide a no-arg overload that uses isBare()Quizá libre de nuevo @hardikyadav12 la tomó hace 77 días y no hay ningún pull request abierto. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
eclipse-jgit/jgit#297 · 1 comentario ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
eclipse-jgit/jgit#293 · 2 comentarios ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
eclipse-jgit/jgit#288 ·
Todos los issues de eclipse-jgit/jgit
Issues similares
-
? - Needs Triage bot_watch bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
NVIDIA/cudf-spark-jni#5594 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 92/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
Upgrade solr to 9.11.0Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
DataONEorg/dataone-indexer#390 ·