Set Pinning - Doesn't send the folder name

Abierto
#2,067 4 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

  • #2506 de @sap1110 — cerrado sin fusionar

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
javascript, react
Área
api, frontend

Línea de trabajo

Comienza siguiendo el flujo de “set pinning” en Settings y en la lista de archivos hasta la solicitud POST descrita en el issue, comparando los casos en los que el nombre de la carpeta está presente o falta. Verifica el fix con una instancia de desarrollo de Pinning Service API y confirma que el payload incluye name junto con cid y origins.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

effort/hours exp/beginner good first issue kind/bug P0 status/ready
  • OS: macOs
  • Version of IPFS Desktop: 0.24.0

Describe the bug
When pinning a folder to a remote service through the Pinning Service API, the client sometimes does not send the name over.
The payload of the POST request sent contains the cid and origins but no name.

This has been raised by a user on a web3.storage issue.
To verify it wasn't a problem in web3.storage implementation I tested this against a development instance of the service and logged Add pin payload to confirm no name is provided.

Unfortunately, this happens randomly, it sometimes does and sometimes doesn't, and I couldn't quite figure out a consistent way to reproduce it.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'settings'
  2. Add web3.storage
  3. Go to the file list
  4. Click on the 3 dots on the right -> set pinning to the newly added service
  5. Navigate to https://web3.storage/account/?table=pinned
  6. See file appearing with "no name"

Expected behavior
It should send the name.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Please be aware that in order to be able to be able to pin on Web3.storage you need to have the PSA enabled, see docs.
In order to see the table you need to have at least a succesful pin.

Example of payload sent:

{
    "cid": "QmeWZGxrwPyR532r4HTHUwWo6zJPZKxzPMnsm3Smbi2TDv",
    "origins": [
        "/ip4/192.168.1.3/tcp/4001/p2p/12D3KooWF59pZMi2q4qqqz6Mimi5oULWFQABYGXSQjNkR6sKC1kD",
        .. more origins
    ]
}
Lenguaje dominante
JavaScript
Estrellas
1.6k
Forks
539
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ipfs/ipfs-webui

Todos los issues de ipfs/ipfs-webui

Issues similares

Más issues de JavaScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.