opencve icon indicating copy to clipboard operation
opencve copied to clipboard

Get CVE api pagination

Open emehd opened this issue 1 year ago • 1 comments

Expected Behavior

When calling the following URL, the next parameter of the JSON response should contain a link that redirects to page 2

Actual Behavior

When calling the following URL: OPENCVE Microsoft CVE , more than 4 results are returned and pagination provides a link for page 2, but the link in the next parameter of the JSON response is an HTTP link and not an HTTPS link. However, when the link is called, you are redirected to the OPENCVE homepage.

Steps to Reproduce the Problem

  • call https://app.opencve.io/api/cve/?cvss=critical&vendor=microsoft
  • search for the next parameter
  • search for the next parameter and call up the link

Screenshots (optional)

image

emehd avatar Sep 18 '24 07:09 emehd

Oh good catch ! We'll check this issue, thank you for your feedback.

ncrocfer avatar Sep 20 '24 06:09 ncrocfer

Hello,

The bug has been fixed, there is now the correct url to follow, with your example: https://app.opencve.io/api/cve?cvss=critical&vendor=microsoft

count: 508
next: "https://app.opencve.io/api/cve?cvss=critical&page=2&vendor=microsoft"
previous: null

ldurnez avatar Nov 15 '24 15:11 ldurnez