OSV.dev API doesn't respect .nuspec package id case-insensitivity

已关闭
#5,292 1 条评论 1 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 1 天内回复

@michaelkedar 已经在做这个了。

开始于 2026年4月30日。

评估

这个 Issue 还没有评估数据。

描述

Describe the bug
The .nuspec specification indicate that package id is case-insensitive. However, the OSV.dev API is case-sensitive for NuGet package id.

To Reproduce
Steps to reproduce the behaviour:

  1. Calling the following don't return any vulnerabilities:
    curl -d \
      '{"package": {"name": "snowflake.Data", "ecosystem": "NuGet"}, "version": "2.1.2"}' \
      "https://api.osv.dev/v1/query"
    
  2. Calling the following return three vulnerabilities:
    curl -d \
      '{"package": {"name": "Snowflake.Data", "ecosystem": "NuGet"}, "version": "2.1.2"}' \
      "https://api.osv.dev/v1/query"
    

Expected behaviour
The OSV.dev API respect the .nuspec specification case-insensitivity for package id. Invoking the API for NuGet package id snowflake.Data should return the same results as for Snowflake.Data for a given version.

Screenshots

Calling the API for snowflake.Data:

Image

Calling the API for Snowflake.Data:

Image
主要语言
Go
星标
3k
派生
392
平均合并
22 小时 24 分钟
30 天内合并 PR
125

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

google/osv.dev 的其他 Issue

查看 google/osv.dev 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。