Caching error with uploaded text-based files
Posted: Tue Oct 08, 2013 9:02 pm
Hello,
Many thanks to the CMSMS folks for all their hard work and for the great CMSMS solution.
I've encountered an odd bug which occurs when a text-based file is uploaded using the File Manager. The glitch can be reproduced as follows:
1. Create a text file locally named "test_upload.txt" and on the first line put the line "TEST01".
2. Upload the file using the File Manager to the /uploads directory.
3. Once the file has been uploaded, use your web browser to view test_upload.txt (i.e. http://[your_domain]/uploads/test_upload.txt).
You should see:
TEST01
4. Edit the local version of test_upload.txt and modify it by leaving the first line blank and putting "TEST02" on the second line.
5. Re-upload the modified test_upload.txt using the File Manager to the /uploads directory.
6. Use your web browser to again view test_upload.txt.
Instead of seeing the expected:
(blank line)
TEST02
you will see:
TEST01
TEST02
This doesn't appear to related to the local browser cache as I've emptied my cache and reloaded the page and still see the odd result.
Also clearing the CMSMS server cache via the CMSMS admin console doesn't seem to rectify the issue.
Interestingly, if I re-upload the modified test_upload.txt a second time, then I get the expected result.
This has been tested using the following web browsers on both Windows 7 and Windows 8:
- Firefox v.25
- IE 9
- IE 10
This bug also occurs on clean installs of the following CMSMS versions (using default modules only):
- 1.11.7
- 1.11.8
- 1.11.9
The above CMSMS versions were tested on both Windows and Linux configurations:
Windows running XAMPP 1.8.3
- Apache 2.4.4
- MySQL 5.6.11
- PHP 5.5.3
- phpMyAdmin 4.0.4
- FileZilla FTP Server 0.9.41
- Tomcat 7.0.42 (with mod_proxy_ajp as connector)
- Strawberry Perl 5.16.3.1 Portable
- XAMPP Control Panel 3.2.1 (from hackattack142)
Linux Hosting at 1&1
- PHP 5.4
I'd appreciate any help or insight.
Thanks!
Many thanks to the CMSMS folks for all their hard work and for the great CMSMS solution.
I've encountered an odd bug which occurs when a text-based file is uploaded using the File Manager. The glitch can be reproduced as follows:
1. Create a text file locally named "test_upload.txt" and on the first line put the line "TEST01".
2. Upload the file using the File Manager to the /uploads directory.
3. Once the file has been uploaded, use your web browser to view test_upload.txt (i.e. http://[your_domain]/uploads/test_upload.txt).
You should see:
TEST01
4. Edit the local version of test_upload.txt and modify it by leaving the first line blank and putting "TEST02" on the second line.
5. Re-upload the modified test_upload.txt using the File Manager to the /uploads directory.
6. Use your web browser to again view test_upload.txt.
Instead of seeing the expected:
(blank line)
TEST02
you will see:
TEST01
TEST02
This doesn't appear to related to the local browser cache as I've emptied my cache and reloaded the page and still see the odd result.
Also clearing the CMSMS server cache via the CMSMS admin console doesn't seem to rectify the issue.
Interestingly, if I re-upload the modified test_upload.txt a second time, then I get the expected result.
This has been tested using the following web browsers on both Windows 7 and Windows 8:
- Firefox v.25
- IE 9
- IE 10
This bug also occurs on clean installs of the following CMSMS versions (using default modules only):
- 1.11.7
- 1.11.8
- 1.11.9
The above CMSMS versions were tested on both Windows and Linux configurations:
Windows running XAMPP 1.8.3
- Apache 2.4.4
- MySQL 5.6.11
- PHP 5.5.3
- phpMyAdmin 4.0.4
- FileZilla FTP Server 0.9.41
- Tomcat 7.0.42 (with mod_proxy_ajp as connector)
- Strawberry Perl 5.16.3.1 Portable
- XAMPP Control Panel 3.2.1 (from hackattack142)
Linux Hosting at 1&1
- PHP 5.4
I'd appreciate any help or insight.
Thanks!