More cleanup from dispatch. Do not set the session asset if the requested URL does not exist. In RssFeed, pass the fragment to the next method. Fixes bug #11854.

This commit is contained in:
Colin Kuskie 2010-09-10 11:14:03 -07:00
parent 5608a43916
commit 587ff397b5
5 changed files with 30 additions and 2 deletions

View file

@ -160,7 +160,7 @@ sub dispatch {
elsif ($fragment eq '.rdf') {
return $self->www_viewRdf;
}
return $self->next::method();
return $self->next::method($fragment);
}
#-------------------------------------------------------------------

View file

@ -84,6 +84,7 @@ sub dispatch {
return $output if defined $output;
}
}
$session->clearAsset;
if ($session->var->isAdminOn) {
my $asset = WebGUI::Asset->newByUrl($session, $session->url->getRefererUrl) || WebGUI::Asset->getDefault($session);
return $asset->addMissing($assetUrl);

View file

@ -110,6 +110,19 @@ sub asset {
#-------------------------------------------------------------------
=head2 clearAsset ( )
Clears out the session asset.
=cut
sub clearAsset {
my $self = shift;
$self->{_asset} = undef;
}
#-------------------------------------------------------------------
=head2 close
Cleans up a WebGUI session information from memory and disconnects from any resources opened by the session.