sandip chitale's blog    Sandip Chitale's blog (scblog)
NOTE: I have moved many of my modules to NetBeans Plugin Portal . Please check there for latest versions of modules described on this blog.
20080402 Wednesday April 02, 2008

Mac OS Leopard: /usr/bin/open -b org.mozilla.firefox 'file:///tmp/test.html/?a=b&c=d' does not work

 

I just ran into a bug where by a command like this:

> /usr/bin/open -b org.mozilla.firefox 'file:///tmp/test.html/?a=b&c=d'

does not work correctly. It turns out the query string such as '?a=b&c=d' does not get passed to the Firefox as evident in the address bar. The http:// protocol based URLs work correctly.

I suspect the #reference to go to a specific anchor will also not work. I have not tried it though.

This is a bug (regression) on Mac OS Leopard (10.5). It use to work on Mac OS Tiger (10.4). I have already filed a bug with Apple for this.

BTW I have to use the /usr/bin/open command to reliably and repeatedly open a URL in Firefox (i.e. when Firefox is already running or not). That is because if I use the command such as:

> /Application/Firefox.app/Contents/MacOS/firefox 'file:///tmp/test.html/?a=b&c=d'

when Firefox is already running it give me an error along the lines of "There is already an instance of Firefox running. You can only run one instance of Firefox.".

I thought this information may be useful to some folks who are struggling with the same issue.


               
Posted by sandipchitale ( Apr 02 2008, 10:28:20 AM PDT ) Permalink Comments [1]


Trackback URL: http://blogs.sun.com/scblog/entry/mac_os_leopard_usr_bin
Comments:

I am starting to wonder if query strings are not valid for a file:// protocol and therefore this is not really a bug. Does anyone know for sure? I guess I need to check in the RFC. In some sense it makes sense because there is no server to interpret the query string (unlike in case of http:// protocol).

However the #reference is interpreted by the Browser and thus is still useful to go to the specific anchor in the file. However that does not seem to work either.

Posted by Sandip on April 03, 2008 at 10:05 AM PDT #

Post a Comment:

Name:
E-Mail:
URL:

Your Comment:

HTML Syntax: NOT allowed








« November 2009
SunMonTueWedThuFriSat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
     
       
Today

Get NetBeans 5.5

Locations of visitors to this page

Today's Page Hits: 357


XML
All
/Creator
/General
/Hobby
/Java
/JavaScript
/Mozilla
/NetBeans
/Ubuntu
/VisualWeb
/VisualWebPack
/Web 2.0

XML
All
/Creator
/General
/Hobby
/Java
/JavaScript
/Mozilla
/NetBeans
/Ubuntu
/VisualWeb
/VisualWebPack
/Web 2.0

scblog
scblog