According to
TWiki/TWikiVariables#URLPARAM_name_get_value_of_a_URL
default="..." Default value in case parameter is empty or missing
A user had this URL
http://twiki.foo.com/view/Web/MyPage?month=&year=&clustertype=red
and had this setting
%URLPARAM{"month" default="00"}%
In TWiki 4.0.5 month was set to
00
because it came in "empty".
Now, it returns simply an empty value.
One argument is that month is "set" to the null string, therefore the
default
value should not take effect.
The other argument is that the docs clearly state
empty or missing and, as
month
is empty in the URL, the default
should take effect.
Is this a bug or a confusion in the docs.
(Personally, I think "empty" should still mean "empty" and the URL above should cause
month
to pick up the desired default value.)
>
-- TWiki:Main/VickiBrown
- 08 Apr 2009
It's a bug if this is the observed behavior.
--
TWiki:Main.PeterThoeny
- 09 Apr 2009
Verified, bug was introduced by
TWikirev:14511
,
Item4434.
--
TWiki:Main.PeterThoeny
- 09 Apr 2009
Fixed, will be released in 4.3.1
--
TWiki:Main.PeterThoeny
- 09 Apr 2009
Changing the state of this bug to "confirm" to correct the test case
--
TWiki:Main.SopanShewale
- 27 Apr 2009
Changing the state to "Waiting for Release"
--
TWiki:Main.SopanShewale
- 27 Apr 2009