android-platform-tools-apksig: FTBFS: dh_auto_test: error: gradle --info --console plain --offline --stacktrace --no-daemon --refresh-dependencies --gradle-user-home .gradle -Duser.home=. -Duser.name=debian -Ddebian.package=android-platform-tools-apksig -Dfile.encoding=UTF-8 --parallel --max-workers=8 test returned exit code 1

Bug #2056087 reported by Vladimir Petko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
android-platform-tools-apksig (Debian)
Fix Released
Unknown
android-platform-tools-apksig (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

The package fails to build from source due to the test failures:

> com.android.apksig.ApkVerifierTest > testV2SignatureDoesNotMatchSignedDataRejected FAILED
> java.lang.AssertionError: APK failed verification for the wrong reason. Expected: V2_SIG_VERIFY_EXCEPTION, actual: APK Signature Scheme v2 signer signer #1: RSA_PKCS1_V1_5_WITH_SHA256 signature over signed-data did not verify
> at org.junit.Assert.fail(Assert.java:89)
> at com.android.apksig.ApkVerifierTest.assertVerificationFailure(ApkVerifierTest.java:1534)
> at com.android.apksig.ApkVerifierTest.assertVerificationFailure(ApkVerifierTest.java:1601)
> at com.android.apksig.ApkVerifierTest.testV2SignatureDoesNotMatchSignedDataRejected(ApkVerifierTest.java:345)
>
> com.android.apksig.AllTests > com.android.apksig.ApkVerifierTest.testV2RsaPssSignatureDoesNotMatchSignedDataRejected SKIPPED
>
> com.android.apksig.AllTests > com.android.apksig.ApkVerifierTest.testV2OneSignerOneRsaPssSignatureAccepted SKIPPED
>
> com.android.apksig.AllTests > com.android.apksig.ApkVerifierTest.testV2SignatureDoesNotMatchSignedDataRejected FAILED
> java.lang.AssertionError: APK failed verification for the wrong reason. Expected: V2_SIG_VERIFY_EXCEPTION, actual: APK Signature Scheme v2 signer signer #1: RSA_PKCS1_V1_5_WITH_SHA256 signature over signed-data did not verify
> at org.junit.Assert.fail(Assert.java:89)
> at com.android.apksig.ApkVerifierTest.assertVerificationFailure(ApkVerifierTest.java:1534)
> at com.android.apksig.ApkVerifierTest.assertVerificationFailure(ApkVerifierTest.java:1601)
> at com.android.apksig.ApkVerifierTest.testV2SignatureDoesNotMatchSignedDataRejected(ApkVerifierTest.java:345)
> Gradle Test Executor 1 finished executing tests.
> WARNING: A terminally deprecated method in java.lang.System has been called

Tags: ftbfs

Related branches

Changed in android-platform-tools-apksig (Debian):
status: Unknown → New
Revision history for this message
Vladimir Petko (vpa1977) wrote :

piuparts install/upgrade/purge test (pass)

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package android-platform-tools-apksig - 31.0.2-1ubuntu1

---------------
android-platform-tools-apksig (31.0.2-1ubuntu1) noble; urgency=medium

  * d/p/update-failure-reason: update test assertion due to
    java.security implementation changes (LP: #2056087).

 -- Vladimir Petko <email address hidden> Wed, 06 Mar 2024 13:43:53 +1300

Changed in android-platform-tools-apksig (Ubuntu):
status: New → Fix Released
Vladimir Petko (vpa1977)
tags: added: ftbfs
Changed in android-platform-tools-apksig (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.