[haiku-bugs] Re: [Haiku] #11070: Webpositive won't open links for localhost on port other than 80

  • From: "pulkomandy" <trac@xxxxxxxxxxxx>
  • Date: Mon, 28 Jul 2014 08:36:03 -0000

#11070: Webpositive won't open links for localhost on port other than 80
----------------------------------------+----------------------------
   Reporter:  jprostko                  |      Owner:  pulkomandy
       Type:  bug                       |     Status:  new
   Priority:  normal                    |  Milestone:  R1/alpha5
  Component:  Applications/WebPositive  |    Version:  R1/Development
 Resolution:                            |   Keywords:
 Blocked By:                            |   Blocking:
Has a Patch:  0                         |   Platform:  All
----------------------------------------+----------------------------

Old description:

> Hello,
>
> I was using Fossil in Haiku, and noticed that its web interface via
> `fossil ui` no longer works in Web+.  (Note that `fossil ui`
> automatically launches Web+ after it is entered in the terminal.)
>
> I get the following error dialog box in Web+ after running `fossil ui`
> from the command line...
>
> '''Error loading http://localhost:8080/doc/tip/www/index.wiki: Connection
> refused'''
>

> If I run `fossil ui --port 80`, then it works perfectly.  Any port other
> than 80 results in the "connection refused" error message.  Qupzilla
> loads the URL just fine regardless of the port, so it only affects Web+.
> Also, using 127.0.0.1 instead of localhost does not at all remedy the
> problem, as I tried that as well to be thorough.
>
> Steps to reproduce:
>
> $ pkgman install fossil
> $ mkdir repos fossil
> $ cd repos
> $ fossil clone http://fossil-scm.org fossil.fsl
> $ cd ../fossil
> $ fossil open ../repos/fossil.fsl
> $ fossil ui
>

> Please note this is a GCC2 hybrid build, hrev47571, running HaikuWebKit
> 1.4.1-3.
>
> (The About window for Web+ needs updated, as it mentions HaikuWebKit
> 1.4.0 still.)

New description:

 Hello,

 I was using Fossil in Haiku, and noticed that its web interface via
 `fossil ui` no longer works in Web+.  (Note that `fossil ui` automatically
 launches Web+ after it is entered in the terminal.)

 I get the following error dialog box in Web+ after running `fossil ui`
 from the command line...

 '''Error loading http://localhost:8080/doc/tip/www/index.wiki: Connection
 refused'''


 If I run `fossil ui --port 80`, then it works perfectly.  Any port other
 than 80 results in the "connection refused" error message.  Qupzilla loads
 the URL just fine regardless of the port, so it only affects Web+.  Also,
 using 127.0.0.1 instead of localhost does not at all remedy the problem,
 as I tried that as well to be thorough.

 Steps to reproduce:

 $ pkgman install fossil
 $ mkdir repos fossil
 $ cd repos
 $ fossil clone http://fossil-scm.org fossil.fsl
 $ cd ../fossil
 $ fossil open ../repos/fossil.fsl
 $ fossil ui


 Please note this is a GCC2 hybrid build, hrev47571, running HaikuWebKit
 1.4.1-3.

 (The About window for Web+ needs updated, as it mentions HaikuWebKit 1.4.0
 still.)

--

Comment (by pulkomandy):

 I'm not sure how this is supposed to work. When requesting
 http://localhost:8080, Fossil sends a redirect to
 http://localhost/doc/tip/www/index.wiki (the port is gone). However, other
 browsers seems to get away with this.

 Manually loading the page at http://localhost:8080/doc/tip/www/index.wiki
 exposes more problems, however, as all resources are referenced using
 relative URIs ("/path"), and this time it's WebKit failing to add the port
 to the requests. I will have a look. I noticed Fossil uses the
 {{{<base/>}}} html tag, this time with the proper port. So there's no
 reason WebKit gets things wrong here.

--
Ticket URL: <https://dev.haiku-os.org/ticket/11070#comment:3>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: