Closed
Bug 731952
Opened 13 years ago
Closed 13 years ago
Mismatch filesystem extension type
Categories
(Firefox :: Untriaged, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: info, Unassigned)
Details
Attachments
(1 file)
|
67.51 KB,
image/png
|
Details |
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.2) Gecko/20100101 Firefox/10.0.2
Build ID: 20120215223356
Steps to reproduce:
I've uploaded a file (pdf) on my web hosting, and i rename it as name.jpg.pdf
Actual results:
I open firefox, and in the web url toolbar i put http://mydomain/name.jpg (that doesn't exist), firefox show me in the page, the correct pdf file.
I've tried with an image too, for example name.jpg, renamed as name.jpg.png, and it comes same problem.
Expected results:
Firefox shouldn't find any file.
Comment 1•13 years ago
|
||
If your web browser is service the file up for the request, what do you expect Firefox to do?
Comment 2•13 years ago
|
||
I fail to see how this is a Firefox problem if the web server sends the file under the URL. Another case would be that the file is cached but that would be also no valid bug except the server used no caching headers.
Please reopen this bug report if you disagree but provide a test URL in that case
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → INVALID
(In reply to Matthias Versen (Matti) from comment #2)
> I fail to see how this is a Firefox problem if the web server sends the file
> under the URL. Another case would be that the file is cached but that would
> be also no valid bug except the server used no caching headers.
>
> Please reopen this bug report if you disagree but provide a test URL in that
> case
I think that if a file is not present in a file system, the browser should show error 404, or is it correct that Firefox show me the first file that it's named (similar) to that i'm trying to view?
if i have in my webserver a files called image.png.pdf, and in the firefox url i put http://mydomain/image.png i imagine to find error 404 not to view the file image.png.pdf
Comment 4•13 years ago
|
||
>I think that if a file is not present in a file system
I thought that this is about http and not a local file system.
For a webserver(http) case:
>if i have in my webserver a files called image.png.pdf, and in the firefox url i put
>http://mydomain/image.png i imagine to find error 404 not to view the file
>image.png.pdf
404 error message are created by the server and not by the client.
There is only one thing in Firefox that can cause this issue: Caching.
Firefox caches a resource if the server allows it for this specific URL.
In that case use ctrl+f5 (forced reload).
The caching is no bug and Firefox caches according to the RFC. You can always prevent that with changed http headers for that resource.
You need to log in
before you can comment on or make changes to this bug.
Description
•