File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed
Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ Version v30.0.0
6161
6262- Add authentication for REST API endpoint.
6363 The autentication is disabled by default and can be enabled using the
64- SCANCODEIO_REQUIRE_AUTHENTICATION settings.
64+ VULNERABLECODEIO_REQUIRE_AUTHENTICATION settings.
6565 When enabled, users have to authenticate using
6666 their API Key in the REST API.
6767 Users can be created using the Django "createsuperuser" management command.
Original file line number Diff line number Diff line change @@ -308,12 +308,11 @@ def bulk_search(self, request):
308308 """
309309 This endpoint is used to search for vulnerabilities by more than one CPE.
310310 """
311- response = []
312311 cpes = request .data .get ("cpes" , []) or []
313312 if not cpes or not isinstance (cpes , list ):
314313 return Response (
315314 status = 400 ,
316- data = {"Error" : "A non-empty 'cpe ' list of package URLs is required." },
315+ data = {"Error" : "A non-empty 'cpes ' list of CPEs is required." },
317316 )
318317 for cpe in cpes :
319318 if not cpe .startswith ("cpe" ):
Original file line number Diff line number Diff line change @@ -378,7 +378,7 @@ def test_with_empty_list(self):
378378 data = json .dumps (request_body ),
379379 content_type = "application/json" ,
380380 ).json ()
381- assert response == {"Error" : "A non-empty 'cpe ' list of package URLs is required." }
381+ assert response == {"Error" : "A non-empty 'cpes ' list of CPEs is required." }
382382
383383 def test_with_invalid_cpes (self ):
384384 request_body = {"cpes" : ["CVE-2022-2022" ]}
You can’t perform that action at this time.
0 commit comments