isValid('integer', 'Yes') returns true

Description


Will return true for Lucee while Coldfusion returns false

Environment

None

Activity

Michael Offner 
29 August 2022 at 13:51

most likely this comments are outdatted, the above code give me the correct result

Pothys - MitrahSoft 
22 November 2021 at 13:28
(edited)

I've checked this ticket on the lucee latest build 6.0.0.132-SNAPSHOT and still isValid() with type=integer using decimal values as string returns the incorrect result.

I updated a testcase

Pull Request:

Michael Offner 
19 November 2021 at 15:33
(edited)

please give it another try

Tim Smolders 
29 June 2021 at 13:08
(edited)

Also returns True.

Adobe CF returns False (expected behavior, imho).

Pothys - MitrahSoft 
21 January 2020 at 08:08

I've checked & confirmed the issue happened on lucee latest version 5.3.5.63-SNAPSHOT also. And I've added a test case and fix for this ticket.

Pull request: https://github.com/lucee/Lucee/pull/829

Fixed

Details

Assignee

Reporter

Priority

Fix versions

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Created 21 January 2020 at 03:14
Updated 13 April 2023 at 11:12
Resolved 29 August 2022 at 13:51