eclipse-sw360 / sw360

SW360 project
https://www.eclipse.org/sw360/
Other
119 stars 98 forks source link

fix(rest): Fix internal server error with 500 status code for link project to projects endpoint. #2473

Closed akshitjoshii closed 1 month ago

akshitjoshii commented 4 months ago

Fixes the issue where linking of projects was not possible when projects passed in the request body did not have any linkedProject to them. (couchDB project document did not have a linkedProject object).

Endpoint : http://localhost:8080/resource/api/projects/{src_project_id}/linkProjects

Request body : array of project ids to be linked.

image

closes : #2472

rudra-superrr commented 4 months ago

Looks good to me.

GMishx commented 1 month ago

@akshitjoshii please rebase with latest main for merge.