Return-Path: X-Original-To: apmail-maven-issues-archive@minotaur.apache.org Delivered-To: apmail-maven-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1C975172D9 for ; Sat, 9 May 2015 08:51:00 +0000 (UTC) Received: (qmail 80116 invoked by uid 500); 9 May 2015 08:50:59 -0000 Delivered-To: apmail-maven-issues-archive@maven.apache.org Received: (qmail 80063 invoked by uid 500); 9 May 2015 08:50:59 -0000 Mailing-List: contact issues-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list issues@maven.apache.org Received: (qmail 80051 invoked by uid 99); 9 May 2015 08:50:59 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 09 May 2015 08:50:59 +0000 Date: Sat, 9 May 2015 08:50:59 +0000 (UTC) From: "Michael Osipov (JIRA)" To: issues@maven.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MANTRUN-194) Incorrect handling of NUL username and group Tar.gz entries MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MANTRUN-194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14536303#comment-14536303 ] Michael Osipov commented on MANTRUN-194: ---------------------------------------- This is not a bug in this plugin. This has to be fixed in Ant: https://bz.apache.org/bugzilla/show_bug.cgi?id=56641 As soon as 1.9.5 is available add this to your dependencies section of the plugin. I am inclined to close this. > Incorrect handling of NUL username and group Tar.gz entries > ----------------------------------------------------------- > > Key: MANTRUN-194 > URL: https://issues.apache.org/jira/browse/MANTRUN-194 > Project: Maven Antrun Plugin > Issue Type: Bug > Affects Versions: 1.8 > Reporter: Riccardo Sirchia > Labels: close-pending > > This issue is most likely related to the issue described in COMPRESS-278 > When using version 1.8 of the maven-antrun-plugin to untar for example the artifact [apache-activemq-5.11.1-bin.tar.gz|http://search.maven.org/remotecontent?filepath=org/apache/activemq/apache-activemq/5.11.1/apache-activemq-5.11.1-bin.tar.gz] artifact from maven central, I get the following stacktrace: > {code} > java.io.IOException: Error detected parsing the header > at org.apache.tools.ant.taskdefs.Untar.expandFile(Untar.java:116) > at org.apache.tools.ant.taskdefs.Expand.execute(Expand.java:132) > at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:483) > 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.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:313) > ... 21 more > Caused by: 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) > ... 34 more > 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.(TarEntry.java:323) > at org.apache.tools.tar.TarInputStream.getNextEntry(TarInputStream.java:290) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)