[rt-users] PATCH: RT.pm.in for MasonComponentRoot

Jesse Vincent jesse at bestpractical.com
Thu Jul 23 16:55:58 EDT 2009




On Thu, Jul 23, 2009 at 01:21:46PM -0700, Jo Rhett wrote:
> So I just setup 3.8.4 as an install from source in its own directory  
> instead of using the FreeBSD port.
> 
> When I got done, I got a 404 error that wouldn't go away.  RT log  
> indicated
> [Thu Jul 23 19:57:45 2009] [warning]: [Mason] Cannot resolve file to  
> component: /u/rtweb/rt38/share/html/index.html (is file outside  
> component root?) at /usr/local/lib/perl5/site_perl/5.8.8/HTML/Mason/ 
> ApacheHandler.pm line 852. (/usr/local/lib/perl5/site_perl/5.8.8/HTML/ 
> Mason/ApacheHandler.pm:852)

Can you please send the ./configure invocation you used that generated
this error? I'm surprised I haven't run across this issue before.
> 
> As it turns out, the problem was in lib/RT.pm.  It doesn't seem to  
> work okay with relative paths.
> 
> --- RT.pm_orig  2009-07-23 13:12:45.000000000 -0700
> +++ RT.pm       2009-07-23 13:02:02.000000000 -0700
> @@ -75,7 +75,8 @@
> 
>   # $MasonComponentRoot is where your rt instance keeps its mason html  
> files
> 
> -our $MasonComponentRoot = 'share/html';
> +our $MasonComponentRoot = '/u/rtweb/rt38/share/html';
> 
>   # $MasonLocalComponentRoot is where your rt instance keeps its site- 
> local
>   # mason html files.
> 
> The fix for the source tree would be:
> 
> --- lib/RT.pm.in_orig   2009-07-23 13:18:30.000000000 -0700
> +++ lib/RT.pm.in        2009-07-23 13:19:35.000000000 -0700
> @@ -75,7 +75,7 @@
> 
>   # $MasonComponentRoot is where your rt instance keeps its mason html  
> files
> 
> -our $MasonComponentRoot = '@MASON_HTML_PATH@';
> +our $MasonComponentRoot = '@RT_PATH@/@MASON_HTML_PATH@';
> 
>   # $MasonLocalComponentRoot is where your rt instance keeps its site- 
> local
>   # mason html files.
> 
> -- 
> Jo Rhett
> Net Consonance : consonant endings by net philanthropy, open source  
> and other randomness
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
> 
> Community help: http://wiki.bestpractical.com
> Commercial support: sales at bestpractical.com
> 
> 
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
> Buy a copy at http://rtbook.bestpractical.com
> 

-- 



More information about the rt-users mailing list