Uploaded image for project: 'SonarScanner CLI'
  1. SonarScanner CLI
  2. SQSCANNER-103

Fix ZipException exceptions in Sonar Scanner Docker CLI

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 4.7
    • Fix Version/s: 4.7.1
    • Labels:
      None
    • Estimate:
      Hours

      Description

      The Zlib 1.2.12 contains bug that happens sometimes for our users when scanning a project resulting in exceptions:
      Caused by: java.util.zip.ZipException: invalid entry CRC (expected 0x31cad256 but got 0x7dadc14)
      Caused by: java.util.zip.ZipException: Corrupt GZIP trailer
      and others similar.

      The Alpine distribution did not release new version yet that doesn't contain this bug, but has already merged the fix to both 3.15 and 3.14 branches.

      https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/33688
      https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/33711

      More here: https://github.com/madler/zlib/issues/426#issuecomment-1095195542 and on our internal forum.

      The likely solution is to release new version of docker CLI scanner when new Alpine releases are available.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              lukasz.jarocki Ɓukasz Jarocki
              Reporter:
              wouter.admiraal Wouter Admiraal
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated: