Maven Node JS Proxy: Binary File Structre changed in NPM Versions > 0.x

Description

the URL structure for windows binaries provided on the nodejs download site changed between NPM 0.x and 4.x:

0.x: https://nodejs.org/dist/v0.9.12/ - node.exe in root dirrectory
4.x: https://nodejs.org/dist/v4.0.0/ - node.exe in subdirectories

additionally we have a hard-coded check on version "2.x" in the code which has to be adapted.

Activity

Show:
Stefan Seifert
March 22, 2016, 4:54 PM

this is a bit more complicated because since v4.0.0 also no more SHA-1 checksum files are provided on the nodejs dist folder. only SHA-256 files. but maven does still only support SHA-1 checksums.
so we have to validated the binary while downloading to the proxy via SHA-256, and generate a new SHA-1 checksum for Maven after this for output.

Stefan Seifert
March 22, 2016, 5:19 PM

rev. 323e6482794114c0df6677caa94b1b6895a00738

also added integration tests

Fixed

Assignee

Unassigned

Reporter

Stefan Seifert

Labels

None

Components

Fix versions

Affects versions

Priority

Major