Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Download Tracking with files that contain a hash are cut off #5877

Closed
enko opened this issue Jul 23, 2014 · 3 comments
Closed

Download Tracking with files that contain a hash are cut off #5877

enko opened this issue Jul 23, 2014 · 3 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.

Comments

@enko
Copy link

enko commented Jul 23, 2014

Go to https://www.untergrundwelle678.de/ and click on on the download button right to the select-box with "MPEG-1 Audio Layer III". If I look in piwik GUI and there under downloads I only see this:

/sites/default/files/[UGW678

It seems that the Filename is cut off after the hash.

I'm using Piwik 2.4.1.

@enko
Copy link
Author

enko commented Aug 1, 2014

Ok, I dug into the code and found out, in short that you cant log files with hashes.

Piwik uses in PageUrl::excludeQueryParametersFromUrl parse_url which is the "culprit", because it thinks that everything after the hash is a fragment, which is perfectly fine, because there is no way to know from a pure URL that this is a file.

I'll close this Ticket and will rename all the files so the downloads can be tracked.

@enko enko closed this as completed Aug 1, 2014
@mattab mattab added the wontfix label Aug 3, 2014
@mattab
Copy link
Member

mattab commented Aug 3, 2014

@enko thanks for your report and analysis of the issue.

@mattab mattab added the Bug For errors / faults / flaws / inconsistencies etc. label Sep 20, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.
Projects
None yet
Development

No branches or pull requests

2 participants