todos-contra-el-fuego-web/imports/api
vjrj 9feaca9d0b fix: fire ids leaked into URLs as ObjectID("...") on Mongo 7
Fire collections use idGeneration:'MONGO', so _id is a Mongo.ObjectID whose
toString() is ObjectID("<hex>"), not the bare hex. Interpolating _id into a
URL produced /fire/archive/ObjectID("c0..."), which no route matches -> the
fire-detail page 404'd. New hexId() helper returns the 24-char hex for an
ObjectID (and passes plain strings through); applied at the three string-context
sites: the map-marker click URL (MarkListeners), the active->archive redirect,
and the comments referenceId (Fires.js). Left falsePositives.insert untouched —
its check() expects a Meteor.Collection.ObjectID, so it takes the object.

Verified in browser: /fire/archive/<hex> and /fire/active/<hex> render the
detail page (map + comments), URL stays clean hex, no ObjectID( anywhere.
2026-07-17 18:31:59 +02:00
..
ActiveFires meteor3: purge dead client packages — web UI renders on 3.1 2026-07-14 11:32:19 +02:00
ActiveFiresUnion meteor3: purge dead client packages — web UI renders on 3.1 2026-07-14 11:32:19 +02:00
Comments meteor3: Comments methods and mail fan-out to async 2026-07-14 06:52:32 +02:00
Common fix: fire ids leaked into URLs as ObjectID("...") on Mongo 7 2026-07-17 18:31:59 +02:00
Documents Lint fixes 2017-12-15 17:42:45 +01:00
FalsePositives meteor3: REST API async migration COMPLETE — smoke green on Meteor 3.1 + Mongo 7 2026-07-14 06:21:35 +02:00
FireAlerts meteor3: purge dead client packages — web UI renders on 3.1 2026-07-14 11:32:19 +02:00
Fires meteor3: web Fires publications to async (findOneAsync/countAsync/awaited firesUnion) 2026-07-14 06:52:08 +02:00
Industries Added more industries 2018-02-27 16:50:26 +01:00
Notifications Mobile notifications 2018-08-02 12:42:19 +02:00
OAuth/server meteor3: purge dead client packages — web UI renders on 3.1 2026-07-14 11:32:19 +02:00
Rest meteor3: REST API async migration COMPLETE — smoke green on Meteor 3.1 + Mongo 7 2026-07-14 06:21:35 +02:00
SiteSettings Disable sitesettings methods 2018-02-14 11:26:14 +01:00
Subscriptions meteor3: REST API async migration COMPLETE — smoke green on Meteor 3.1 + Mongo 7 2026-07-14 06:21:35 +02:00
Users Rest api updated 2018-06-14 17:55:38 +02:00
Utility Fallback moved. Index points to telegran en bot 2018-05-10 09:00:05 +02:00