All work
- problem with mongodb testcase for testMongoDBIDLDEV-5188
- review all member function return typesLDEV-3445
- Unlike ACF lucee XML document XmlRoot has its own XmRootLDEV-3353Michael Offner
- allow construct for ordered structsLDEV-113Resolved issue: LDEV-113Michael Offner
- Cannot use a Map as a struct with null valueLDEV-622Resolved issue: LDEV-622Michael Offner
- java.util.ConcurrentModificationException on ArrayList iteratorLDEV-1057Resolved issue: LDEV-1057Michael Offner
- isDefined=false for variables with name started from integerLDEV-3681Michael Offner
- structAppend against an array fails silentlyLDEV-1892Resolved issue: LDEV-1892Michael Offner
- New function to Merge StructsLDEV-689Michael Offner
- SQL Error, Negative delayLDEV-471Resolved issue: LDEV-471Michael Offner
10 of 10
problem with mongodb testcase for testMongoDBID
Details
Details
Assignee
Unassigned
UnassignedReporter
Zac Spitzer
Zac SpitzerPriority
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 7 December 2024 at 14:19
Updated 10 December 2024 at 18:49
Activity
Michael Offner 10 December 2024 at 18:49
Michael Offner
10 December 2024 at 18:49
Problem here is that MongoDBID
() does not return a struct, it returns a collection, but the function key(
expects a struct, so this is a exception in the test case.
Zac Spitzer 10 December 2024 at 15:25(edited)
Zac Spitzer
10 December 2024 at 15:25
(edited)
caused by https://ortussolutions.atlassian.net/browse/TESTBOX-408
workaround in place
var _id = MongoDBID();
var id = {}; // workaround https://ortussolutions.atlassian.net/browse/TESTBOX-370
structAppend(id, _id);
public void function testMongoDBID() skip="isNotSupported" { var id = MongoDBID(); // TODO something changed with testbox var objectId = deserializeJson(serializeJson(id)).objectId; // HACK $assert.key(objectId,"date"); $assert.key(objectId,"timestamp"); //$assert.key(objectId,"id"); var dateSeed = now().add("d",-1) id = MongoDBID(dateSeed); $assert.isEqual(dateSeed,id.getDate()); var idSeed = "56be2538ddd75f08acde1e46"; id = MongoDBID(idSeed); $assert.isEqual(idSeed,id.toString()); }
was
public void function testMongoDBID() skip="isNotSupported" { if(isNotSupported()) return; var id = MongoDBID(); $assert.key(id,"date"); $assert.key(id,"timestamp"); $assert.key(id,"id"); var dateSeed = now().add("d",-1) id = MongoDBID(dateSeed); $assert.isEqual(dateSeed,id.getDate()); var idSeed = "56be2538ddd75f08acde1e46"; id = MongoDBID(idSeed); $assert.isEqual(idSeed,id.toString()); }
this somehow stopped working with new versions of testbox, its returning an iterator
as in interm step, the json trick partially handled it, not sure what broke?