Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package download fails for open-jdk #9489

Open
cgi-ricardo opened this issue Nov 22, 2024 · 2 comments
Open

Package download fails for open-jdk #9489

cgi-ricardo opened this issue Nov 22, 2024 · 2 comments
Labels
bug Issues that are considered to be bugs downloader About the downloader tool needs info An issue where further information is required

Comments

@cgi-ricardo
Copy link

Describe the bug

We provide https://hg.openjdk.org/jdk-updates/jdk9u/archive/1b1226687b89.zip to ORT to download but it fails with:

IOException: Could not resolve provenance for package 'Unmanaged::open-jdk:9.0.4+12' for source code origins [VCS, ARTIFACT]. Resolution of ARTIFACT failed with: StreamResetException: stream was reset: INTERNAL_ERROR

To Reproduce

Run ORT with input:

    packages:
    - id: "Unmanaged::open-jdk:9.0.4+12"
      purl: ""
      declared_licenses: []
      declared_licenses_processed: {}
      description: ""
      homepage_url: ""
      binary_artifact:
        url: ""
        hash:
          value: ""
          algorithm: ""
      source_artifact:
        url: "https://hg.openjdk.org/jdk-updates/jdk9u/archive/1b1226687b89.zip"
        hash:
          value: ""
          algorithm: ""
      vcs:
        type: ""
        url: ""
        revision: ""
        path: ""
      vcs_processed:
        type: ""
        url: ""
        revision: ""
        path: ""

Expected behavior

ORT should download it and get the output data result

Console / log output

n/a

Environment

  environment:
    ort_version: "25.1.0"
    build_jdk: "11.0.23+9"
    java_version: "17.0.11"
    os: "Linux"
@cgi-ricardo cgi-ricardo added bug Issues that are considered to be bugs to triage Issues that need triaging labels Nov 22, 2024
@sschuberth
Copy link
Member

I can easily reproduce this with

ort download --project-url https://hg.openjdk.org/jdk-updates/jdk9u/archive/1b1226687b89.zip --output-dir out/issues/9489

@sschuberth sschuberth added downloader About the downloader tool and removed to triage Issues that need triaging labels Nov 22, 2024
@sschuberth
Copy link
Member

According to comments like this, it's a server-side configuration problem that I'm unsure how to work around.

Can you maybe just use another download location for that JDK, @cgi-ricardo?

@sschuberth sschuberth added the needs info An issue where further information is required label Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues that are considered to be bugs downloader About the downloader tool needs info An issue where further information is required
Projects
None yet
Development

No branches or pull requests

2 participants