6.0.0-beta1
7/16/25

[#12283] Navigating to Mail Search from top menu error: URI Too Large
Summary Navigating to Mail Search from top menu error: URI Too Large
Queue IMP
Queue Version 6.1.3
Type Bug
State Resolved
Priority 1. Low
Owners slusarz (at) horde (dot) org
Requester delrio (at) mie (dot) utoronto (dot) ca
Created 05/29/2013 (4431 days ago)
Due
Updated 08/20/2013 (4348 days ago)
Assigned 08/14/2013 (4354 days ago)
Resolved 08/20/2013 (4348 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
08/20/2013 06:17:08 AM Michael Slusarz Comment #12
Assigned to Michael Slusarz
State ⇒ Resolved
Version ⇒ 6.1.3
Reply to this comment
IMP 6.1.4
08/20/2013 06:16:57 AM Git Commit Comment #11 Reply to this comment
Changes have been made in Git (master):

commit bf8518dcb95d7fecbf25976ecced0d69a1d1113e
Author: Michael M Slusarz <slusarz@horde.org>
Date:   Tue Aug 20 00:16:42 2013 -0600

     Bug #12283: Fix URL generation when loading Search from topbar 
from a non-IMP page

  imp/js/dimpbase.js |    5 +++++
  1 files changed, 5 insertions(+), 0 deletions(-)

http://git.horde.org/horde-git/-/commit/bf8518dcb95d7fecbf25976ecced0d69a1d1113e
08/15/2013 10:00:54 PM delrio (at) mie (dot) utoronto (dot) ca Comment #10 Reply to this comment
Still can't reproduce.  Clicking on search from turba, for example, 
sends me to:

/horde/imp/dynamic.php?page=mailbox#search
But the "frame info" of the search area reveals:

Address: 
/imp/basic.php?0=S&1=U&2=5&3=C&4=T&5=1&6=g&page=search&gsub=function+gsub(pattern%2Creplacement)%7Bvar+result.....

It can be duplicated on demo.horde.org (guest/guest). The resulting 
URL in the demo site is just short of the 8190 apache limit (about 
8000 chars) so no error is displayed in this server.

When called from the Mail application, the frame's address is

/imp/basic.php?page=search&mailbox=SU5CT1g&token=jfDILj-Hy-jX5PSb6jHUIQ6

08/15/2013 06:56:16 PM Jan Schneider Comment #9 Reply to this comment

[Show Quoted Text - 19 lines]
It doesn't. SU5CT1g is assigned to 'data' on line 217.
08/15/2013 05:13:47 PM Michael Slusarz Comment #8 Reply to this comment
I'm seeing this too now. This is what happens: in DimpBase.go(), 
line 255, the passed "data" parameter is SU5CT1g, because that's 
what's passed to go() on line 3804. Since Hash.updated is expected 
to be passed a traversable object, all String properties are added 
to the hash, that includes all String methods.
Still can't reproduce.  Clicking on search from turba, for example, 
sends me to:

/horde/imp/dynamic.php?page=mailbox#search

NO mailbox information (e.g. SU5CT1g) should appear in this URL:

                 $url = Horde::url('dynamic.php')
                     ->add('page', 'mailbox')
                     ->setAnchor('search');

So I can't determine a way how the 'tmp' variable on line 3804 
contains anything other than 'search'.
08/14/2013 10:40:32 PM Jan Schneider Comment #7
State ⇒ Feedback
Reply to this comment
I'm seeing this too now. This is what happens: in DimpBase.go(), line 
255, the passed "data" parameter is SU5CT1g, because that's what's 
passed to go() on line 3804. Since Hash.updated is expected to be 
passed a traversable object, all String properties are added to the 
hash, that includes all String methods.

08/04/2013 09:30:13 PM Michael Slusarz Version ⇒ Git master
State ⇒ No Feedback
 
05/29/2013 08:46:26 PM Michael Slusarz Comment #6 Reply to this comment
< GET 
/imp/basic.php?page=search&0=S&1=U&2=5&3=C&4=T&5=1&6=g&gsub=function+gsub(pattern%2C+replacement)+%7B%0D%0A++++var+result+%3D+%22%22%2C+source+%3D+this%2C+match%3B%0D%0A++++replacement+%3D+prepareReplacement(replacement)%3B%0D%0A++++if+(Object.isString(pattern))......... and goes on and on with what seems to be javascript 
code.
I have no idea.

The HTML code for me looks like:

<div class="horde-drowdown-str"><a class="horde-mainnavi" 
href="/horde/imp/basic.php?page=search">Search</a></div>

The URL is generated via: IMP_Basic_Search::url(), which is just:

Horde::url('basic.php')->add('page', 'search')

That's as simple as you can get.  There is nothing being dynamically 
added to basic.php base page URI except "page=search".

The javascript code appears to be from prototype.js.  But I have no 
idea how it is getting there.
05/29/2013 06:47:15 PM delrio (at) mie (dot) utoronto (dot) ca Comment #5 Reply to this comment
I cleared all cache, restart apache, and turned off SSL to be able to 
see the requested URIs on the server side.  The requests when clicking 
Mail - Search go like this:
GET /imp/dynamic.php?page=mailbox
GET /static/fb92fc0212b4afa89b6a7c924da5c484.css
GET /static/639970d9474db9783e4535eafa252a5900b5df07.js
POST /services/ajax.php/imp/dynamicInit
< GET 
/imp/basic.php?page=search&0=S&1=U&2=5&3=C&4=T&5=1&6=g&gsub=function+gsub(pattern%2C+replacement)+%7B%0D%0A++++var+result+%3D+%22%22%2C+source+%3D+this%2C+match%3B%0D%0A++++replacement+%3D+prepareReplacement(replacement)%3B%0D%0A++++if+(Object.isString(pattern))......... and goes on and on with what seems to be javascript 
code.


05/29/2013 06:19:24 PM Michael Slusarz Comment #4 Reply to this comment
But if you are in another application such as Calendar or Address 
Book, choosing Mail - Search from the top menu fails.
This is what I tested and what works fine.  I posted an example of the 
URI I see, and it is significantly smaller than 8000+ characters.

05/29/2013 06:09:38 PM delrio (at) mie (dot) utoronto (dot) ca Comment #3 Reply to this comment
If you are already in the Mail application, selecting Mail - Search 
works fine.

But if you are in another application such as Calendar or Address 
Book, choosing Mail - Search from the top menu fails.  Similar to Bug 
#12273 but in that case the error was "error communicating with the 
server" instead of "URI too long"
05/29/2013 05:46:53 PM Michael Slusarz Comment #2 Reply to this comment
Can't reproduce.

The URL should look like:
https://example.com/horde/imp/dynamic.php?page=mailbox#search
05/29/2013 04:50:08 PM delrio (at) mie (dot) utoronto (dot) ca Comment #1
Priority ⇒ 1. Low
State ⇒ Unconfirmed
Patch ⇒ No
Milestone ⇒
Summary ⇒ Navigating to Mail Search from top menu error: URI Too Large
Type ⇒ Bug
Queue ⇒ IMP
Reply to this comment
This might be related to Bug #12273

Navigating to Mail Search from top menu from another application in 
dynamic mode now produces the following error:

Request-URI Too Large

The server logs:  "request failed: URI too long (longer than 8190)"

Saved Queries