Problems connecting to httpd help server with some browsers

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Problems connecting to httpd help server with some browsers

Thomas Friedrichsmeier-2
Hello,

sorry to provide only very little testing, but with the release date nearing,
I thought it better to report this quickly than to wait for an uncertain
period until I find more time.

I'm observing strange problems connecting to the httpd help server with
konqueror (KDE 4.3.1):

options (help_type="html")
options (browser="konqueror")
help ("print")

The first page opens in a konqueror window as expected. However, clicking on
any links does not have any result. Konqueror just says "waiting for reply"
forever. There does not even seem to be a timeout. Pointing the same browser
instance to some other url works fine.

Trying to use lynx as a browser (since it's a terminal browser, you need open
lynx in a separate terminal and point it to the httpd help server manually)
causes lynx to become unresponsive.

Both konqueror and lynx are able to browse the static html files just fine.

Firefox and Opera work fine with the httpd server on the same computer.

Does anybody else see similar symptoms?

Regards
Thomas

> R.version
               _
platform       i686-pc-linux-gnu
arch           i686
os             linux-gnu
system         i686, linux-gnu
status         Under development (unstable)
major          2
minor          11.0
year           2009
month          09
day            29
svn rev        49866
language       R
version.string R version 2.11.0 Under development (unstable) (2009-09-29
r49866)

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

signature.asc (205 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Problems connecting to httpd help server with some browsers

Simon Urbanek
Thomas,

On Sep 29, 2009, at 15:15 , Thomas Friedrichsmeier wrote:

> Hello,
>
> sorry to provide only very little testing, but with the release date  
> nearing, I thought it better to report this quickly than to wait for  
> an uncertain period until I find more time.
>

Yes, good thinking :).


> I'm observing strange problems connecting to the httpd help server  
> with
> konqueror (KDE 4.3.1):
>
> options (help_type="html")
> options (browser="konqueror")
> help ("print")
>
> The first page opens in a konqueror window as expected. However,  
> clicking on
> any links does not have any result. Konqueror just says "waiting for  
> reply"
> forever. There does not even seem to be a timeout. Pointing the same  
> browser
> instance to some other url works fine.
>
> Trying to use lynx as a browser (since it's a terminal browser, you  
> need open
> lynx in a separate terminal and point it to the httpd help server  
> manually)
> causes lynx to become unresponsive.
>

I don't have konqueror at hand, so I have tested and fixed the lynx  
case (lynx is acting as an HTTP/1.0 client and expects non-persistent  
connection). With some luck the fix may solve the konqueror issue as  
well (although I'd be a bit surprised if konqueror was not 1.1-
capable..).

Thanks,
Simon


> Both konqueror and lynx are able to browse the static html files  
> just fine.
>
> Firefox and Opera work fine with the httpd server on the same  
> computer.
>
> Does anybody else see similar symptoms?
>
> Regards
> Thomas
>
>> R.version
>               _
> platform       i686-pc-linux-gnu
> arch           i686
> os             linux-gnu
> system         i686, linux-gnu
> status         Under development (unstable)
> major          2
> minor          11.0
> year           2009
> month          09
> day            29
> svn rev        49866
> language       R
> version.string R version 2.11.0 Under development (unstable)  
> (2009-09-29
> r49866)
> ______________________________________________
> [hidden email] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Reply | Threaded
Open this post in threaded view
|

Re: Problems connecting to httpd help server with some browsers

Jeffrey Horner
Simon Urbanek wrote:
[...]
> I don't have konqueror at hand, so I have tested and fixed the lynx case
> (lynx is acting as an HTTP/1.0 client and expects non-persistent
> connection). With some luck the fix may solve the konqueror issue as
> well (although I'd be a bit surprised if konqueror was not 1.1-capable..).

Konqueror didn't like the extra newline in the Location header:

Index: src/library/tools/R/dynamicHelp.R
===================================================================
--- src/library/tools/R/dynamicHelp.R   (revision 49890)
+++ src/library/tools/R/dynamicHelp.R   (working copy)
@@ -172,7 +172,7 @@
             return(list(payload = paste('Redirect to <a href="', file,
'">"',
                          basename(file), '"</a>', sep=''),
                         "content-type" = 'text/html',
-                       header = paste('Location: ', file, '\n', sep=''),
+                       header = paste('Location: ', file, sep=''),
                         "status code" = 302L)) # temporary redirect
         } else if (length(file) > 1L) {
              paths <- dirname(dirname(file))


Jeff

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Reply | Threaded
Open this post in threaded view
|

Re: Problems connecting to httpd help server with some browsers

Thomas Friedrichsmeier-2
On Wednesday 30 September 2009, Jeff Horner wrote:

> Simon Urbanek wrote:
> [...]
>
> > I don't have konqueror at hand, so I have tested and fixed the lynx case
> > (lynx is acting as an HTTP/1.0 client and expects non-persistent
> > connection). With some luck the fix may solve the konqueror issue as
> > well (although I'd be a bit surprised if konqueror was not
> > 1.1-capable..).
>
> Konqueror didn't like the extra newline in the Location header:
I can confirm that the lynx issue is solved in r49893, but the issue in
konqueror persists. Applying Jeff's patch solves that, here, while firefox,
opera and lynx continue to work.

Regards
Thomas

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

signature.asc (205 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Problems connecting to httpd help server with some browsers

Simon Urbanek
In reply to this post by Jeffrey Horner
Thanks, Jeff, good catch. Now committed.
Simon

On Sep 29, 2009, at 18:27 , Jeff Horner wrote:

> Simon Urbanek wrote:
> [...]
>> I don't have konqueror at hand, so I have tested and fixed the lynx  
>> case (lynx is acting as an HTTP/1.0 client and expects non-
>> persistent connection). With some luck the fix may solve the  
>> konqueror issue as well (although I'd be a bit surprised if  
>> konqueror was not 1.1-capable..).
>
> Konqueror didn't like the extra newline in the Location header:
>
> Index: src/library/tools/R/dynamicHelp.R
> ===================================================================
> --- src/library/tools/R/dynamicHelp.R   (revision 49890)
> +++ src/library/tools/R/dynamicHelp.R   (working copy)
> @@ -172,7 +172,7 @@
>            return(list(payload = paste('Redirect to <a href="',  
> file, '">"',
>                         basename(file), '"</a>', sep=''),
>                        "content-type" = 'text/html',
> -                       header = paste('Location: ', file, '\n',  
> sep=''),
> +                       header = paste('Location: ', file, sep=''),
>                        "status code" = 302L)) # temporary redirect
>        } else if (length(file) > 1L) {
>             paths <- dirname(dirname(file))
>
>
> Jeff
>
>

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel