You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2014/06/18 22:39:02 UTC
[Bug 56641] New: untar fails with Error detected parsing the headr
https://issues.apache.org/bugzilla/show_bug.cgi?id=56641
Bug ID: 56641
Summary: untar fails with Error detected parsing the headr
Product: Ant
Version: 1.9.4
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: Core tasks
Assignee: notifications@ant.apache.org
Reporter: stanchev@hotmail.com
Created attachment 31727
--> https://issues.apache.org/bugzilla/attachment.cgi?id=31727&action=edit
binary artifact to reproduce the issue
Ran into this issue when trying to compile Tomcat 7.0_54 with Ant 1.9.4. It
looks like a regression since 1.9.3 works fine. Look at the attached binary
artifact. Place in a directory together and run ant-1.9.4 against it. Exception
below [1]
Script:
<?xml version="1.0"?>
<project name="bugtest" default="extract_test" basedir=".">
<target name="extract_test">
<gunzip src="commons-logging-1.1.3-src.tar.gz"
dest="${basedir}/commons-logging-src.tar"/>
<untar src="${basedir}/commons-logging-src.tar"
dest="${basedir}/result/" />
</target>
</project>
[1]
java.io.IOException: Error detected parsing the header
at
org.apache.tools.tar.TarInputStream.getNextEntry(TarInputStream.java:292)
at org.apache.tools.ant.taskdefs.Untar.expandStream(Untar.java:165)
at org.apache.tools.ant.taskdefs.Untar.expandFile(Untar.java:114)
at org.apache.tools.ant.taskdefs.Expand.execute(Expand.java:132)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
at
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:441)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
at org.apache.tools.ant.Main.runBuild(Main.java:851)
at org.apache.tools.ant.Main.startAnt(Main.java:235)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Caused by: java.lang.IllegalArgumentException: Invalid byte 32 at offset 7 in '
{NUL}' len=8
at org.apache.tools.tar.TarUtils.parseOctal(TarUtils.java:134)
at org.apache.tools.tar.TarUtils.parseOctalOrBinary(TarUtils.java:172)
at org.apache.tools.tar.TarEntry.parseTarHeader(TarEntry.java:912)
at org.apache.tools.tar.TarEntry.parseTarHeader(TarEntry.java:899)
at org.apache.tools.tar.TarEntry.<init>(TarEntry.java:323)
at
org.apache.tools.tar.TarInputStream.getNextEntry(TarInputStream.java:290)
... 31 more
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 56641] untar fails with Error detected parsing the headr
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56641
Stefan Bodewig <bo...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |artus@ionoi.net
--- Comment #3 from Stefan Bodewig <bo...@apache.org> ---
*** Bug 56656 has been marked as a duplicate of this bug. ***
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 56641] untar fails with Error detected parsing the headr
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56641
George Stanchev <st...@hotmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
OS| |All
--- Comment #1 from George Stanchev <st...@hotmail.com> ---
The binary gzip file attached needs to be named to
"commons-logging-1.1.3-src.tar.gz"
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 56641] untar fails with Error detected parsing the headr
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56641
Stefan Bodewig <bo...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
Target Milestone|--- |1.9.5
--- Comment #2 from Stefan Bodewig <bo...@apache.org> ---
Yes, this is the same issue as
https://issues.apache.org/jira/browse/COMPRESS-278 over at Commons Compress.
Merged the change with git commit 34fdc2f
--
You are receiving this mail because:
You are the assignee for the bug.