Bug: Accidental Meta Declaration In Topic Text Is Nasty.
I managed to accidentally create a form declaration in a topic during an edit. It was of course for a non-existant form which caused a problem (
oopsnoformtemplate) not on trying to save the topic but on any
subsequent attempt to modify it. ie I entered
(percent)META:FORM{SomeLoadOfRubbish}(percent) where
(percent) is a
% symbol. This seems a little user hostile. Ok idiot hostile - nobody other than myself would do such a thing :-). Is it possible to check for meta data outside the block at the end of the topic (does anything delineate this?) and ignore it or fail on preview/save? It would also be really nice if there was (is there?) a way to do a rollback of something corrupt like this (ie via
RCS) without having the edit validation stuff throw an
oopsnoformtemplate?
Test Case
Enter (in edit) and save:
(percent)META:FORM{SomeLoadOfRubbish}(percent) where
(percent) is a
% symbol
Environment
| TWiki version: |
01Dec2001 |
| TWiki plugins: |
None |
| Server OS: |
Linux |
| Web server: |
Apache |
| Perl version: |
5.6.1 |
| Client OS: |
Windows |
| Web Browser: |
IE5 |
--
DarrylGreen - 21 Jul 2002
Follow up
We could make TWiki robust for this type of user input, but it is very unlikely that this happens in normal use. It can happen when experimenting with TWiki after reading the TWiki code and admin docs. So we will not fix this in favor of issues with higher priority (unless you or someone else provides code)
Fix record