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

oraclejre8 8u431 fails to extract #530

Closed
denovodavid opened this issue Oct 15, 2024 · 8 comments · Fixed by #539
Closed

oraclejre8 8u431 fails to extract #530

denovodavid opened this issue Oct 15, 2024 · 8 comments · Fixed by #539
Labels
bug Something isn't working help wanted Extra attention is needed verified

Comments

@denovodavid
Copy link

Bug Report

Package Name: oraclejre8

Current Behaviour

Fails to extract archive.

Expected Behaviour

Extracts archive.

Additional context/output

The download link seems to be wrong, it doesn't download a valid archive. 8u421 works fine, but 8u431 is broken.
Here is log:


7-Zip 24.08 (x64) : Copyright (c) 1999-2024 Igor Pavlov : 2024-08-11

Scanning the drive for archives:
1 file, 11175 bytes (11 KiB)

Extracting archive: C:\Users\David\scoop\apps\oraclejre8\8u431\dl.tar.gz

Can't open as archive: 1
Files: 0
Size:       0
Compressed: 0
ERROR: C:\Users\David\scoop\apps\oraclejre8\8u431\dl.tar.gz
C:\Users\David\scoop\apps\oraclejre8\8u431\dl.tar.gz
Open ERROR: Cannot open the file as [gzip] archive


ERRORS:
Is not archive

Possible Solution

...

System details

Windows version: 10

OS architecture: 64bit

PowerShell version:

Major  Minor  Build  Revision
-----  -----  -----  --------
5      1      19041  5007

Additional software: Windows Terminal

Scoop Configuration

{
  "last_update": "2024-10-16T08:39:20.3039658+11:00",
  "aria2-warning-enabled": false,
  "scoop_branch": "master",
  "scoop_repo": "https://github.com/ScoopInstaller/Scoop",
  "aria2-enabled": false
}
@denovodavid denovodavid added the bug Something isn't working label Oct 15, 2024
@VivienDelmon
Copy link

The downloaded tarball seems very small

Directory: F:\scoop\apps\oraclejre8\8u431

Mode LastWriteTime Length Name


-a--- 16/10/2024 11:30 5304 7zip.log
-a--- 16/10/2024 08:48 11175 dl.tar.gz

@se35710
Copy link
Collaborator

se35710 commented Oct 16, 2024

Downloading directly from the URL in the manifest seems to work, but it fails with Scoop. Need to investigate further.

@se35710 se35710 added help wanted Extra attention is needed verified labels Oct 16, 2024
@shoucandanghehe
Copy link

image
Opening the url in the manifest in a browser will redirect to this image
This is the same one that scoop downloaded

@shoucandanghehe
Copy link

"url": "https://javadl.oracle.com/webapps/download/AutoDL?BundleId=251409_0d8f12bc927a4e2c9f8568ca567db4ee#/dl.tar.gz",

It seems to be a BundleId error, should be 251408

"url": "https://javadl.oracle.com/webapps/download/AutoDL?BundleId=251408_0d8f12bc927a4e2c9f8568ca567db4ee#/dl.tar.gz",

32bit as well, should be 251407

@se35710
Copy link
Collaborator

se35710 commented Oct 16, 2024

It seems the .tar.gz bundles are missing, 251408 and -7 are for .exe files, not for tar.gz.

@BinToss
Copy link

BinToss commented Oct 25, 2024

Parsing the EXEs for the installation files will be infeasible.


The EXE files' manifests contain the following:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
  <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
    <security>
      <requestedPrivileges>
        <requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
      </requestedPrivileges>
    </security>
  </trustInfo>
</assembly>

Searching the entire win x64 installer for the ASCII string requireAdministrator returns three results. Patching all of them to asInvoker (with padding so data isn't offset) "disables" the UAC prompt, but the executables will check for elevation and throw if their process isn't running with admin permissions. See jre-8u431-windows-x64.exe -> Binarycustomactions (type: DLL; Export: (7: IsUserAdmin))

Unpacking via 7-Zip will be impractical; most of the contents of Data1.cab are renamed and I'm unsure of where to look for the filenames (are they stored as hashes?).

If Oracle has intentionally ceased distribution of tarballs, we're SOL.

@BinToss
Copy link

BinToss commented Oct 26, 2024

https://helpx.adobe.com/coldfusion/kb/coldfusion-downloads.html#:~:text=JAVA%20SE%208U431%20RUNTIME%20ENVIRONMENT
Alternatively, Adobe redistributes JRE 8u431 in both EXE and ZIP forms without requiring sign-ins.

@themagicalmammal
Copy link

#538 Might be related

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed verified
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants