Set Pinning - Doesn't send the folder name

Aperta
#2,067 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

  • #2506 di @sap1110 — chiusa senza merge

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
javascript, react
Ambito
api, frontend

Direzione di ricerca

Inizia tracciando il flusso di “set pinning” in Settings e nell’elenco dei file fino alla richiesta POST descritta nell’issue, confrontando i casi in cui il nome della cartella è presente o assente. Verifica il fix con un’istanza di sviluppo di Pinning Service API e conferma che il payload includa name insieme a cid e origins.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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
    ]
}
Lingua principale
JavaScript
Stelle
1.6k
Fork
539
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ipfs/ipfs-webui

Tutte le issue di ipfs/ipfs-webui

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.