devonfw / IDEasy

Tool to automate the setup and updates of a development environment for any project (Successor of devonfw-ide).
Apache License 2.0
8 stars 18 forks source link

Eclipse fails to download installation because url is wrong #341

Open mvomiero opened 3 months ago

mvomiero commented 3 months ago

Actual behavior

Eclipse fails to download installation because the url is wrong. Trying to access the url, you get a 404 - not found error, so the url is not properly computed from EclipseUrlUpdater

Steps to reproduce the bug

  1. ide install eclipse 2023-09
eclipse

Comments/Hints:

hohwille commented 3 months ago

@mvomiero Thanks for creating the bug. Your screenshot is truncated so can not surely see the root cause and also to the right there was more text in the message. Consider pasting stacktraces as text in the future to prevent such information loss.

So far I can observe that NoSuchFileException was causing the move to fail. As I cannot see that the download failed, the question is if the download actually succeeded but for some unclear reason was saved under a different file or some concurrent "thing" happened to delete the file whilst it was supposed to be moved.

Can you reproduce this bug or was it a one shot occasion that you are unable to reproduce again and have no idea how this was possible?

hohwille commented 3 months ago

Ah, OK. You were saying this:

Trying to access the url, you get a 404 - not found error, so the url is not properly computed from EclipseUrlUpdater

So we have two bugs at the same time:

  1. https://github.com/devonfw/ide-urls/blob/master/eclipse/eclipse/2023-09/windows_x64.urls is wrong and leads to 404. Indeed I can confirm this. However, this once worked some time ago and I am 100% sure about it. So again here vendor itself is the evil source of the problem as after publishing releases under some URL they later move or even remove the release breaking the URL. It is actually a university from the Netherlands: https://ftp.snt.utwente.nl/pub/software/eclipse/technology/epp/downloads/release/2023-09/R/eclipse-java-2023-09-R-win32-x86_64.zip Why on earth is this our only mirror? something from the vendor itself (here eclipse) directly should always be the first candidate (so an URL with eclipse.org in the domain) for a tool and optionally additional mirrors may be added if available.
  2. IDEasy itself does not handle 404 error and simply continues ending in this confusing exception stacktrace.