Skip to content

Add validation for release version machine names and make the /p endpoint fail more gracefully

It was reported that the following endpoint is returning a 500 error:

https://marketplace.eclipse.org/popular/top/api/p?client=org.eclipse.epp.mpc.coros=linux&platform.version=4.38

After investigation, I found that the 4.38 release version was not properly added to the site.

The machine name for that release does not match the expected format (4.38) but was instead created as 2025_12_4_38.

This appears to be a human error when creating the new supported release in the UI.

To prevent this type of issue in the future, I recommend:

  • Adding validation to the Drupal form to ensure that release machine names strictly follow the 4.xx numeric pattern.
  • Make the /p endpoint fail more gracefully so that it doesn't throw 500 errors.

This solution would help avoid future human errors and doesn't break when being called from the IDE.

Edited by Eric Poirier