NOTE: If you are a developer, please use a private wiki based on foswiki/trunk on a daily base ...or use
trunk.foswiki.org to view this page for some minimal testing.
Use
Item9693 for docu changes for 1.2 and 2.0.
Item836: view of raw information on a topic that doesn't exist causes BOOM
| Priority: |
CurrentState: |
AppliesTo: |
Component: |
WaitingFor: |
| Urgent |
Closed |
Engine |
|
|
see
http://foswiki.org/Tasks/ReleaseEnhancements?raw=debug , and you will get
Foswiki detected an internal error - please check your Foswiki logs and webserver logs for more information.
Can't call method "text" on an undefined value
note that
http://foswiki.org/Tasks/ReleaseEnhancements doesn't exist
--
WillNorris - 22 Jan 2009
Do not like Booms. Raising to urgent as this one must be easy to fix.
--
KennethLavrsen - 22 Jan 2009
I just verified this issue and the problem is at
View.pm:
if ($raw) {
$indexableView = 0;
$logEntry .= ' raw=' . $raw;
if ( $raw eq 'debug' || $raw eq 'all' ) {
$text = $store->getDebugText( $meta, $text );
}
}
This code is executed even if the topic doesn't exist (
$meta and
$text are undefined), then the
getDebugText dies. Two notes:
-
getDebugText can't die
- if a user asks for raw view of a topic that doesn't exist, the "This Topic doesn't exist" page should be displayed.
--
GilmarSantosJr - 22 Jan 2009
Th fix was really simple: set
$raw to the null string if the topic doesn't exist, like it's done for other variables. This is enough to fix the reported issue, so
Waiting for Release
--
GilmarSantosJr - 22 Jan 2009