filter `IsLatestVersion` returns invalid response for package `Microsoft.PowerShell.PSResourceGet`
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
調査の方向性
Start by tracing the NuGet v2 API handling for FindPackagesById() and the IsLatestVersion filter, comparing the reported request with and without a leading space. Reproduce the response for Microsoft.PowerShell.PSResourceGet and inspect the code and tests that build the feed XML. Done means the API returns one package entry for the filtered package ID, with valid feed structure.
索引モデルが issue の本文から書いたものです。
説明
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest version
- Search the existing issues.
Steps to reproduce
- Call
FindPackagesById()for packageJiraPSvia the PSGallery NuGet v2 API - example API call:https://www.powershellgallery.com/api/v2/FindPackagesById()?id=%27JiraPS%27&$filter=IsLatestVersion - Repeat the same API call for package
Microsoft.PowerShell.PSResourceGet- example call:https://www.powershellgallery.com/api/v2/FindPackagesById()?id=%27Microsoft.PowerShell.PSResourceGet%27&$filter=IsLatestVersion - Repeat the same API call for package
Microsoft.PowerShell.PSResourceGet, but this time add a space to the front of the filter string:https://www.powershellgallery.com/api/v2/FindPackagesById()?id=%27Microsoft.PowerShell.PSResourceGet%27&$filter=%20IsLatestVersion
Expected behavior
All 3 API calls return one and only one package (with the latest version) for their respective package IDs
Actual behavior
API call #2 returns invalid NuGet XML response, but calls 1 and 3 work as expected
Error details
N/A
Environment data
N/A
Version
N/A
Visuals
XML response from API call number 2 is:
<?xml version="1.0" encoding="utf-8"?>
<feed xml:base="https://www.powershellgallery.com/api/v2"
xmlns="http://www.w3.org/2005/Atom"
xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"
xmlns:georss="http://www.georss.org/georss"
xmlns:gml="http://www.opengis.net/gml">
<m:count>1</m:count>
<id>http://schemas.datacontract.org/2004/07/</id>
<title/>
<updated>2024-05-15T01:39:20Z</updated>
<link rel="self"
href="https://www.powershellgallery.com/api/v2/Packages"/>
<author>
<name/>
</author>
</feed>
Of particular interest is:
<m:count>1</m:count>suggests one<entry>should be present, but there are none.<author>should be under an<entry>, not the<feed>. (It's also null for some reason?)
- 主要言語
- PowerShell
- スター
- 289
- フォーク
- 83
- 平均マージ
- 1分
- マージ済み PR(30日)
- 1
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
PowerShell/PowerShellGallery のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
PowerShell/PowerShellGallery#357 · コメント 3 件 · リアクション 4 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 48/100
PowerShell/PowerShellGallery#355 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 31/100
PowerShell/PowerShellGallery#354 · コメント 1 件 · リアクション 3 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
PowerShell/PowerShellGallery#353 · リアクション 5 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
PowerShell/PowerShellGallery#350 · コメント 7 件 · リアクション 8 件 ·
PowerShell/PowerShellGallery の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
riverqueue/river#1576 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
gitroomhq/postiz-app#2373 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[bug] A capability assessment drops the answers of its fifth and later requests対応中かも @jwiegley が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
DevMortimer/pi-warden#210 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
stadelmanma/fitparse-rs#64 ·
-
area: ai bug priority: low qa-sweep
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
snapotter-hq/SnapOtter#4437 ·
メンテナーはふだん 1 日以内に返信