filter `IsLatestVersion` returns invalid response for package `Microsoft.PowerShell.PSResourceGet`
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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?)
- Lenguaje dominante
- PowerShell
- Estrellas
- 289
- Forks
- 83
- Merge medio
- 1 min
- PR fusionados (30 d)
- 1
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de PowerShell/PowerShellGallery
-
Dificultad 4/5 3-5 días Aptitud para principiantes 38/100
PowerShell/PowerShellGallery#357 · 3 comentarios · 4 reacciones ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 48/100
PowerShell/PowerShellGallery#355 ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 31/100
PowerShell/PowerShellGallery#354 · 1 comentario · 3 reacciones ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
PowerShell/PowerShellGallery#353 · 5 reacciones ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
PowerShell/PowerShellGallery#350 · 7 comentarios · 8 reacciones ·
Todos los issues de PowerShell/PowerShellGallery
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
riverqueue/river#1576 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
gitroomhq/postiz-app#2373 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
[bug] A capability assessment drops the answers of its fifth and later requestsPosiblemente ocupada @jwiegley la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
DevMortimer/pi-warden#210 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
stadelmanma/fitparse-rs#64 ·
-
area: ai bug priority: low qa-sweep
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
snapotter-hq/SnapOtter#4437 ·
Los mantenedores suelen responder en 1 día