Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formatting issue. #25

Open
autarch opened this issue May 16, 2020 · 2 comments
Open

Formatting issue. #25

autarch opened this issue May 16, 2020 · 2 comments

Comments

@autarch
Copy link
Member

autarch commented May 16, 2020

Migrated from rt.cpan.org #41668 (status was 'stalled')

Requestors:

From [email protected] on 2008-12-13 01:14:08
:

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';

@autarch
Copy link
Member Author

autarch commented May 16, 2020

From [email protected] on 2008-12-22 23:25:02
:

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';

@autarch
Copy link
Member Author

autarch commented May 16, 2020

From [email protected] on 2008-12-24 03:05:50
:

<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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant