From nobody Tue May 17 12:34:47 2022 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id E432C1B34171 for ; Tue, 17 May 2022 12:34:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4L2bD74RMbz3nlG for ; Tue, 17 May 2022 12:34:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 79F8C14C26 for ; Tue, 17 May 2022 12:34:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 24HCYlHt088280 for ; Tue, 17 May 2022 12:34:47 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 24HCYlei088279 for bugs@FreeBSD.org; Tue, 17 May 2022 12:34:47 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 262278] file(1) fails to identify a JAR file Date: Tue, 17 May 2022 12:34:47 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 13.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: michael.osipov@siemens.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652790887; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Yv0vRVm5ZLGmnIc4B8dD597Hlwc8bIFjReybQ0A64zk=; b=EIVeTbgCEwZhix9UnwlExW5LYVdWh/IpJkHJ4vqOTjvnE5GY4edjaAAolandMkn3hVuaKM BpOdRpYsOogWv6HOovQ6JceZNVurh/4bdEL+lPMxhaZBtZVF94XMFQaDxPWvnZHWXybFfh 2vZwmp+xGYJGKEWijMZTeTrec0QSykhZGEPMBAWJD6/uu7+GsMEFJ0fstC3bAByUte/bpL KQSHUAzNNKdGAGO+52ulJQuY8lWWEXCFbIthLBiQ2tu6PSE39Z9wWxXme8Pt6y8p8aOMF0 0H9xPwckgg7KUp2r46l3Jze7j1+maPAROJeQcd97iDXbFQ7wuyMMjs8PVVZiRQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1652790887; a=rsa-sha256; cv=none; b=Gu79zBJ3RvGgB8A+AH1IKa2mjFFNjfnC1nN7rxDmrBGlglDZjb+kCONVMHntfwOdqh43bp rdUSBWBwtHt0aBL997X4s9k7yo+KddOIzmjbb4Th+EnLnSSSIhpPOHtCfvTHO4sVkP8llO aMETdhiowdfgJ6xpbdd9+YjtMXdFXPz5jeT/uTcHZgdLePqyF7JY/+PZpSyqqEn/oGEQHp TCLvrkYtrGCL5RP49sr8a+gFOy4QPBpqfny8NCCYdAZEJvnwp4YfWJY5FV2st5+WXOQga4 HQJiLvh/koZd0zHgplhvA7/pFxJrXf7Q6k2nOrrTdnfwERMuvgKYPtviwR5xMA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262278 --- Comment #4 from Michael Osipov --- In contrast: $ hexdump -C classes/org/apache/maven/SessionScoped.class 00000000 ca fe ba be 00 00 00 34 00 12 07 00 0f 07 00 10 |.......4......= ..| 00000010 07 00 11 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 |......SourceFi= le| 00000020 01 00 12 53 65 73 73 69 6f 6e 53 63 6f 70 65 64 |...SessionScop= ed| Valid JAR: $ hexdump -C maven-core-4.0.0-alpha-1-SNAPSHOT.jar | head 00000000 50 4b 03 04 0a 00 00 08 00 00 89 41 85 52 00 00 |PK.........A.R= ..| 00000010 00 00 00 00 00 00 00 00 00 00 09 00 00 00 4d 45 |..............= ME| 00000020 54 41 2d 49 4e 46 2f 50 4b 03 04 14 00 00 08 08 |TA-INF/PK.....= ..| 00000030 00 89 41 85 52 9c ea 73 82 b1 00 00 00 4e 01 00 |..A.R..s.....N= ..| 00000040 00 14 00 00 00 4d 45 54 41 2d 49 4e 46 2f 4d 41 |.....META-INF/= MA| 00000050 4e 49 46 45 53 54 2e 4d 46 8d 8f d1 0a 82 30 18 |NIFEST.MF.....= 0.| 00000060 85 ef 05 df 61 2f b0 a1 d6 45 78 a7 41 94 60 49 |....a/...Ex.A.= `I| I don't know whether I understand the C code from the old Java 7 launcher correctly, but it is searching for 0xcafe to make it a valid JAR file. Note: I am Maven PMC member and done a lot on the reproducibility topic. --=20 You are receiving this mail because: You are the assignee for the bug.=