Loading...
 
Skip to main content

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
(0)
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:

https://cl.ly/e51ea86f0b21

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+
Demonstrate Bug (older Tiki versions)
Ticket ID
7139
Created
Tuesday 23 July, 2019 08:40:32 UTC
by G.
LastModif
Wednesday 24 July, 2019 01:52:42 UTC


Show PHP error messages