• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item6243: URLPARAM "empty or missing"

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine   Normal Closed   patch 4.3.1, 5.0.0

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

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

ItemTemplate
Summary URLPARAM "empty or missing"
ReportedBy TWiki:Main.VickiBrown
Codebase 4.2.0, 4.2.1, 4.2.2, 4.2.3, 4.2.4, 4.3.0, ~twiki4
SVN Range TWiki-5.0.0, Tue, 07 Apr 2009, build 17964
AppliesTo Engine
Component

Priority Normal
CurrentState Closed
WaitingFor

Checkins TWikirev:17967 TWikirev:17968 TWikirev:18047
TargetRelease patch
ReleasedIn 4.3.1, 5.0.0
Edit | Attach | Watch | Print version | History: r8 < r7 < r6 < r5 < r4 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r8 - 2009-05-03 - PeterThoeny
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback