Bug 433939 - Filename with embedded spaces doesn't load.
Filename with embedded spaces doesn't load.
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: firefox (Show other bugs)
8
i386 Linux
low Severity medium
: ---
: ---
Assigned To: Gecko Maintainer
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2008-02-22 04:35 EST by David Keegan
Modified: 2008-02-22 08:37 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2008-02-22 08:37:49 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Mozilla Foundation 402397 None None None Never

  None (edit)
Description David Keegan 2008-02-22 04:35:42 EST
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 08:37:49 EST
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.