Ampache

Do not issue any bug reports against versions earlier than 3.5.4 they will be closed.

Furthermore, we cannot accept bugs about metadata or art handling in 3.5.4 due to the large number of bugs that have been fixed since then. 3.5.4 in general is becoming less supportable, and it is suggested to try to reproduce the bug in the latest nightly.

Before submitting a bug please read http://ampache.org/wiki/support:bugs failure to do so may delay resolution of your report.


Tasklist

FS#209 - [With fix] Google Chrome doesn't show album arts when album name contains commas

Attached to Project: Ampache
Opened by Sébastien LIENARD (SLiX) - Thursday, 19 January 2012, 02:10 GMT-8
Last edited by Paul Arthur (flowerysong) - Monday, 20 February 2012, 20:44 GMT-8
Task Type Bug
Category Metadata
Status Closed
Assigned To No-one
Operating System
Severity Medium
Priority Normal
Reported Version 3.6.0-Dev
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Initially detected in v3.5.4 and confirmed in 3.6.0-Dev (nightly build 2012-01-19).

Since a undertermined version of Google Chrome, the browser show broken files for art of albums containing commas (,) in their name.

Google Chrome instead says "Error 349 (net::ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_DISPOSITION)"

After some investigations, it seems that Chrome believes that commas end header values and that there are multiple values.

So, I fix this on my installation by enclosing header value by double quotes ("), exemple:

In image.php, line 127:
header("Content-Disposition: filename=" . scrub_out($media->name) . "." . $extension);
become:
header('Content-Disposition: filename="' . scrub_out($media->name) . "." . $extension . '"');
This task depends upon

Closed by  Paul Arthur (flowerysong)
Monday, 20 February 2012, 20:44 GMT-8
Reason for closing:  Fixed

Loading...