Skip to content
This repository has been archived by the owner on Aug 2, 2021. It is now read-only.

Gateway reuturns error if browsed by hash #2145

Open
crtahlin opened this issue Mar 27, 2020 · 1 comment
Open

Gateway reuturns error if browsed by hash #2145

crtahlin opened this issue Mar 27, 2020 · 1 comment

Comments

@crtahlin
Copy link

System information

Swarm version: swarm gateway
OS & Version: Linux
Commit hash : (if develop)

Actual behaviour

Using the swarm gateway at: https://swarm-gateways.net/
After file upload, I can either copy the link to the file or the hash.
If I "browse" and use the hash, I get an error (could not find resource):

image

Expected behaviour

When using the hash to browse, I would expect the manifest to open in possibly a user friendly overview or at least as a text file.
Also, I would welcome a short description on the GUI of what one can actually do with the hash (what is a manifest).

Steps to reproduce the behaviour

Open https://swarm-gateways.net/, upload file, copy hash of uploaded file, click "browse", copy hash as input, confirm.

Backtrace

[backtrace]
@janos
Copy link
Member

janos commented Mar 27, 2020

Hi @crtahlin. This is a known issue with the frontend upload as it does not set the default path. Browsing files uploaded with web interface is currently working with appending a filename to the hash like 09853237b654879acb89422970156096622eccaca79be60c2798b1bd2ff43a86/swarm.txt.

There is a button on the upload page which would copy the complete link to the clipboard like https://swarm-gateways.net/bzz:/09853237b654879acb89422970156096622eccaca79be60c2798b1bd2ff43a86/swarm.txt. Using only the hash is not working with web uploads.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants