(left(".",1) eq ""); throws cannot convert string[.] to a number; No digits found.

Description

x = (left(".",1) eq "");

throws

lucee.runtime.exp.CasterException: cannot convert string[.] to a number; No digits found.   at lucee.runtime.op.Caster.toBigDecimal(Caster.java:5016)   at lucee.runtime.op.Caster.toNumber(Caster.java:368)   at lucee.runtime.op.OpUtil.compare(OpUtil.java:347)   at len_cfm$cf$2.call(/len.cfm:2)

Environment

None

Activity

Show:

Zac Spitzer 11 May 2023 at 15:08

we don’t have a test case for https://luceeserver.atlassian.net/browse/LDEV-4448 either, tried to repo the problem but couldn’t

Pothys - MitrahSoft 11 May 2023 at 12:14

The regression starts from the lucee version 6.0.0.368-SNAPSHOT and This commit causes this issue https://github.com/lucee/Lucee/commit/f0a517001e04cad433d3d80602d5ac715a2f371f

Pothys - MitrahSoft 11 May 2023 at 11:50

I added a testcase to this issue
Pull Request: https://github.com/lucee/Lucee/pull/2043

Duplicate

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

Sprint

Affects versions

Created 11 May 2023 at 10:24
Updated 29 July 2023 at 07:12
Resolved 12 May 2023 at 09:27

Flag notifications