question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug: ipfs:// drops query and hash parts

See original GitHub issue

To reproduce have IPFS enabled and local node is running.

#fragment

  • enter ipfs://bafybeiemxf5abjwjbikoz4mc3a3dla6ual3jsgpdr4cjr3oz3evfyavhwq/wiki/Vincent_van_Gogh.html#Emerging_artist via address bar
    • 💔 it loads, but does not jump to #Emerging_artist header, and the fragment is also removed from address bar

This makes it impossible for people to link to specific sections of documents

?query=params

  • ipfs://bafybeiemxf5abjwjbikoz4mc3a3dla6ual3jsgpdr4cjr3oz3evfyavhwq/I/m/Vincent_van_Gogh_-_Self-Portrait_-_Google_Art_Project_(454045).jpg?filename=test.jpg&download=true
    • 💔 query parameters are not forwarded to the gateway, which in turns produces gateway response missing Content-Disposition header

This makes it impossible to create a link which triggers download instead of having file rendered in browser.

@autonome @bbondy I think we want to fix both, but lmk if there is a reason to keep current behavior.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
yrlioucommented, Jan 25, 2021

With https://github.com/brave/brave-core/pull/7693, we won’t drop query parameters anymore, but currently we get Content-Disposition: inline; filename*=UTF-8''test.jpg instead of attachment for ipfs://bafybeiemxf5abjwjbikoz4mc3a3dla6ual3jsgpdr4cjr3oz3evfyavhwq/I/m/Vincent_van_Gogh_-Self-Portrait-Google_Art_Project(454045).jpg?filename=test.jpg&download=true, so brave won’t open a download dialog but only renders it in the browser. This is because https://github.com/ipfs/go-ipfs/pull/7677 is merged after go-ipfs 0.7.0 release which brave is currently using.

0reactions
stephendonnercommented, Feb 12, 2021

👋🏼 @stephendonner 😁

Small 🌎 ; fancy meeting you here! Brought a smile to my face to know another awesome Mozillian was “at the other end.” ❤️

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to integrate IPFS with Ethereum explained - QuickNode
1. It can be costly to store massive files on a blockchain mainnet, and this is where decentralized file... 2. The web that...
Read more >
colog package - github.com/keks/go-ipfs-colog - Go Packages
Contains returns whether an Entry with Hash h is stored. func (*CoLog) FetchFromHead ¶. func (l *CoLog) FetchFromHead(head Hash) error.
Read more >
IPFS Getting Started Guide - Filebase
Want to get started using IPFS, but not sure where to begin? This guide walks you through everything you need to know to...
Read more >
Launch Bug: Query Parameter doesn't work with hashtag URL`S
1. First get the hash value: window.location.hash · 2. Do a check to see if it contains a question mark · 3. Get...
Read more >
preupgrade check error - TechNet - Microsoft
The following web part(s) are referenced by the content, but they are not ... feature you have listed, it looks like it was...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found