Clicking a file link in a diff view in comment produces garbled data
- Status
- Open
- Subject
- Clicking a file link in a diff view in comment produces garbled data
- Version
- 19.x
- Category
- Bug
- Usability
- Feature
- Comment
User Files - Resolution status
- New
- Submitted by
- G.
- Keep informed
- Jonny Bradley, Marc Laporte
- Lastmod by
- G.
- Rating
- Description
Trying to download an uploaded file through the diff view in a comment produces garbled data instead of downloading the file. The file can still be downloaded through a right-click and open in a new tab. But if clicking directly on the link, rather than downloading, it's opening the data of the file within the comment.
See following GIF that shows the downloading failing at first, with garbled data, and then the possible download through right-click:
I'm not familiar enough yet with the code to be able to narrow the issue. I dug until the `{trackeroutput}` custom smarty function and the `field_render_value` but I'm not sure where the issue is. For both cases where the link to download a file works and for when it doesn't work, the url (and whole html tag attributes) is the same, so I suspect it's javascript that is doing something but there's so many libs that I need some advice on where to look for.
- Importance
- 5
- Priority
- 25
- Demonstrate Bug on Tiki 19+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 7139
- Created
- Tuesday 23 July, 2019 08:40:32 UTC
by G. - LastModif
- Wednesday 24 July, 2019 01:52:42 UTC