I encounter some strange problems with downloading static resources.
I've got a bunch of images and zips as static resources, which were created some 6 months ago. They downloaded fine, when I created them. They all had "attachment" content disposition. They were not available to the public, as the parent was unpublished. Now, when I wanted to publish them as a part of a section, they fail to download.
I tried all sorts of modifications to those resources -- changing names, changing files, re-publishing, changing content type and disposition, duplicating them -- to no avail. The thumbnails for images display OK (they are fed with +content:phpthumbof... tag) but the target image doesn't download. The browser sends a request and it has no response.
Strange thing is, when I create a new static resource with the same files as the old ones, it works! It downloads without problems. Well, almost. Although the images show and zips are written do disk there is a report in MODX errror log:
(ERROR @ /index.php) Could not retrieve data to cache for resource 146
This error appears despite of the resource being downloaded, despite the success or failure.
Additionally in Opera I observe the download fail (I mean its status in download manager) although it downloads ok. If I choose to open the image with Opera it displays but the request continues and hangs. Also, although the popup for action displays a correct download size, the download manager doesn't display it. Nothing of this happens when downloading via direct link from web server.
I'm running latest dev branch from Git on:
* Ubuntu Server 10.04 x86_64
* Lighttpd 1.4.26
* PHP Version 5.3.2, FastCGI
* MySQL 5.1.41
Browsers I tested in:
* Opera/9.80 (X11; Linux x86_64; U; pl) Presto/2.9.168 Version/11.50
* Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.1 (KHTML, like Gecko) Ubuntu/11.04 Chromium/13.0.782.218 Chrome/13.0.782.218 Safari/535.1
* Mozilla/5.0 (X11; Linux x86_64; rv:6.0.2) Gecko/20100101 Firefox/6.0.2
Why the old static resources don't download correctly while the new do?