Bug 433939 - Filename with embedded spaces doesn't load.
Summary: Filename with embedded spaces doesn't load.
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: firefox
Version: 8
Hardware: i386
OS: Linux
low
medium
Target Milestone: ---
Assignee: Gecko Maintainer
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-02-22 09:35 UTC by David Keegan
Modified: 2018-04-11 08:01 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-02-22 13:37:49 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Mozilla Foundation 402397 0 None None None Never

Description David Keegan 2008-02-22 09:35:42 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.12) Gecko/20080208 Fedora/2.0.0.12-1.fc8 Firefox/2.0.0.12

Description of problem:
Firefox fails to display a filename containing embedded spaces supplied as a command line argument as in

firefox "/tmp/test with spaces.html"


Version-Release number of selected component (if applicable):
firefox-2.0.0.12-1.fc8.src.rpm

How reproducible:
Always


Steps to Reproduce:
1. Start firefox.

2. Prepare a sample html file with spaces in the filename.

2.At a shell prompt, issue the command:

firefox "/tmp/test with spaces.html"


Actual Results:
Firefox displayed this error message in a tab titled "Problem Loading Page":

File not found        

Firefox can't find the file at /tmp/test%20with%20spaces.html.
*   Check the file name for capitalization or other typing errors.
*   Check to see if the file was moved, renamed or deleted.

And the firefox URL window displayed the filename as follows (note the additional quoting):

file:///tmp/test%2520with%2520spaces.html


Expected Results:
The page should have displayed correctly.

Additional info:

NOTES:

1. If the file is renamed to remove the embedded spaces it loads fine.

2. If firefox is NOT running when the command is issued firefox is started and loads the page correctly.

3. This issue is specific to the Fedora firefox package. It doesn't seem to occur with the identical version of firefox downloaded from the firefox website.

Comment 1 Matěj Cepl 2008-02-22 13:37:49 UTC
Sorry, you are thinking with incorrect assumption that firefox accepts filenames
as parameter. It doesn't -- it is able only to open URLs, which /some/ filenames
happen to be (file:// URL scheme). However, it doesn't change anything on the
fact that spaces are not allowed in URLs, so you have to encode the URL with
%20. So in order to open "/tmp/test with spaces.html" the only way is to open
/tmp/test%20with%20spaces.html

Closing as WONTFIX


Note You need to log in before you can comment on or make changes to this bug.