Subject: | Doesn't cope with '/'s in Primary Key fields |
If a table's Primary Key contains any '/' characters then only that part of the key prior to the first '/' is used to create links. Thus rendering it impossible to select such a record for editing.
Example:
Primary key: '/rss.xml'
URL: 'http://217.0.0.1/testapp/urls/view//rss.xml'
Maypole.pm:line 125:
my @pi = split /\//, $self->{path};
Leaves @pi (after cleaning) with: ['urls','view','','rss.xml']
These are then mapped as:
table => 'urls',
action => 'view',
args => ['','rss.xml']
Maypole::Mode::Base:line 16:
my $obj = $class->retrieve( $r->{args}->[0] );
Which will attempt to retirieve a record with a primary key of ''.