Bug#342737: this is a gaim bug Re: Bug#342737: can confirm this bug

2006-01-02 Thread Mike Hommey
On Sun, Jan 01, 2006 at 10:57:47PM -0500, Justin Pryzby [EMAIL PROTECTED] 
wrote:
 On Sun, Jan 01, 2006 at 01:22:53PM -0500, pryzbyj wrote:
  reassign 342737 gaim
  tag 342737 upstream
  retitle 342737 gaim: Interfacing with browsers with netscape-style -remote 
  option requires URL encoding any commas in the URLs
  clone 342737 -1
  retitle -1 gaim: outputs quot to stdout rather than a quote
  severity -1 minor
  thanks
  
  On Sat, Dec 31, 2005 at 11:24:37PM +0100, Mike Hommey wrote:
   On Sat, Dec 31, 2005 at 09:42:18AM -0500, Justin Pryzby [EMAIL 
   PROTECTED] wrote:
On Sat, Dec 31, 2005 at 03:33:12PM +0100, Mike Hommey wrote:
  
  So this looks like a gaim bug; caused by firefox interpretting the substring
  following the first comma as an option/parameter to the openURL function.
 Alternately this could be [considered] a bug in {,mozilla} firefox,
 because one can argue that only the last comma should be used.
 
 openUrl(a,b,c,d,e) could be interpretted as open the url 'a,b,c,d'
 with option 'e'.

This wouldn't make any sense at all... moreover, the -remote syntax
supports multiple argument commands (mailto(a,b,c), for instance)

Mike


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#342737: this is a gaim bug Re: Bug#342737: can confirm this bug

2006-01-01 Thread Mike Hommey
On Sun, Jan 01, 2006 at 01:58:26PM -0500, Justin Pryzby [EMAIL PROTECTED] 
wrote:
  FWIW, it's not at all necessary with the wrapper scripts for both
  mozilla and firefox (and since firefox 1.5, even the wrapper script
  doesn't need to use the remote interface).
  
  So, changing the code to only run firefox or mozilla with the url as
  argument would be pretty straightforward.
 Can you do {new,existing}-{tab,window} with that interface?

It is set with an environment variable or via a file in /etc/ for
mozilla (IIRC), and is configurable in firefox in the preferences.

Mike


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#342737: this is a gaim bug Re: Bug#342737: can confirm this bug

2006-01-01 Thread Mike Hommey
On Sun, Jan 01, 2006 at 01:22:53PM -0500, Justin Pryzby [EMAIL PROTECTED] 
wrote:
 reassign 342737 gaim
 tag 342737 upstream
 retitle 342737 gaim: Interfacing with browsers with netscape-style -remote 
 option requires URL encoding any commas in the URLs
 clone 342737 -1
 retitle -1 gaim: outputs quot to stdout rather than a quote
 severity -1 minor
 thanks
 
 On Sat, Dec 31, 2005 at 11:24:37PM +0100, Mike Hommey wrote:
  On Sat, Dec 31, 2005 at 09:42:18AM -0500, Justin Pryzby [EMAIL PROTECTED] 
  wrote:
   clone 342737 -1
   reassign -1 libgnomevfs2-common
   retitle -1 libgnomevfs2-common: initial http handler should be generic 
   browser command, and not 'epiphany' 
   thanks
  
  I actually already did that. Merged with mine.
  
   On Sat, Dec 31, 2005 at 03:33:12PM +0100, Mike Hommey wrote:
  (...)
I think I'm going to file a bug on libgnomevfs2-common for that it
should be sensible-browser %s (or maybe x-www-browser)...
   I guess so.
   
   But that isn't the cause of the gaim/firefox problem, right?
  
  Mm... that means your gaim doesn't do the same as mine... mine first
  tries /usr/local/bin/gnome-load, then the program set with the gconf key
  then fails. I actually had a bad configuration before trying to
  reproduce this bug today, the gconf key pointing to
  /usr/lib/mozilla-firefox/firefox, which doesn't exist since I upgraded
  to firefox, and with that configuration, it just didn't do anything when
  trying to open with browser.
  
  Could you attach here a trace of what gaim does when you try to open an
  url ? (strace -f -p `pidof gaim`)
 The relevant bit follows:
 
 write(1, gtknotify: Executing firefox -a firefox -remote 
 quot;openURL(http://www.wired.com/news/politics/0,1283,69773,00.html,new-tab)quot;\n,
  133) = 133
 access(~/bin//firefox, X_OK)  = -1 ENOENT (No such file or 
 directory)
 access(~/src/src/bin//firefox, X_OK)  = -1 ENOENT (No such file or 
 directory)
 access(/usr/local/bin/firefox, X_OK)  = -1 ENOENT (No such file or 
 directory)
 access(/usr/bin/firefox, X_OK)= 0
 getuid32()  = 1000
 stat64(/usr/bin/firefox, {st_dev=makedev(3, 1), st_ino=286295, 
 st_mode=S_IFREG|0755, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, 
 st_blocks=16, st_size=7153, st_at
 ime=2005/12/28-19:51:31, st_mtime=2005/12/24-05:06:31, 
 st_ctime=2005/12/28-19:52:00}) = 0
 pipe([16, 18])  = 0
 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, 
 child_tidptr=0xb74bd708) = 15349
 
 which has:
 
 execve(/usr/bin/firefox, [firefox, -a, firefox, -remote, 
 openURL(http://www.wired.com/news/politics/0,1283,69773,00.html,new-tab)], 
 [EMAIL PROTECTED]) = 0
 
 So this looks like a gaim bug; caused by firefox interpretting the substring
 following the first comma as an option/parameter to the openURL function.

FWIW, it's not at all necessary with the wrapper scripts for both
mozilla and firefox (and since firefox 1.5, even the wrapper script
doesn't need to use the remote interface).

So, changing the code to only run firefox or mozilla with the url as
argument would be pretty straightforward.

Cheers,

Mike
 
 -- 
 Clear skies,
 Justin


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#342737: this is a gaim bug Re: Bug#342737: can confirm this bug

2006-01-01 Thread Justin Pryzby
On Sun, Jan 01, 2006 at 07:51:59PM +0100, Mike Hommey wrote:
 On Sun, Jan 01, 2006 at 01:22:53PM -0500, Justin Pryzby [EMAIL PROTECTED] 
 wrote:
  reassign 342737 gaim
  tag 342737 upstream
  retitle 342737 gaim: Interfacing with browsers with netscape-style -remote 
  option requires URL encoding any commas in the URLs
  clone 342737 -1
  retitle -1 gaim: outputs quot to stdout rather than a quote
  severity -1 minor
  thanks
  
  On Sat, Dec 31, 2005 at 11:24:37PM +0100, Mike Hommey wrote:
   On Sat, Dec 31, 2005 at 09:42:18AM -0500, Justin Pryzby [EMAIL 
   PROTECTED] wrote:

On Sat, Dec 31, 2005 at 03:33:12PM +0100, Mike Hommey wrote:
   (...)
 I think I'm going to file a bug on libgnomevfs2-common for that it
 should be sensible-browser %s (or maybe x-www-browser)...
I guess so.

But that isn't the cause of the gaim/firefox problem, right?
   
   Mm... that means your gaim doesn't do the same as mine...
I don't understand what you mean here, but I don't think it matters
now, right?

   Could you attach here a trace of what gaim does when you try to open an
   url ? (strace -f -p `pidof gaim`)
  The relevant bit follows:
  
  write(1, gtknotify: Executing firefox -a firefox -remote 
  quot;openURL(http://www.wired.com/news/politics/0,1283,69773,00.html,new-tab)quot;\n,
   133) = 133
  access(~/bin//firefox, X_OK)  = -1 ENOENT (No such file or 
  directory)
  access(~/src/src/bin//firefox, X_OK)  = -1 ENOENT (No such file or 
  directory)
  access(/usr/local/bin/firefox, X_OK)  = -1 ENOENT (No such file or 
  directory)
  access(/usr/bin/firefox, X_OK)= 0
  getuid32()  = 1000
  stat64(/usr/bin/firefox, {st_dev=makedev(3, 1), st_ino=286295, 
  st_mode=S_IFREG|0755, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, 
  st_blocks=16, st_size=7153, st_at
  ime=2005/12/28-19:51:31, st_mtime=2005/12/24-05:06:31, 
  st_ctime=2005/12/28-19:52:00}) = 0
  pipe([16, 18])  = 0
  clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, 
  child_tidptr=0xb74bd708) = 15349
  
  which has:
  
  execve(/usr/bin/firefox, [firefox, -a, firefox, -remote, 
  openURL(http://www.wired.com/news/politics/0,1283,69773,00.html,new-tab)],
   [EMAIL PROTECTED]) = 0
  
  So this looks like a gaim bug; caused by firefox interpretting the substring
  following the first comma as an option/parameter to the openURL function.
 
 FWIW, it's not at all necessary with the wrapper scripts for both
 mozilla and firefox (and since firefox 1.5, even the wrapper script
 doesn't need to use the remote interface).
 
 So, changing the code to only run firefox or mozilla with the url as
 argument would be pretty straightforward.
Can you do {new,existing}-{tab,window} with that interface?

-- 
Clear skies,
Justin


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#342737: this is a gaim bug Re: Bug#342737: can confirm this bug

2006-01-01 Thread Justin Pryzby
reassign 342737 gaim
tag 342737 upstream
retitle 342737 gaim: Interfacing with browsers with netscape-style -remote 
option requires URL encoding any commas in the URLs
clone 342737 -1
retitle -1 gaim: outputs quot to stdout rather than a quote
severity -1 minor
thanks

On Sat, Dec 31, 2005 at 11:24:37PM +0100, Mike Hommey wrote:
 On Sat, Dec 31, 2005 at 09:42:18AM -0500, Justin Pryzby [EMAIL PROTECTED] 
 wrote:
  clone 342737 -1
  reassign -1 libgnomevfs2-common
  retitle -1 libgnomevfs2-common: initial http handler should be generic 
  browser command, and not 'epiphany' 
  thanks
 
 I actually already did that. Merged with mine.
 
  On Sat, Dec 31, 2005 at 03:33:12PM +0100, Mike Hommey wrote:
 (...)
   I think I'm going to file a bug on libgnomevfs2-common for that it
   should be sensible-browser %s (or maybe x-www-browser)...
  I guess so.
  
  But that isn't the cause of the gaim/firefox problem, right?
 
 Mm... that means your gaim doesn't do the same as mine... mine first
 tries /usr/local/bin/gnome-load, then the program set with the gconf key
 then fails. I actually had a bad configuration before trying to
 reproduce this bug today, the gconf key pointing to
 /usr/lib/mozilla-firefox/firefox, which doesn't exist since I upgraded
 to firefox, and with that configuration, it just didn't do anything when
 trying to open with browser.
 
 Could you attach here a trace of what gaim does when you try to open an
 url ? (strace -f -p `pidof gaim`)
The relevant bit follows:

write(1, gtknotify: Executing firefox -a firefox -remote 
quot;openURL(http://www.wired.com/news/politics/0,1283,69773,00.html,new-tab)quot;\n,
 133) = 133
access(~/bin//firefox, X_OK)  = -1 ENOENT (No such file or directory)
access(~/src/src/bin//firefox, X_OK)  = -1 ENOENT (No such file or directory)
access(/usr/local/bin/firefox, X_OK)  = -1 ENOENT (No such file or directory)
access(/usr/bin/firefox, X_OK)= 0
getuid32()  = 1000
stat64(/usr/bin/firefox, {st_dev=makedev(3, 1), st_ino=286295, 
st_mode=S_IFREG|0755, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, 
st_blocks=16, st_size=7153, st_at
ime=2005/12/28-19:51:31, st_mtime=2005/12/24-05:06:31, 
st_ctime=2005/12/28-19:52:00}) = 0
pipe([16, 18])  = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, 
child_tidptr=0xb74bd708) = 15349

which has:

execve(/usr/bin/firefox, [firefox, -a, firefox, -remote, 
openURL(http://www.wired.com/news/politics/0,1283,69773,00.html,new-tab)], 
[EMAIL PROTECTED]) = 0

So this looks like a gaim bug; caused by firefox interpretting the substring
following the first comma as an option/parameter to the openURL function.

-- 
Clear skies,
Justin


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#342737: this is a gaim bug Re: Bug#342737: can confirm this bug

2006-01-01 Thread Justin Pryzby
On Sun, Jan 01, 2006 at 01:22:53PM -0500, pryzbyj wrote:
 reassign 342737 gaim
 tag 342737 upstream
 retitle 342737 gaim: Interfacing with browsers with netscape-style -remote 
 option requires URL encoding any commas in the URLs
 clone 342737 -1
 retitle -1 gaim: outputs quot to stdout rather than a quote
 severity -1 minor
 thanks
 
 On Sat, Dec 31, 2005 at 11:24:37PM +0100, Mike Hommey wrote:
  On Sat, Dec 31, 2005 at 09:42:18AM -0500, Justin Pryzby [EMAIL PROTECTED] 
  wrote:
   On Sat, Dec 31, 2005 at 03:33:12PM +0100, Mike Hommey wrote:
 
 So this looks like a gaim bug; caused by firefox interpretting the substring
 following the first comma as an option/parameter to the openURL function.
Alternately this could be [considered] a bug in {,mozilla} firefox,
because one can argue that only the last comma should be used.

openUrl(a,b,c,d,e) could be interpretted as open the url 'a,b,c,d'
with option 'e'.

-- 
Clear skies,
Justin


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#342737: can confirm this bug

2005-12-31 Thread Mike Hommey
On Sat, Dec 31, 2005 at 01:59:46AM -0500, Eric Dorland [EMAIL PROTECTED] 
wrote:
 tags 342737 confirmed
 thanks
 
 * Justin Pryzby ([EMAIL PROTECTED]) wrote:
  I can confirm this behaviour.
  
  I tested that the problem can be worked around by encoding ',' as
  %2b.  gaim could do this, although I don't know that it is a gaim
  bug.
  
  I can't see what gaim does to start firefox, though, because gdb isn't
  playing nicely this morning.
 
 I guess it depends on whether a , is allowed to be unencoded in a
 url. 

What does your desktop/gnome/url-handlers/http/command gconf key say ?

Mike


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#342737: can confirm this bug

2005-12-31 Thread Justin Pryzby
On Sat, Dec 31, 2005 at 12:27:23PM +0100, Mike Hommey wrote:
 On Sat, Dec 31, 2005 at 01:59:46AM -0500, Eric Dorland [EMAIL PROTECTED] 
 wrote:
  tags 342737 confirmed
  thanks
  
  * Justin Pryzby ([EMAIL PROTECTED]) wrote:
   I can confirm this behaviour.
   
   I tested that the problem can be worked around by encoding ',' as
   %2b.  gaim could do this, although I don't know that it is a gaim
   bug.
   
   I can't see what gaim does to start firefox, though, because gdb isn't
   playing nicely this morning.
  
  I guess it depends on whether a , is allowed to be unencoded in a
  url. 
 
 What does your desktop/gnome/url-handlers/http/command gconf key say ?
If you're talking to me, and if you mean
/etc/gconf/gconf.xml.defaults/desktop/gnome/url-handlers/http/%gconf.xml,
then it is attached.

BTW my www-browser is presently set to lynx ('xterm -e lynx ' or
whatever) for some reason, since I installed some other browsers last
week, and then removed them.

-- 
Clear skies,
Justin


%gconf.xml
Description: application/xml


Bug#342737: can confirm this bug

2005-12-31 Thread Mike Hommey
On Sat, Dec 31, 2005 at 08:09:12AM -0500, Justin Pryzby [EMAIL PROTECTED] 
wrote:
 On Sat, Dec 31, 2005 at 12:27:23PM +0100, Mike Hommey wrote:
  On Sat, Dec 31, 2005 at 01:59:46AM -0500, Eric Dorland [EMAIL PROTECTED] 
  wrote:
   tags 342737 confirmed
   thanks
   
   * Justin Pryzby ([EMAIL PROTECTED]) wrote:
I can confirm this behaviour.

I tested that the problem can be worked around by encoding ',' as
%2b.  gaim could do this, although I don't know that it is a gaim
bug.

I can't see what gaim does to start firefox, though, because gdb isn't
playing nicely this morning.
   
   I guess it depends on whether a , is allowed to be unencoded in a
   url. 
  
  What does your desktop/gnome/url-handlers/http/command gconf key say ?
 If you're talking to me, and if you mean
 /etc/gconf/gconf.xml.defaults/desktop/gnome/url-handlers/http/%gconf.xml,
 then it is attached.

Can you give me the output for the command:
 gconftool-2  -g /desktop/gnome/url-handlers/http/command

I'd be interested by Eric's too. Because I can't reproduce the bug, with
both firefox %s and firefox %s as a value there, and the default value
for a brand new gnome user is epiphany %s, while I don't even have
epiphany installed.

I think I'm going to file a bug on libgnomevfs2-common for that it
should be sensible-browser %s (or maybe x-www-browser)...

Mike


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#342737: can confirm this bug

2005-12-31 Thread Justin Pryzby
clone 342737 -1
reassign -1 libgnomevfs2-common
retitle -1 libgnomevfs2-common: initial http handler should be generic browser 
command, and not 'epiphany' 
thanks

On Sat, Dec 31, 2005 at 03:33:12PM +0100, Mike Hommey wrote:
 On Sat, Dec 31, 2005 at 08:09:12AM -0500, Justin Pryzby [EMAIL PROTECTED] 
 wrote:
  On Sat, Dec 31, 2005 at 12:27:23PM +0100, Mike Hommey wrote:
   On Sat, Dec 31, 2005 at 01:59:46AM -0500, Eric Dorland [EMAIL 
   PROTECTED] wrote:
tags 342737 confirmed
thanks

* Justin Pryzby ([EMAIL PROTECTED]) wrote:
 I can confirm this behaviour.
 
 I tested that the problem can be worked around by encoding ',' as
 %2b.  gaim could do this, although I don't know that it is a gaim
 bug.
 
 I can't see what gaim does to start firefox, though, because gdb isn't
 playing nicely this morning.

I guess it depends on whether a , is allowed to be unencoded in a
url. 
   
   What does your desktop/gnome/url-handlers/http/command gconf key say ?
  If you're talking to me, and if you mean
  /etc/gconf/gconf.xml.defaults/desktop/gnome/url-handlers/http/%gconf.xml,
  then it is attached.
 
 Can you give me the output for the command:
  gconftool-2  -g /desktop/gnome/url-handlers/http/command
It is:
epiphany %s

 I'd be interested by Eric's too. Because I can't reproduce the bug, with
 both firefox %s and firefox %s as a value there, and the default value
 for a brand new gnome user is epiphany %s, while I don't even have
 epiphany installed.
Nor I, though it is one of the ones I installed and removed last week:

  pn  epiphany   none (no description available)
  pn  epiphany-brows none (no description available)
  pn  epiphany-brows none (no description available)
  pn  epiphany-exten none (no description available)

 I think I'm going to file a bug on libgnomevfs2-common for that it
 should be sensible-browser %s (or maybe x-www-browser)...
I guess so.

But that isn't the cause of the gaim/firefox problem, right?

-- 
Clear skies,
Justin


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#342737: can confirm this bug

2005-12-31 Thread Mike Hommey
On Sat, Dec 31, 2005 at 09:42:18AM -0500, Justin Pryzby [EMAIL PROTECTED] 
wrote:
 clone 342737 -1
 reassign -1 libgnomevfs2-common
 retitle -1 libgnomevfs2-common: initial http handler should be generic 
 browser command, and not 'epiphany' 
 thanks

I actually already did that. Merged with mine.

 On Sat, Dec 31, 2005 at 03:33:12PM +0100, Mike Hommey wrote:
(...)
  I think I'm going to file a bug on libgnomevfs2-common for that it
  should be sensible-browser %s (or maybe x-www-browser)...
 I guess so.
 
 But that isn't the cause of the gaim/firefox problem, right?

Mm... that means your gaim doesn't do the same as mine... mine first
tries /usr/local/bin/gnome-load, then the program set with the gconf key
then fails. I actually had a bad configuration before trying to
reproduce this bug today, the gconf key pointing to
/usr/lib/mozilla-firefox/firefox, which doesn't exist since I upgraded
to firefox, and with that configuration, it just didn't do anything when
trying to open with browser.

Could you attach here a trace of what gaim does when you try to open an
url ? (strace -f -p `pidof gaim`)

Cheers

Happy new year

Mike


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#342737: can confirm this bug

2005-12-30 Thread Eric Dorland
tags 342737 confirmed
thanks

* Justin Pryzby ([EMAIL PROTECTED]) wrote:
 I can confirm this behaviour.
 
 I tested that the problem can be worked around by encoding ',' as
 %2b.  gaim could do this, although I don't know that it is a gaim
 bug.
 
 I can't see what gaim does to start firefox, though, because gdb isn't
 playing nicely this morning.

I guess it depends on whether a , is allowed to be unencoded in a
url. 

-- 
Eric Dorland [EMAIL PROTECTED]
ICQ: #61138586, Jabber: [EMAIL PROTECTED]
1024D/16D970C6 097C 4861 9934 27A0 8E1C  2B0A 61E9 8ECF 16D9 70C6

-BEGIN GEEK CODE BLOCK-
Version: 3.12
GCS d- s++: a-- C+++ UL+++ P++ L++ E++ W++ N+ o K- w+ 
O? M++ V-- PS+ PE Y+ PGP++ t++ 5++ X+ R tv++ b+++ DI+ D+ 
G e h! r- y+ 
--END GEEK CODE BLOCK--


signature.asc
Description: Digital signature


Bug#342737: can confirm this bug

2005-12-29 Thread Justin Pryzby
I can confirm this behaviour.

I tested that the problem can be worked around by encoding ',' as
%2b.  gaim could do this, although I don't know that it is a gaim
bug.

I can't see what gaim does to start firefox, though, because gdb isn't
playing nicely this morning.

-- 
Clear skies,
Justin


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]