filter `IsLatestVersion` returns invalid response for package `Microsoft.PowerShell.PSResourceGet`
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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?)
- Ngôn ngữ chính
- PowerShell
- Star
- 289
- Fork
- 83
- Merge trung bình
- 1 phút
- Pull request đã merge (30 ngày)
- 1
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của PowerShell/PowerShellGallery
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 38/100
PowerShell/PowerShellGallery#357 · 3 bình luận · 4 reaction ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 48/100
PowerShell/PowerShellGallery#355 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 31/100
PowerShell/PowerShellGallery#354 · 1 bình luận · 3 reaction ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
PowerShell/PowerShellGallery#353 · 5 reaction ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
PowerShell/PowerShellGallery#350 · 7 bình luận · 8 reaction ·
Tất cả issue của PowerShell/PowerShellGallery
Issue tương tự
-
bug file-compat priority: high
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
storytold/photocraft#11330 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
bretterer/home-assistant-rivian#335 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
mampfes/hacs_waste_collection_schedule#8114 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 69/100
UKGovernmentBEIS/inspect_ai#6321 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Paginate GET /api/v1/consentsĐang mởenhancement help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
samiromer2/Ruby-Consent-Portal#28 ·
Maintainer thường phản hồi trong vòng 1 ngày