I ran the following test code using the various engines on Trycf :
path = "/foo//bar//baz";
writeoutput("List: " & path & " (<i>delimiters</i>=""/""; <i>includeEmptyValues</i>=true)" );
listLength = listLen(path, "/", true);
writeoutput("<p>List length: " & listLen( path, '/', true ) );
writeoutput("<p>List after deleting 3rd element: " & listDeleteAt( path, 3, '/', true ) );
- The engines all say – correctly – that the list’s length is 6.
- All the engines, except Lucee, say – correctly – that the result after deleting the 3rd list-element is
/foo/bar//baz
. - All the Lucee engines say – incorrectly – that the result after deleting the 3rd list-element is
/foo//bar//baz
.
OS: Windows 10
Lucee Versions: 4.5, 5, 6, 7
N.B.:
- The issue was discovered by @bdw429s, and discussed in the Lucee Channel in CFML Slack.
- Refer to Jira