Issue:
I'm unable to delete project using REST API using:
curl -L -X DELETE 'localhost:8080/api/projects/UUID/' -H 'Content-Type: application/json'
Response:
<!doctype html>
<html lang="en">
<head>
<title>Server Error (500)</title>
</head>
<body>
<h1>Server Error (500)</h1><p></p>
</body>
</html>
Steps to reproduce:
export URL="http://localhost:8080/api/projects/";
curl -L -X POST "${URL}" \
-H "Content-Type: application/json" \
-d '{ "name": "test", "input_urls":
"https://github.com/curl/curl/releases/download/curl-7_81_0/curl-7.81.0.tar.gz",
"pipeline": "scan_codebase", "execute_now": "true"}' | jq ".uuid" -e > uuid && \
sleep 10 && curl "${URL}?format=json" |\
jq '.results[] | select(.name == "test") | select(.runs[0].status == "running")' -e && \
curl -L -X DELETE "${URL}$(cat uuid | sed 's/\"//g')/" \
-H "Content-Type: application/json"
Issue:
I'm unable to delete project using REST API using:
Response:
Steps to reproduce: