Summary | Malformed Remote Subscription URL |
Queue | Horde Groupware Webmail Edition |
Queue Version | 1.1-RC1 |
Type | Bug |
State | Duplicate |
Priority | 1. Low |
Owners | |
Requester | tyler.parsons-horde (at) dynamicpulse (dot) com |
Created | 01/05/2008 (6409 days ago) |
Due | |
Updated | 01/08/2008 (6406 days ago) |
Assigned | 01/07/2008 (6407 days ago) |
Resolved | 01/08/2008 (6406 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
State ⇒ Duplicate
ticket #5942.result and displays nothing.
I then proceeded to run the following command echo Horde::url('',
true, -1); in all application context with the expected result of
https://domainname.com/[Application Context]/ which is not the desired
result.
What I did find interesting was when I ran the following command echo
Horde::url('/imp', true, -1); it worked as it should no matter what
Application context it was executed within. Further analysis
discovered that if the following echo Horde::url('imp', true, -1);
was run (removed the /) it would always display
https://domainname.com/[Application Context]/imp.
From what I can tell is when $registry->get('webroot', 'horde');
returns or does not contain a / the malformed URLs are generated
within that specific application code. Upon further review there are
numerous other places within other application frameworks where this
same flaw is executed (nag and mnemo) if memory serves me right.
State ⇒ Feedback
application context? The correct (horde) webroot setting for you
should be '', if horde is your root directory.
File: horde/kronolith/templates/calendars/calendars.inc
Line: 30
I extracted and then modified a piece of code I found within horde and
began playing with it within the PHP CLI:
echo (Horde::url($registry->get('webroot', 'horde'), true, -1) .
'/rpc.php/kronolith/" + share + ".ics"');
When executed within any application context it allways produces this
formated URL https://domainname.com/[Application
Context]//rpc.php/kronolith/" + share + ".ics". This happens my
webroot within the horde array is set to either _detect_webroot() or ''.
When I populate the horde webroot with an actual value like '/' the
following string is displayed within all applications contexts
https://domainname.com//rpc.php/kronolith/" + share + ".ics"
Which is a good thing since "Application Context" now reflects the
webroot set for the horde array. The only bad part is then it messes
up all the path'ing to the javascript / css and images and other things.
Not sure if I made myself clear with this description. Has anyone
been able to reproduce this? I think I may be missing something.
'fileroot' => dirname(__FILE__) . '/..',
'webroot' => _detect_webroot(),
I also tried the following just to determine if the _detect_webroot();
function was not working properly.
'fileroot' => dirname(__FILE__) . '/..',
'webroot' => '';
Both produced the same result. Hope this helps. Thanks!
'fileroot' => dirname(__FILE__) . '/../kronolith',
'webroot' => $this->applications['horde']['webroot'] . '/kronolith',
The entire kronolith application works with the exception of the
generation of the "Remote Subscription URL". Please advise.
State ⇒ Not A Bug
Priority ⇒ 1. Low
State ⇒ Unconfirmed
Queue ⇒ Horde Groupware Webmail Edition
Summary ⇒ Mailformed Remote Subscription URL
Type ⇒ Bug
have my horde install setup to run at my document root. Here is an
example of an auto generated text created with kronolith under "Manage
My Calendar":
https://domainName/kronolith//rpc.php/kronolith/testemail@test.com.ics
I do realize that the correct url that should be generated is:
https://domainName/rpc.php/kronolith/testemail@test.com.ics
Thanks!