Bug 39268 - khtml: doubled POST method
Summary: khtml: doubled POST method
Status: CLOSED FIXED
Alias: None
Product: konqueror
Classification: Applications
Component: khtml (show other bugs)
Version: 4.0
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-03-11 21:33 UTC by Melchior Franz
Modified: 2002-09-16 14:43 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Melchior Franz 2002-03-11 21:21:06 UTC
(*** This bug was imported into bugs.kde.org ***)

Package: khtml
Version: 4.0 (KDE 2.97 (3.0 rc1)) (compiled sources)
Severity: normal
OS: Linux (i686) release 2.5.6/2.4.18
Qt: 3.0.2/qt-copy
Compiler: gcc version 2.95.2 19991024 (release)
KDE + Qt: CVS/HEAD as of yesterday 2002-03-10 (compiled sources)

Since yesterday POST methods are always sent twice! While a working
browser leaves e.g. the following entries in /var/log/httpd/access_log:

  127.0.0.1 - - [11/Mar/2002:22:08:51 +0100] "POST /%7Em/rk/gate.cgi HTTP/1.0" 302 0
  127.0.0.1 - - [11/Mar/2002:22:08:53 +0100] "GET /%7Em/rk/redir.cgi?idx=index HTTP/1.0" 200 3777

Konqueror from yesterday leaves:

  127.0.0.1 - - [11/Mar/2002:18:36:11 +0100] "POST /%7Em/rk/gate.cgi HTTP/1.0" 302 0
  127.0.0.1 - - [11/Mar/2002:18:36:12 +0100] "POST /%7Em/rk/gate.cgi HTTP/1.0" 302 0
  127.0.0.1 - - [11/Mar/2002:18:36:15 +0100] "GET /%7Em/rk/redir.cgi?idx=index HTTP/1.0" 200 3777
  127.0.0.1 - - [11/Mar/2002:18:36:15 +0100] "GET /%7Em/rk/redir.cgi?idx=index HTTP/1.0" 200 3777

for exactly the same session (login in a protected site). This could of
course also be a kio_http or proxy problem rather than a khtml problem.

m.
Comment 1 Waldo Bastian 2002-03-12 05:53:25 UTC
I can't reproduce this with postin to dot.kde.org. Mabe it's related to the=
=20
site requiring authentication? Does anyone have a site that requires=20
authentication and that has a post form?

Cheers
Waldo

On Monday 11 March 2002 01:21 pm Melchior FRANZ wrote:
> Package: khtml
> Version: 4.0 (KDE 2.97 (3.0 rc1)) (compiled sources)
> Severity: normal
> OS: Linux (i686) release 2.5.6/2.4.18
> Qt: 3.0.2/qt-copy
> Compiler: gcc version 2.95.2 19991024 (release)
> KDE + Qt: CVS/HEAD as of yesterday 2002-03-10 (compiled sources)
>
> Since yesterday POST methods are always sent twice! While a working
> browser leaves e.g. the following entries in /var/log/httpd/access_log:
>
>   127.0.0.1 - - [11/Mar/2002:22:08:51 +0100] "POST /%7Em/rk/gate.cgi
> HTTP/1.0" 302 0 127.0.0.1 - - [11/Mar/2002:22:08:53 +0100] "GET
> /%7Em/rk/redir.cgi?idx=3Dindex HTTP/1.0" 200 3777
>
> Konqueror from yesterday leaves:
>
>   127.0.0.1 - - [11/Mar/2002:18:36:11 +0100] "POST /%7Em/rk/gate.cgi
> HTTP/1.0" 302 0 127.0.0.1 - - [11/Mar/2002:18:36:12 +0100] "POST
> /%7Em/rk/gate.cgi HTTP/1.0" 302 0 127.0.0.1 - - [11/Mar/2002:18:36:15
> +0100] "GET /%7Em/rk/redir.cgi?idx=3Dindex HTTP/1.0" 200 3777 127.0.0.1 -=
 -
> [11/Mar/2002:18:36:15 +0100] "GET /%7Em/rk/redir.cgi?idx=3Dindex HTTP/1.0"
> 200 3777
>
> for exactly the same session (login in a protected site). This could of
> course also be a kio_http or proxy problem rather than a khtml problem.
>
> m.
> _______________________________________________
> Konq-bugs mailing list
> Konq-bugs@mail.kde.org
> http://mail.kde.org/mailman/listinfo/konq-bugs

--=20
bastian@kde.org  |   SuSE Labs KDE Developer  |  bastian@suse.com
Comment 2 Melchior Franz 2002-03-12 14:39:59 UTC
* Waldo Bastian -- Tuesday 12 March 2002 06:53:
> I can't reproduce this with postin to dot.kde.org. Mabe it's related to the 
> site requiring authentication?

No. It happened on two different sites with konqueror while on both sites
mozilla showed correct behaviour.

I've now investigated further:

1. The double posts occurred first on 2002-03-10. (KDE build not older than
   one day.)

2. They were related to the proxy settings. If I disabled the proxy I got one
   single POST =but=:

3. The proxy setting enabled =itself= and next time I trie I got again double
   POSTs. I was unable to turn the proxy persistently off!


   These were my proxy settings:

   [Proxy Settings]
   AuthMode=0
   NoProxyFor=
   Proxy Config Script=
   ProxyType=1
   ReversedException=false
   ftpProxy=
   gopherProxy=
   httpProxy=http://localhost:8000/
   httpsProxy=



4. Then I removed ~/.kde/share/config/kioslaverc and set the proxy again.
   Now everything worked OK! No more double POSTs.

5. Enabling and disabling the proxy also worked now and didn't reset itself.
   BUT: disabling the proxy erased all proxy settings which is a nasty
   usability bug. It should just set a flag not remove all proxy data!
   But this is another bug. So I guess #39268 can be closed. I wouldn't
   be surprised though if others came up with the same problem. I can post
   the whole broken kioslaverc file if someone's interested.

m.   :-)
Comment 3 Melchior Franz 2002-03-18 08:21:59 UTC
closed by the submitter

The misbehaviour was temporarily fixed by removing .kde/share/config/kioslaverc
but re-appeared soon thereafter. The recent changes to the proxy setup though
seem to have fixed it finally. No problems since then.

m.