fasten-project / fasten

Analyse package dependency networks at the call graph level
https://www.fasten-project.eu
Apache License 2.0
86 stars 28 forks source link

REST API: package/version endpoint does not work for Debian #500

Closed MagielBruntink closed 1 year ago

MagielBruntink commented 1 year ago

Because of recent changes to getPackageVersion in PackageApi the package/version endpoint for Debian is broken. The ingestArtifactIfNecessary in LazyIngestionProvider throws an exception unless the forge is Maven or PyPI.

https://github.com/fasten-project/fasten/blob/86ea4c074e09d91648ab99091c5c93c002679978/analyzer/restapi-plugin/src/main/java/eu/fasten/analyzer/restapiplugin/api/PackageApi.java#L80

MagielBruntink commented 1 year ago

Proposed fix in PR #501 that does not throw an exception but instead returns false.

MagielBruntink commented 1 year ago

This is fixed for now via PR #501's proposed fix.