devonfw / ide

Tool to automate setup and update of development environment (esp. for Java projects).
Apache License 2.0
33 stars 102 forks source link

Failed to download node #1334

Closed devonastro closed 10 months ago

devonastro commented 10 months ago

Expected behavior

as user of devonfw version "2023.07.002", I want to be able to download and install a specific version of nodejs.

Actual behavior

X:\dev\kn\devon\my-app>devon node setup Success: run command mkdir Starting installation of node in version v16.16.0 to /x/dev/kn/devon/my-app/software/node Trying to download node-v16.16.0-windows.tgz from http://de-mucevolve02/files/devonfw-ide/software/node/v16.16.0/node-v16.16.0-windows.tgz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 276 0 0 0 0 0 0 --:--:-- 0:00:02 --:--:-- 0 curl: (22) The requested URL returned error: 404 Failed to download http://de-mucevolve02/files/devonfw-ide/software/node/v16.16.0/node-v16.16.0-windows.tgz with exit code 22

**** ATTENTION **** Failed to download from http://de-mucevolve02/files/devonfw-ide/software/node/v16.16.0/node-v16.16.0-windows.tgz We are sorry for the inconvenience. Please check the above errors, resolve them and try again. Exit code was 22

Steps to reproduce (bug) / Use Case of feature request (enhancement)

Related/Dependent Issues

Comments/Hints:

The filename to be downloaded from the remote repository is incorrect. It tries to download using the URL http://de-mucevolve02/files/devonfw-ide/software/node/v16.16.0/node-v16.16.0-windows.tgz

but the file to download is available via http://de-mucevolve02/files/devonfw-ide/software/node/v16.16.0/nodejs-v16.16.0-windows.tgz

Affected version:

2023.07.002

image

hohwille commented 10 months ago

@devonastro thanks for reporting this. Sorry, to say so but in this case this is not really a bug of devonfw-ide but an intended change that requires some action by your IDE admin. Could you consult the IDE admin of your project (the person who uploaded this .tgz files to this custom repo server de-mucevolve02) to take action and create a copy with node in the filename instead of nodejs. IMHO the URL was wrong from the start because if the folder is named node then also the `.tgzfile needs to be namednodeand notnodejs` so this URL can never have worked.

However, when we decided to implement #1085 we did not think deep enough of the software repository feature and actually I am surprised this is still used by projects after all. If you have a larger migration effort for your custom software repository please get in touch so we can discuss on a feature to somehow have a fallback to legacy behavior if the download fails. However, what you reported is a misconfiguration of your software repository and not a bug of devonfw-ide so, I am closing this bug as invalid. Feel free to respond via comment or to raise a feature request for legacy support if really needed.