I tried to post to the Maypole mailing list, but <a href="http://maypole.perl.org/?MailingList">it seems to be down</a>

Weird thing. I just got Maypole working, almost, on top of an existing CDBI app. What's weird is that this works:

perl -I../lib -MMaypole::CLI=Boss::Opera::Maypole::App -e1 "http://loc +alhost/opera/op_operator/list"
But when I get that exact url in the browser I get a Not Found from Apache. I can get the front page at /opera/ (I use the factory templates), but not click on the op_operator link to list it.

The access log:

127.0.0.1 - - [15/Feb/2005:21:26:51 +0100] "GET /opera/op_operator/lis +t HTTP/1.1" 404 329

The error log:

[Tue Feb 15 21:26:51 2005] [error] [client 127.0.0.1] File does not ex +ist: C:/.../source/web/htdocs/opera, referer: http://localhost/opera/

Versions:

Maypole 2.09 (reinstalled to make sure it wasn't a stale version like +last time) Apache/2.0.48 (Win32)
This is my httpd.conf
PerlRequire "C:/.../source/web/startup.pl" <Location /opera> SetHandler perl-script PerlHandler Boss::Opera::Maypole::App </Location>

This is my Maypole application class:

package Boss::Opera::Maypole::App; use Maypole::Application; use File::Spec; use File::Basename; use Data::Dumper; use Carp qw/ cluck /; use Boss::Opera::Operator; use Boss::Opera::ProductGroup; sub debug { 1; } __PACKAGE__->config->model("Maypole::Model::CDBI::Plain"); __PACKAGE__->setup([qw/ Boss::Opera::Operator Boss::Opera::ProductGrou +p /]); __PACKAGE__->config->application_name('Boss Opera Configuration Databa +se'); __PACKAGE__->config->uri_base("http://localhost/opera/"); __PACKAGE__->config->template_root(File::Spec->rel2abs(dirname(__FILE_ +_) . "/../../../../web/htdocs/templates")); __PACKAGE__->config->rows_per_page(10); __PACKAGE__->config->display_tables([qw/ op_operator op_product_group +/]); Boss::Opera::Operator->untaint_columns( printable => [qw/name/], integ +er => [qw/gs_operator_id/] );

As a long-shot I also put this in my Maypole app class:

warn("new parse_path\n"); sub parse_path { my $self = shift; cluck(Dumper($self, \@_)); $self->SUPER::parse_path(@_); }

The first warning turns up in the Apache console window, but not the "cluck Dumper". Both are visible when running it from the CLI. None of this shows up in Apache even when I successfully get the front page, so...

I tried to insert warnings in Maypole::handler also, nothing shows in the log, ever. I also found a mention in the list archives of the exception method in connection to getting 404:s, I overrode that one too but nothing turns up in the error log.

*sigh*

What is going on here? Any ideas? What should I poke at next?

/J - sooo close


In reply to Maypole::CLI works, but Apache says 404 by jplindstrom

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.