Bug 173101 - Facebook gives "The page you requested was not found" error due to malformed URL
Summary: Facebook gives "The page you requested was not found" error due to malformed URL
Status: RESOLVED FIXED
Alias: None
Product: konqueror
Classification: Applications
Component: general (show other bugs)
Version: 4.1.2
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
: 187857 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-10-18 17:29 UTC by Henry de Valence
Modified: 2009-09-26 09:20 UTC (History)
7 users (show)

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 Henry de Valence 2008-10-18 17:29:38 UTC
Version:            (using KDE 4.1.2)
OS:                Linux
Installed from:    SuSE RPMs

Sometimes when browsing in Facebook, when one clicks on one of their links, one sees a message that says "The page you requested was not found. You may have clicked an expired link or mistyped the address. Some web addresses are case sensitive.".

When I look at the URL, it will be something like:

http://www.new.facebook.com/friends/%3Fid=000000000&flid=0&view=everyone&q=&nt=0&nk=0&s=0&st=0

[note: I omitted the id value, it's normally a 9-digit number]
If I manually change the URL to remove the %3F and replace with a ?, like so:

http://www.new.facebook.com/friends/?id=000000000&flid=0&view=everyone&q=&nt=0&nk=0&s=0&st=0

I don't get the error page & I see the page I'm looking for.
Comment 1 Maksim Orlovich 2008-10-18 19:19:19 UTC
Any idea on when exactly that happens?
Comment 2 Médéric Boquien 2008-10-18 19:25:53 UTC
In my case it happens almost systematically when browsing a gallery. The first pic is fine. Then i click on next. Then i get the aforementioned problem.
Comment 3 Henry de Valence 2008-10-18 19:30:21 UTC
I know that it happens when one chooses "Friends" from the top menu and then picks "Everyone" from the Showing: list on that page; there are probably more times though.
Comment 4 m.wege 2009-02-10 12:01:30 UTC
I can confirm this bug. For me it happens when
I click on (starting point is the news feed): 
http://www.facebook.com/home.php?tab=2 (which is the live feed)
the next step then is this
http://www.facebook.com/home.php?ref=logo#/home.php%3Ftab=2
after this I get this error message. So the problem must be this "%3F" which may be the wrong translation for the url. 
Comment 5 Vincent 2009-03-02 14:50:16 UTC
I confirm that the bug is related to %3F in the URL.
Replace manually "%3F" by "?" and it works ...
Comment 6 Maksim Orlovich 2009-03-02 15:37:00 UTC
UA-fakeing as mozilla should prevent the problem..
Comment 7 m.wege 2009-03-02 18:10:23 UTC
Does this mean this is not a bug of Konqueror or is this just a work around. If this is a bug of facebook: Does anyone know how to report this "upstream"? The workaround may be something for userbase. Many people use facebook.
Comment 8 Maksim Orlovich 2009-03-02 18:33:42 UTC
It's impossible to tell w/o debugging it, and my last attempt at doing that failed since facebook has a huge amount of JS code ... and trying to figure out what goes wrong in a codebase one isn't familiar with is very hard.
(though at least it's not obfuscated, that makes it much easier)
Comment 9 Henry de Valence 2009-03-03 00:12:27 UTC
Hm, using Konq. 4.2.64 (KDE 4.2.64 (KDE 4.3 >= 20090218)) I no longer get the bug when I do the steps in comment #3. Not sure if that is of any use. It might be good to add it to userbase anyways, just in case someone has a problem.
Comment 10 Vincent 2009-03-03 14:09:35 UTC
UA-fakeing as mozilla does not solve the pb for me ...
Comment 11 Katrina Niolet 2009-03-07 20:20:29 UTC
I encounter this mostly while browsing a gallery, however this happened today when I clicked on the Information tab on my profile also. I am using KDE 4.2.1 on both opensuse and kubuntu (but this problem has been around since KDE 4.0 I believe, I don't think I ever encountered this in KDE3)
Comment 12 Henry de Valence 2009-03-08 03:20:17 UTC
Re: comment #6
On the contrary I have found that faking as Firefox 3 does not change the issue.
Comment 13 Tommi Tervo 2009-03-23 07:06:59 UTC
*** Bug 187857 has been marked as a duplicate of this bug. ***
Comment 14 Tommi Tervo 2009-03-23 07:24:54 UTC
SadEagle proposed this one liner which should fix the issue. Not committed yet, may need more investigation/ACK from DF.

Index: io/kurl.cpp
===================================================================
--- io/kurl.cpp	(revision 931238)
+++ io/kurl.cpp	(working copy)
@@ -1062,7 +1062,7 @@
 
   if (hasFragment()) {
     result += QLatin1Char('#');
-    result += toPrettyPercentEncoding(fragment());
+    result += fragment(); //toPrettyPercentEncoding(fragment());
   }
 
   return result;
Comment 15 David Faure 2009-03-23 17:03:13 UTC
SVN commit 943285 by dfaure:

Backport fix for 173101: do not escape '?' in fragments. Please test if this fixes the facebook issue completely.
CCBUG: 173101


 M  +6 -4      io/kurl.cpp  
 M  +14 -0     tests/kurltest.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=943285
Comment 16 Médéric Boquien 2009-09-26 04:14:50 UTC
Hi,

I have not encountered the problem in months. I guess it can be closed.
Comment 17 Tommi Tervo 2009-09-26 09:20:13 UTC
Fix seems to be correct, there has no been new bug reports of this issue.