It's not possible to tar files starting with "system" in the file name.
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 35/100
Línea de trabajo
Reproduce el caso de Windows/.NET Framework 4.x con SharpZipLib 1.4.2, empezando por TarArchive.CreateOutputTarArchive, TarEntry.CreateEntryFromFile y WriteEntry. Rastrea cómo se enumeran las entradas de directorio y verifica que no se omitan los archivos cuyo nombre comienza por "system". Se considera terminado cuando un archivo generado incluye system.xml, system2.xml y system.txt como los demás archivos.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Describe the bug
I am trying to tar a folder that contains a file that is called "system.xml". It doesn't work. If I however change the name of the file to "ssystem.xml" it works. But if I choose the name "system2.xml" or "system.txt" it doesn't work. So in other words, when I try to create an archive of files and one of the files starts with "system" it isn't added to the archive. Here is my code:
static Task<string> CompressLocalTest()
{
return Task.Run(() =>
{
string sourcePath = @"C:\Users\bla\Documents\Backup";
string destPath = @"C:\Users\bla\Documents\ssss\dd\fck.tar";
using (var outStream = File.Create(destPath))
{
var tarArchive = TarArchive.CreateOutputTarArchive(outStream);
AddDirectoryFilesToTar(tarArchive, sourcePath, true);
}
return destPath;
});
}
public static void AddDirectoryFilesToTar(TarArchive tarArchive, string sourceDirectory, bool recurse)
{
TarEntry tarEntry = TarEntry.CreateEntryFromFile(sourceDirectory);
tarArchive.WriteEntry(tarEntry, recurse);
}
Reproduction Code
No response
Steps to reproduce
- Make a folder that contains a file that has a name that starts with "system"
- Try to make a tar archive using the SharpZipLib code.
Expected behavior
It should add the system.xml file like any other file. When I for instance tar with 7zip it works.
Operating System
Windows
Framework Version
.NET Framework 4.x
Tags
Tar
Additional context
I am using SharpZipLib 1.4.2.
- Lenguaje dominante
- C#
- Estrellas
- 3.9k
- Forks
- 1k
- Métricas de merge de PR
- Sin PR fusionados en 30 d
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 icsharpcode/SharpZipLib
-
*no response* bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100
icsharpcode/SharpZipLib#905 · 1 comentario ·
-
bug bzip2
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
icsharpcode/SharpZipLib#904 ·
-
SetLevel in ZipFile Abiertoenhancement zip
Dificultad 2/5 1-2 días Aptitud para principiantes 55/100
icsharpcode/SharpZipLib#903 ·
-
*no response* bug
Dificultad 4/5 3-5 días Aptitud para principiantes 32/100
icsharpcode/SharpZipLib#901 · 1 comentario ·
-
*no response* bug
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
icsharpcode/SharpZipLib#894 · 1 comentario ·
Todos los issues de icsharpcode/SharpZipLib
Issues similares
-
untriaged
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
dotnet/dotnet-api-docs#13095 ·
-
area-deployment area-integrations triage:bot-seen
Dificultad 2/5 Medio día Aptitud para principiantes 86/100
-
type/automation type/tech-debt
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
-
bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
newrelic/newrelic-dotnet-agent#3850 · 1 comentario ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
LuckyPennySoftware/AutoMapper#4660 ·