Forum Discussion
Deb_Allen_18
Jul 26, 2006Historic F5 Account
findclass match on empty string
We have this code:
findclass [findstr [HTTP::uri] "FeReqHdlg=" 10 "&"] $::FEserverClass
When the findstr command doesn't find a match (parameter is not present in URI), an empty string is returned (as expected).
When the findclass command runs, looking up the empty string in the indicated class, it always returns the first member of the class, rather than also returning an empty string.
I was hoping to verify whether this is expected behaviour before we open a Support case.
TIA
/deb
- Colin_Walker_12Historic F5 AccountIt sounds like this is not behaving as expected. If you search a class for a null string, it shouldn't spit back the first entry.
- JRahm
Admin
Mind posting the version you are seeing this behavior on deb? Is it all versions? - Deb_Allen_18Historic F5 Account9.2.3 is the version my customer is using, and I have no insight into what other versions may be affected.
set FEHandler [findstr [HTTP::uri] "FeReqHdlg=" 10 "&"] if { [string length $FEHandler] == 0} { set FEHandler "-" } ...[findclass $FEHandler $::FEserverClass]...
- Deb_Allen_18Historic F5 AccountGood point. Can't remember why they took that approach, but it seemed to make sense at the time...
- Colin_Walker_12Historic F5 AccountGood to hear, thanks for the update.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects