Skip Menu |

This queue is for tickets about the HTML-Mason CPAN distribution.

Report information
The Basics
Id: 41668
Status: resolved
Priority: 0/
Queue: HTML-Mason

People
Owner: Nobody in particular
Requestors: ideysus [...] hassium.dyndns.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in:
  • 1.39
  • 1.40
Fixed in: (no value)



Subject: Formatting issue.
I am getting an error message using the Debian packaged Mason that looks like: [Mason] Cannot resolve file to component: /errors/500.mcusr/local/bricolage/comp/ (is file outside component root?) at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 858 I suspect, therefore, that the line: $pathname .= $r->path_info unless $fs_type eq 'file'; in 1.40 would better read something like (untested): $pathname = "/".$pathname.$r->path_info unless $fs_type eq 'file';
That code has been that way for a very long time. Can you be more specific about your situation - what is your document root, why does your URL start with /errors, etc.? Are you sure this isn't a bricolage specific problem? On Fri Dec 12 20:14:08 2008, ideysus wrote: Show quoted text
> I am getting an error message using the Debian packaged Mason that looks > like: > [Mason] Cannot resolve file to component: > /errors/500.mcusr/local/bricolage/comp/ (is file outside component > root?) at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 858 > > I suspect, therefore, that the line: > $pathname .= $r->path_info unless $fs_type eq 'file'; > in 1.40 would better read something like (untested): > $pathname = "/".$pathname.$r->path_info unless $fs_type eq 'file'; >
Subject: Re: [rt.cpan.org #41668] Formatting issue.
Date: Wed, 24 Dec 2008 03:04:59 +0000
To: bug-HTML-Mason [...] rt.cpan.org
From: "Ian Crowther" <i.crowther [...] gmail.com>
Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=41668 > > > That code has been that way for a very long time. Can you be more > specific about your situation - what is your document root, why does > your URL start with /errors, etc.? Are you sure this isn't a bricolage > specific problem? > > On Fri Dec 12 20:14:08 2008, ideysus wrote:
> > I am getting an error message using the Debian packaged Mason that looks > > like: > > [Mason] Cannot resolve file to component: > > /errors/500.mcusr/local/bricolage/comp/ (is file outside component > > root?) at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 858 > > > > I suspect, therefore, that the line: > > $pathname .= $r->path_info unless $fs_type eq 'file'; > > in 1.40 would better read something like (untested): > > $pathname = "/".$pathname.$r->path_info unless $fs_type eq 'file'; > >
> > >
I can't test it since I was only doing a trial with Bricolage and ended up abandoning it. I just glanced at the code and assumed it would be a simple error message formatting fix. If the message formats correctly for some people then clearly not.