From trac_mapguide at osgeo.org Mon Nov 2 03:48:04 2026 From: trac_mapguide at osgeo.org (MapGuide Open Source) Date: Mon, 02 Nov 2026 11:48:04 -0000 Subject: [Mapguide-trac] [mapguide-trac] #2841: SELECTFEATURES (v4.0.0) shows no result when querying different geometries In-Reply-To: <045.0aace37c0523dd158d24c05aadfc904a@osgeo.org> References: <045.0aace37c0523dd158d24c05aadfc904a@osgeo.org> Message-ID: <060.faa1be1b216f407be043689c3f3e6581@osgeo.org> #2841: SELECTFEATURES (v4.0.0) shows no result when querying different geometries ---------------------+------------------------- Reporter: gBecker | Owner: (none) Type: defect | Status: closed Priority: medium | Milestone: Component: Web API | Version: 3.1.0 Severity: trivial | Resolution: duplicate Keywords: | External ID: ---------------------+------------------------- Changes (by jng): * resolution: => duplicate * status: new => closed Comment: Actual problem is at the PostgreSQL provider level: https://trac.osgeo.org/fdo/ticket/1024 -- Ticket URL: MapGuide Open Source MapGuide Open Source Internals From trac_mapguide at osgeo.org Mon Nov 2 04:05:44 2026 From: trac_mapguide at osgeo.org (MapGuide Open Source) Date: Mon, 02 Nov 2026 12:05:44 -0000 Subject: [Mapguide-trac] [mapguide-trac] #2751: Error selecting more than 1000 features from SQLite FeatureSource In-Reply-To: <045.c2796272f7a549cbf52752dbe39df31c@osgeo.org> References: <045.c2796272f7a549cbf52752dbe39df31c@osgeo.org> Message-ID: <060.8ac01ba85798c020180227ad25076285@osgeo.org> #2751: Error selecting more than 1000 features from SQLite FeatureSource -----------------------+---------------------- Reporter: gBecker | Owner: jng Type: defect | Status: closed Priority: high | Milestone: 4.0.1 Component: Map Agent | Version: 3.0.0 Severity: major | Resolution: fixed Keywords: | External ID: -----------------------+---------------------- Changes (by jng): * resolution: => fixed * status: new => closed Comment: Fixed r10237 (but really fixed on the FDO side in https://trac.osgeo.org/fdo/changeset/8418) -- Ticket URL: MapGuide Open Source MapGuide Open Source Internals From trac_mapguide at osgeo.org Mon Nov 2 15:42:32 2026 From: trac_mapguide at osgeo.org (MapGuide Open Source) Date: Mon, 02 Nov 2026 23:42:32 -0000 Subject: [Mapguide-trac] [mapguide-trac] #2894: Memory leak sweep In-Reply-To: <041.740a15f1b98829795dd279d8b490eac8@osgeo.org> References: <041.740a15f1b98829795dd279d8b490eac8@osgeo.org> Message-ID: <056.e2e862dd4c7b2b7e6b75c852775f0a18@osgeo.org> #2894: Memory leak sweep ---------------------+------------------------ Reporter: jng | Owner: jng Type: task | Status: reopened Priority: low | Milestone: 4.0.1 Component: General | Version: Severity: trivial | Resolution: Keywords: | External ID: ---------------------+------------------------ Changes (by jng): * resolution: fixed => * status: closed => reopened Comment: There's more leaks at the web tier -- Ticket URL: MapGuide Open Source MapGuide Open Source Internals From trac_mapguide at osgeo.org Mon Nov 2 16:07:13 2026 From: trac_mapguide at osgeo.org (MapGuide Open Source) Date: Tue, 03 Nov 2026 00:07:13 -0000 Subject: [Mapguide-trac] [mapguide-trac] #2895: Allow debug and release builds from single source tree Message-ID: <041.08e9be1ad8c47e55d84c4b5bcdbca818@osgeo.org> #2895: Allow debug and release builds from single source tree ----------------------------+---------------------- Reporter: jng | Owner: jng Type: defect | Status: assigned Priority: low | Milestone: 4.0.1 Component: Build System | Version: Severity: trivial | Keywords: External ID: | ----------------------------+---------------------- Currently MapGuide cannot be built in both debug and release from the same source tree because the FDO setup only allows for one set of .lib files, which means there is debug/release cross-linkage or vice versa if one attempts to build both debug and release. Change the FDO layout setup so that its debug/release .lib files are in separate directories and make sure downstream debug/release consumers reference the correct set of .lib files. -- Ticket URL: MapGuide Open Source MapGuide Open Source Internals From trac_mapguide at osgeo.org Mon Nov 2 17:36:52 2026 From: trac_mapguide at osgeo.org (MapGuide Open Source) Date: Tue, 03 Nov 2026 01:36:52 -0000 Subject: [Mapguide-trac] [mapguide-trac] #2307: .net/Java web tier test runners In-Reply-To: <041.f73f543ea09580ed6088477dd439e753@osgeo.org> References: <041.f73f543ea09580ed6088477dd439e753@osgeo.org> Message-ID: <056.0dcb2bec2318287a736b74e923b505b5@osgeo.org> #2307: .net/Java web tier test runners ---------------------+---------------------- Reporter: jng | Owner: jng Type: task | Status: closed Priority: low | Milestone: 4.0 Component: General | Version: Severity: trivial | Resolution: fixed Keywords: | External ID: ---------------------+---------------------- Changes (by jng): * resolution: => fixed * status: new => closed -- Ticket URL: MapGuide Open Source MapGuide Open Source Internals From trac_mapguide at osgeo.org Mon Nov 2 18:00:52 2026 From: trac_mapguide at osgeo.org (MapGuide Open Source) Date: Tue, 03 Nov 2026 02:00:52 -0000 Subject: [Mapguide-trac] [mapguide-trac] #2494: PHP test runner failing on Linux In-Reply-To: <041.8f958971e4ef288faed5ba25190e5df1@osgeo.org> References: <041.8f958971e4ef288faed5ba25190e5df1@osgeo.org> Message-ID: <056.0984fb4d402bb05b612e0b1e0f120f72@osgeo.org> #2494: PHP test runner failing on Linux ---------------------+---------------------- Reporter: jng | Owner: jng Type: defect | Status: closed Priority: low | Milestone: 4.0 Component: Web API | Version: Severity: trivial | Resolution: fixed Keywords: | External ID: ---------------------+---------------------- Changes (by jng): * resolution: => fixed * status: new => closed Comment: No longer the case -- Ticket URL: MapGuide Open Source MapGuide Open Source Internals From trac_mapguide at osgeo.org Mon Nov 2 18:15:13 2026 From: trac_mapguide at osgeo.org (MapGuide Open Source) Date: Tue, 03 Nov 2026 02:15:13 -0000 Subject: [Mapguide-trac] [mapguide-trac] #2762: name elements duplicated for rendered KML placemarks In-Reply-To: <041.caf190c3bed9f0ef13f2314bf4d2906b@osgeo.org> References: <041.caf190c3bed9f0ef13f2314bf4d2906b@osgeo.org> Message-ID: <056.63791dc933a66bd88312314d22971725@osgeo.org> #2762: name elements duplicated for rendered KML placemarks -------------------------+---------------------- Reporter: jng | Owner: jng Type: defect | Status: closed Priority: low | Milestone: Component: KML Service | Version: 3.1.0 Severity: trivial | Resolution: fixed Keywords: | External ID: -------------------------+---------------------- Changes (by jng): * resolution: => fixed * status: assigned => closed Comment: Fixed r10249 -- Ticket URL: MapGuide Open Source MapGuide Open Source Internals From trac_mapguide at osgeo.org Mon Nov 2 18:45:00 2026 From: trac_mapguide at osgeo.org (MapGuide Open Source) Date: Tue, 03 Nov 2026 02:45:00 -0000 Subject: [Mapguide-trac] [mapguide-trac] #2869: Web API docs missing tree sidebar (broken JQuery references) In-Reply-To: <041.6532d4be5995f8eca90e87ab5575c4a7@osgeo.org> References: <041.6532d4be5995f8eca90e87ab5575c4a7@osgeo.org> Message-ID: <056.397aaa30dc66ce5b9b43839d115092a2@osgeo.org> #2869: Web API docs missing tree sidebar (broken JQuery references) ---------------------+----------------------- Reporter: jng | Owner: jng Type: defect | Status: closed Priority: low | Milestone: 4.0 Component: Web API | Version: Severity: trivial | Resolution: invalid Keywords: | External ID: ---------------------+----------------------- Changes (by jng): * resolution: => invalid * status: assigned => closed Comment: We are now using per-language documentation tools. So this is indeed invalidated. -- Ticket URL: MapGuide Open Source MapGuide Open Source Internals From trac_mapguide at osgeo.org Mon Nov 2 18:47:23 2026 From: trac_mapguide at osgeo.org (MapGuide Open Source) Date: Tue, 03 Nov 2026 02:47:23 -0000 Subject: [Mapguide-trac] [mapguide-trac] #133: Update library version information In-Reply-To: <052.37411cecd02164d3b1b8c93d7f104f18@osgeo.org> References: <052.37411cecd02164d3b1b8c93d7f104f18@osgeo.org> Message-ID: <067.13e703a9285f940ec3756a0549d208f3@osgeo.org> #133: Update library version information ----------------------------+---------------------- Reporter: waltweltonlair | Owner: (none) Type: task | Status: closed Priority: medium | Milestone: Component: General | Version: Severity: major | Resolution: fixed Keywords: | External ID: ----------------------------+---------------------- Changes (by jng): * resolution: => fixed * status: new => closed -- Ticket URL: MapGuide Open Source MapGuide Open Source Internals From trac_mapguide at osgeo.org Mon Nov 2 19:58:58 2026 From: trac_mapguide at osgeo.org (MapGuide Open Source) Date: Tue, 03 Nov 2026 03:58:58 -0000 Subject: [Mapguide-trac] [mapguide-trac] #2896: Fix correctness of "batch sorted block" feature join algorithm Message-ID: <041.cb8e85b6bba47a2bbb63a77a75df57aa@osgeo.org> #2896: Fix correctness of "batch sorted block" feature join algorithm -------------------------------+---------------------- Reporter: jng | Owner: jng Type: defect | Status: assigned Priority: low | Milestone: 4.0.1 Component: Feature Service | Version: Severity: trivial | Keywords: External ID: | -------------------------------+---------------------- The following tickets were "fixed" by #1888 https://trac.osgeo.org/mapguide/ticket/502 https://trac.osgeo.org/mapguide/ticket/791 https://trac.osgeo.org/mapguide/ticket/1396 https://trac.osgeo.org/mapguide/ticket/1790 All the above tickets used the "batch sorted block" feature join algorithm, and #1888 fixed their sort capabilities to avoid using this algorithm. There were many correctness issues with this algorithm, which #1888 swept under the rug by using a more optimal algorithm. The original "batch sorted block" algorithm still has correctness issues. -- Ticket URL: MapGuide Open Source MapGuide Open Source Internals From trac_mapguide at osgeo.org Mon Nov 2 20:02:28 2026 From: trac_mapguide at osgeo.org (MapGuide Open Source) Date: Tue, 03 Nov 2026 04:02:28 -0000 Subject: [Mapguide-trac] [mapguide-trac] #2896: Fix correctness of "batch sorted block" feature join algorithm In-Reply-To: <041.cb8e85b6bba47a2bbb63a77a75df57aa@osgeo.org> References: <041.cb8e85b6bba47a2bbb63a77a75df57aa@osgeo.org> Message-ID: <056.ebc9ea103dba2b00939b52f4a35e100a@osgeo.org> #2896: Fix correctness of "batch sorted block" feature join algorithm -----------------------------+---------------------- Reporter: jng | Owner: jng Type: defect | Status: closed Priority: low | Milestone: 4.0.1 Component: Feature Service | Version: Severity: trivial | Resolution: fixed Keywords: | External ID: -----------------------------+---------------------- Changes (by jng): * resolution: => fixed * status: assigned => closed Comment: Fixed r10251 -- Ticket URL: MapGuide Open Source MapGuide Open Source Internals From trac_mapguide at osgeo.org Mon Nov 2 20:06:25 2026 From: trac_mapguide at osgeo.org (MapGuide Open Source) Date: Tue, 03 Nov 2026 04:06:25 -0000 Subject: [Mapguide-trac] [mapguide-trac] #2867: Try to better explain why a localized exception message could not be retrieved In-Reply-To: <041.ddff53768bd108c9c5bccbd4f8b5d9ac@osgeo.org> References: <041.ddff53768bd108c9c5bccbd4f8b5d9ac@osgeo.org> Message-ID: <056.2d681ab09ac6ed6132cbb3e06c1ddc4b@osgeo.org> #2867: Try to better explain why a localized exception message could not be retrieved ---------------------+---------------------- Reporter: jng | Owner: jng Type: defect | Status: closed Priority: low | Milestone: Component: General | Version: Severity: trivial | Resolution: fixed Keywords: | External ID: ---------------------+---------------------- Changes (by jng): * resolution: => fixed * status: assigned => closed Comment: Fixed r10252 -- Ticket URL: MapGuide Open Source MapGuide Open Source Internals From trac_mapguide at osgeo.org Mon Nov 2 20:57:02 2026 From: trac_mapguide at osgeo.org (MapGuide Open Source) Date: Tue, 03 Nov 2026 04:57:02 -0000 Subject: [Mapguide-trac] [mapguide-trac] #1331: Add more details on log file behaviour to serverconfig.ini file In-Reply-To: <044.47726ca1160eca329a83ca9bf7eac040@osgeo.org> References: <044.47726ca1160eca329a83ca9bf7eac040@osgeo.org> Message-ID: <059.35d81e752b817408cd6b5ab0e72d044d@osgeo.org> #1331: Add more details on log file behaviour to serverconfig.ini file -------------------------+---------------------- Reporter: jbirch | Owner: (none) Type: enhancement | Status: closed Priority: low | Milestone: Component: Server | Version: 2.1.0 Severity: trivial | Resolution: fixed Keywords: | External ID: -------------------------+---------------------- Changes (by jng): * resolution: => fixed * status: new => closed Comment: Fixed r10253 -- Ticket URL: MapGuide Open Source MapGuide Open Source Internals From trac_mapguide at osgeo.org Mon Nov 2 21:33:41 2026 From: trac_mapguide at osgeo.org (MapGuide Open Source) Date: Tue, 03 Nov 2026 05:33:41 -0000 Subject: [Mapguide-trac] [mapguide-trac] #2488: The result of GetFeaturesKml contains more Placemark elements than expected In-Reply-To: <044.b6bdf3b7117f634362174163d8019417@osgeo.org> References: <044.b6bdf3b7117f634362174163d8019417@osgeo.org> Message-ID: <059.9786be8cb538c918762af4dec0e70fbb@osgeo.org> #2488: The result of GetFeaturesKml contains more Placemark elements than expected ---------------------+---------------------- Reporter: zhanga | Owner: (none) Type: defect | Status: closed Priority: low | Milestone: 4.0.1 Component: General | Version: 2.5.0 Severity: trivial | Resolution: fixed Keywords: | External ID: ---------------------+---------------------- Changes (by jng): * milestone: 4.0 => 4.0.1 * resolution: => fixed * status: new => closed Comment: Fixed r10256 -- Ticket URL: MapGuide Open Source MapGuide Open Source Internals From trac_mapguide at osgeo.org Mon Nov 2 21:34:19 2026 From: trac_mapguide at osgeo.org (MapGuide Open Source) Date: Tue, 03 Nov 2026 05:34:19 -0000 Subject: [Mapguide-trac] [mapguide-trac] #2292: Bad memory allocation in MapGuide 2.4 on centos In-Reply-To: <048.15ea71861c5e4db51a45de41580dbf6f@osgeo.org> References: <048.15ea71861c5e4db51a45de41580dbf6f@osgeo.org> Message-ID: <063.7bb284ccb87f0c7850211198b255fab9@osgeo.org> #2292: Bad memory allocation in MapGuide 2.4 on centos ------------------------+---------------------- Reporter: gabrimonfa | Owner: (none) Type: defect | Status: closed Priority: medium | Milestone: Component: General | Version: 2.5.0 Severity: major | Resolution: fixed Keywords: | External ID: ------------------------+---------------------- Changes (by jng): * resolution: => fixed * status: new => closed Comment: Fixed with better BDB error quality in r10255 -- Ticket URL: MapGuide Open Source MapGuide Open Source Internals From trac_mapguide at osgeo.org Mon Nov 2 22:04:00 2026 From: trac_mapguide at osgeo.org (MapGuide Open Source) Date: Tue, 03 Nov 2026 06:04:00 -0000 Subject: [Mapguide-trac] [mapguide-trac] #2895: Allow debug and release builds from single source tree In-Reply-To: <041.08e9be1ad8c47e55d84c4b5bcdbca818@osgeo.org> References: <041.08e9be1ad8c47e55d84c4b5bcdbca818@osgeo.org> Message-ID: <056.6115328ad69be22b0437eacfab55de43@osgeo.org> #2895: Allow debug and release builds from single source tree --------------------------+---------------------- Reporter: jng | Owner: jng Type: defect | Status: closed Priority: low | Milestone: 4.0.1 Component: Build System | Version: Severity: trivial | Resolution: fixed Keywords: | External ID: --------------------------+---------------------- Changes (by jng): * resolution: => fixed * status: assigned => closed Comment: Fixed r10243, r10244 -- Ticket URL: MapGuide Open Source MapGuide Open Source Internals From trac_mapguide at osgeo.org Tue Nov 3 03:44:24 2026 From: trac_mapguide at osgeo.org (MapGuide Open Source) Date: Tue, 03 Nov 2026 11:44:24 -0000 Subject: [Mapguide-trac] [mapguide-trac] #2572: Image and Text clipping on custom symbol (area usage) In-Reply-To: <049.42bfef0d141c826aefd0736759eaa760@osgeo.org> References: <049.42bfef0d141c826aefd0736759eaa760@osgeo.org> Message-ID: <064.f2fceae75b25cb49034d6956aaf3bfe7@osgeo.org> #2572: Image and Text clipping on custom symbol (area usage) -------------------------------+---------------------- Reporter: amontagnini | Owner: (none) Type: defect | Status: closed Priority: low | Milestone: 4.0 Component: Rendering Service | Version: 2.5.0 Severity: trivial | Resolution: fixed Keywords: | External ID: -------------------------------+---------------------- Changes (by jng): * resolution: => fixed * status: new => closed Comment: Fixed r10259 -- Ticket URL: MapGuide Open Source MapGuide Open Source Internals From trac_mapguide at osgeo.org Tue Nov 3 04:07:33 2026 From: trac_mapguide at osgeo.org (MapGuide Open Source) Date: Tue, 03 Nov 2026 12:07:33 -0000 Subject: [Mapguide-trac] [mapguide-trac] #863: Stylization: image portion of fill symbol definition not clipped at polygon boundaries In-Reply-To: <046.d123136aca54608253c01721f65c2277@osgeo.org> References: <046.d123136aca54608253c01721f65c2277@osgeo.org> Message-ID: <061.37e41afe8f5593ce58e9fcb3f4f2337b@osgeo.org> #863: Stylization: image portion of fill symbol definition not clipped at polygon boundaries -------------------------------+------------------------- Reporter: Andreas Morf | Owner: (none) Type: defect | Status: closed Priority: medium | Milestone: 4.0 Component: Rendering Service | Version: 2.0.2 Severity: trivial | Resolution: duplicate Keywords: | External ID: -------------------------------+------------------------- Changes (by jng): * resolution: => duplicate * status: new => closed Comment: Duplicate of #2572 -- Ticket URL: MapGuide Open Source MapGuide Open Source Internals From trac_mapguide at osgeo.org Tue Nov 3 04:23:51 2026 From: trac_mapguide at osgeo.org (MapGuide Open Source) Date: Tue, 03 Nov 2026 12:23:51 -0000 Subject: [Mapguide-trac] [mapguide-trac] #2302: Performance Report: Negative render times reported for some layers In-Reply-To: <041.b4d67116d6b6229c93ade95f38996775@osgeo.org> References: <041.b4d67116d6b6229c93ade95f38996775@osgeo.org> Message-ID: <056.61d5dfecf71ceacdd6e112dc9337ca4d@osgeo.org> #2302: Performance Report: Negative render times reported for some layers ---------------------+---------------------- Reporter: jng | Owner: jng Type: defect | Status: closed Priority: low | Milestone: Component: General | Version: 2.5.0 Severity: trivial | Resolution: fixed Keywords: | External ID: ---------------------+---------------------- Changes (by jng): * resolution: => fixed * status: new => closed Comment: Fixed r10261 -- Ticket URL: MapGuide Open Source MapGuide Open Source Internals From trac_mapguide at osgeo.org Tue Nov 3 05:52:26 2026 From: trac_mapguide at osgeo.org (MapGuide Open Source) Date: Tue, 03 Nov 2026 13:52:26 -0000 Subject: [Mapguide-trac] [mapguide-trac] #2897: Build MapGuide Portable for Linux Message-ID: <041.f92f78858b8da6ed6d7000bf4472a480@osgeo.org> #2897: Build MapGuide Portable for Linux ---------------------------+---------------------- Reporter: jng | Owner: jng Type: enhancement | Status: assigned Priority: low | Milestone: 4.0.1 Component: Desktop API | Version: Severity: trivial | Keywords: External ID: | ---------------------------+---------------------- Add missing CMakeLists.txt to allow building MapGuide Portable on Linux -- Ticket URL: MapGuide Open Source MapGuide Open Source Internals From trac_mapguide at osgeo.org Wed Nov 4 19:38:17 2026 From: trac_mapguide at osgeo.org (MapGuide Open Source) Date: Thu, 05 Nov 2026 03:38:17 -0000 Subject: [Mapguide-trac] [mapguide-trac] #2898: Java/PHP leaks byte arrays passed to MgByteReader Message-ID: <041.99e67f7a7fbbd95c9a99dfccd428579d@osgeo.org> #2898: Java/PHP leaks byte arrays passed to MgByteReader -----------------------+---------------------- Reporter: jng | Owner: jng Type: defect | Status: assigned Priority: low | Milestone: 4.0.1 Component: Web API | Version: Severity: trivial | Keywords: External ID: | -----------------------+---------------------- A DeepSeek-assisted follow up to this thread: https://mail-archive.com/mapguide-users at lists.osgeo.org/msg26357.html Has revealed that the Java and PHP bindings are leaking the byte arrays passed into MgByteReader -- Ticket URL: MapGuide Open Source MapGuide Open Source Internals From trac_mapguide at osgeo.org Wed Nov 4 19:41:10 2026 From: trac_mapguide at osgeo.org (MapGuide Open Source) Date: Thu, 05 Nov 2026 03:41:10 -0000 Subject: [Mapguide-trac] [mapguide-trac] #2898: Java/PHP leaks byte arrays passed to MgByteReader In-Reply-To: <041.99e67f7a7fbbd95c9a99dfccd428579d@osgeo.org> References: <041.99e67f7a7fbbd95c9a99dfccd428579d@osgeo.org> Message-ID: <056.93318f1f8e7a6562ec912423b77068ae@osgeo.org> #2898: Java/PHP leaks byte arrays passed to MgByteReader ---------------------+---------------------- Reporter: jng | Owner: jng Type: defect | Status: closed Priority: low | Milestone: 4.0.1 Component: Web API | Version: Severity: trivial | Resolution: fixed Keywords: | External ID: ---------------------+---------------------- Changes (by jng): * resolution: => fixed * status: assigned => closed Comment: In [changeset:"10267" 10267]: {{{#!CommitTicketReference repository="" revision="10267" Fix the Java and PHP bindings leaking a buffer per MgByteReader::Read Both bindings marshall the same single API - Read(byte[], int), the only BYTE_ARRAY_OUT parameter in the API - and each leaked the caller's buffer once per call, so an application draining a resource in chunks leaked the whole payload per fetch however it sized its reads. The allocations live in the client process's own runtime (the JVM heap and the Zend memory manager), so the server's ASan/LSan runs cannot see either one: the web tier suites stay green while the client grows without bound. Java: the BYTE_ARRAY_OUT freearg typemap released the array with JNI_COMMIT, which copies the buffer back but deliberately does not free it. A client fetching an 18 MB resource data stream 12 times grew RSS by 206,260 KB (17,188 KB per fetch) with the Java heap flat at 23 MB, and massif attributed all of it to jni_GetByteArrayElements <- JNIEnv_::GetByteArrayElements <- Java_..._MgByteReader_1read. Release mode 0 copies back and frees; the same 12 fetches now grow 2,804 KB, and 40 fetches with 1 MB reads grow 32,324 KB in total with the heap oscillating between 17 and 44 MB. PHP: the BYTE_ARRAY_OUT argout typemap assigned the filled buffer over the caller's by-reference value with ZVAL_STRINGL, which stores the new string without releasing the value already there, so every read after the first leaked the previous chunk. Draining the same 18 MB resource through a local MgByteReader grew memory_get_usage(false) by 27,649 KB per resource with 8 KB reads and 18,505 KB with 1 MB reads. Both are now flat (393 KB used, arena unchanged), and a 12-fetch proxied loop grows 28 KB in total. Neither defect is in the two BYTE_ARRAY_IN constructors (MgByteSource and MgByteReader from a byte[]); those already released with mode 0 and are unchanged - 200 iterations of a 4 MB payload with each object released grow RSS by ~1 MB in total. The .NET binding has no equivalent defect: byte[] is a blittable array that the P/Invoke layer pins for the call, so nothing is allocated per call and the same proxied flow is flat. * Bindings/src/Bindings/Java/java.i: release the BYTE_ARRAY_OUT array with mode 0 instead of JNI_COMMIT, which is a copy-back but not a release. * Bindings/src/Bindings/Php/php.i: dtor the by-reference zval before assigning the read result over it. * Portable/PortableUnmanagedApi/JavaApiEx/java.i: the same JNI_COMMIT fix, for the MapGuideApiEx Java binding that is generated from this tree. Only the typemap bodies changed, so the generated C++ is the whole of the difference and no binding surface moved. Verified on ubuntu22 x64 in the Debug/ASan tree: the web tier java suite reports "Tests failed/run: 0/618" and the php suite "Tests failed/run: 0/593", each with the server exiting 0 on SIGTERM after logging "Server stopped". The plateau measurements above were taken against the same build. Fixes #2898 }}} -- Ticket URL: MapGuide Open Source MapGuide Open Source Internals From trac_mapguide at osgeo.org Wed Nov 4 19:53:48 2026 From: trac_mapguide at osgeo.org (MapGuide Open Source) Date: Thu, 05 Nov 2026 03:53:48 -0000 Subject: [Mapguide-trac] [mapguide-trac] #2899: OpenAPI spec Message-ID: <041.b7ab07469c26e7d46a8c9e14fdaa40b4@osgeo.org> #2899: OpenAPI spec -------------------------+---------------------- Reporter: jng | Owner: jng Type: defect | Status: assigned Priority: low | Milestone: 4.0.1 Component: Map Agent | Version: Severity: trivial | Keywords: External ID: | -------------------------+---------------------- It would improve developer experience substantially if we described the mapagent through an OpenAPI spec. This would facilitate easy code generation of mapagent clients. -- Ticket URL: MapGuide Open Source MapGuide Open Source Internals From trac_mapguide at osgeo.org Thu Nov 5 06:55:18 2026 From: trac_mapguide at osgeo.org (MapGuide Open Source) Date: Thu, 05 Nov 2026 14:55:18 -0000 Subject: [Mapguide-trac] [mapguide-trac] #2900: Map Agent loose ends Message-ID: <041.61f2872b343d84322b31ba80fe4cd5c2@osgeo.org> #2900: Map Agent loose ends -------------------------+---------------------- Reporter: jng | Owner: jng Type: defect | Status: assigned Priority: low | Milestone: 4.0.1 Component: Map Agent | Version: Severity: trivial | Keywords: External ID: | -------------------------+---------------------- ## GETSPATIALCONTEXTS `ACTIVEONLY` should not be a required parameter (and default to `0` if not specified) ## SELECTAGGREGATES When `FORMAT=application/json` the response is not a literal XML to JSON conversion XML: ```xml totalint64total9 ``` JSON: ```json { "PropertySet": { "PropertyDefinitions": [ { "PropertyDefinition": [ { "Name": [ "total" ], "Type": [ "int64" ] } ] } ], "Properties": [ { "PropertyDefinitions": [ { "PropertyDefinition": [ { "Name": [ "total" ], "Type": [ "int64" ] } ] } ] } ] } } ``` # GEO.* `FORMAT` parameter checking should be case-insensitive Bad/invalid `FORMAT` parameters not being checked # GETMAPIMAGE Validate required `FORMAT` parameter (ie. Throw if missing) -- Ticket URL: MapGuide Open Source MapGuide Open Source Internals From trac_mapguide at osgeo.org Fri Nov 6 00:01:32 2026 From: trac_mapguide at osgeo.org (MapGuide Open Source) Date: Fri, 06 Nov 2026 08:01:32 -0000 Subject: [Mapguide-trac] [mapguide-trac] #2900: Map Agent loose ends In-Reply-To: <041.61f2872b343d84322b31ba80fe4cd5c2@osgeo.org> References: <041.61f2872b343d84322b31ba80fe4cd5c2@osgeo.org> Message-ID: <056.1322a1c024e0fb564bd6aa246ba827f8@osgeo.org> #2900: Map Agent loose ends -----------------------+---------------------- Reporter: jng | Owner: jng Type: defect | Status: closed Priority: low | Milestone: 4.0.1 Component: Map Agent | Version: Severity: trivial | Resolution: fixed Keywords: | External ID: -----------------------+---------------------- Changes (by jng): * resolution: => fixed * status: assigned => closed Comment: Fixed r10270 -- Ticket URL: MapGuide Open Source MapGuide Open Source Internals From trac_mapguide at osgeo.org Fri Nov 6 00:02:32 2026 From: trac_mapguide at osgeo.org (MapGuide Open Source) Date: Fri, 06 Nov 2026 08:02:32 -0000 Subject: [Mapguide-trac] [mapguide-trac] #2891: Measure Distance is Incorrect When using PseudoMercator ESPG 3857 In-Reply-To: <050.7ee75ac754a9038a750135a6655701c8@osgeo.org> References: <050.7ee75ac754a9038a750135a6655701c8@osgeo.org> Message-ID: <065.c8e8a29a8862f2e23e3eb51ac02ca9e8@osgeo.org> #2891: Measure Distance is Incorrect When using PseudoMercator ESPG 3857 ----------------------------+---------------------- Reporter: crispinatime | Owner: (none) Type: defect | Status: closed Priority: medium | Milestone: 4.0.1 Component: Viewer Command | Version: 3.0.0 Severity: major | Resolution: fixed Keywords: | External ID: ----------------------------+---------------------- Changes (by jng): * resolution: => fixed * status: new => closed Comment: Fixed r10271 -- Ticket URL: MapGuide Open Source MapGuide Open Source Internals From trac_mapguide at osgeo.org Fri Nov 6 00:09:59 2026 From: trac_mapguide at osgeo.org (MapGuide Open Source) Date: Fri, 06 Nov 2026 08:09:59 -0000 Subject: [Mapguide-trac] [mapguide-trac] #2894: Memory leak sweep In-Reply-To: <041.740a15f1b98829795dd279d8b490eac8@osgeo.org> References: <041.740a15f1b98829795dd279d8b490eac8@osgeo.org> Message-ID: <056.16ebcaa742c1268640169d3568ee7d14@osgeo.org> #2894: Memory leak sweep ---------------------+---------------------- Reporter: jng | Owner: jng Type: task | Status: closed Priority: low | Milestone: 4.0.1 Component: General | Version: Severity: trivial | Resolution: fixed Keywords: | External ID: ---------------------+---------------------- Changes (by jng): * resolution: => fixed * status: reopened => closed -- Ticket URL: MapGuide Open Source MapGuide Open Source Internals From trac_mapguide at osgeo.org Fri Nov 6 07:01:48 2026 From: trac_mapguide at osgeo.org (MapGuide Open Source) Date: Fri, 06 Nov 2026 15:01:48 -0000 Subject: [Mapguide-trac] [mapguide-trac] #2899: OpenAPI spec In-Reply-To: <041.b7ab07469c26e7d46a8c9e14fdaa40b4@osgeo.org> References: <041.b7ab07469c26e7d46a8c9e14fdaa40b4@osgeo.org> Message-ID: <056.7fcb7139016bd7b42907cbd48a927ed9@osgeo.org> #2899: OpenAPI spec -----------------------+---------------------- Reporter: jng | Owner: jng Type: defect | Status: closed Priority: low | Milestone: 4.0.1 Component: Map Agent | Version: Severity: trivial | Resolution: fixed Keywords: | External ID: -----------------------+---------------------- Changes (by jng): * resolution: => fixed * status: assigned => closed Comment: Fixed r10268, r10269, r10272 -- Ticket URL: MapGuide Open Source MapGuide Open Source Internals From trac_mapguide at osgeo.org Mon Nov 9 07:17:02 2026 From: trac_mapguide at osgeo.org (MapGuide Open Source) Date: Mon, 09 Nov 2026 15:17:02 -0000 Subject: [Mapguide-trac] [mapguide-trac] #2897: Build MapGuide Portable for Linux In-Reply-To: <041.f92f78858b8da6ed6d7000bf4472a480@osgeo.org> References: <041.f92f78858b8da6ed6d7000bf4472a480@osgeo.org> Message-ID: <056.8c801aba3544f67dea8b8a61d6c380b3@osgeo.org> #2897: Build MapGuide Portable for Linux -------------------------+---------------------- Reporter: jng | Owner: jng Type: enhancement | Status: closed Priority: low | Milestone: 4.0.1 Component: Desktop API | Version: Severity: trivial | Resolution: fixed Keywords: | External ID: -------------------------+---------------------- Changes (by jng): * resolution: => fixed * status: assigned => closed -- Ticket URL: MapGuide Open Source MapGuide Open Source Internals From trac_mapguide at osgeo.org Fri Nov 13 02:55:12 2026 From: trac_mapguide at osgeo.org (MapGuide Open Source) Date: Fri, 13 Nov 2026 10:55:12 -0000 Subject: [Mapguide-trac] [mapguide-trac] #2901: Security sweep Message-ID: <041.377b722040c42c8854d021c2a4e1edf2@osgeo.org> #2901: Security sweep ------------------------+---------------------- Reporter: jng | Owner: jng Type: task | Status: assigned Priority: high | Milestone: 4.0.1 Component: General | Version: Severity: critical | Keywords: External ID: | ------------------------+---------------------- Let DeepSeek do a security vulnerability analysis and see what it finds -- Ticket URL: MapGuide Open Source MapGuide Open Source Internals From trac_mapguide at osgeo.org Fri Nov 13 03:09:13 2026 From: trac_mapguide at osgeo.org (MapGuide Open Source) Date: Fri, 13 Nov 2026 11:09:13 -0000 Subject: [Mapguide-trac] [mapguide-trac] #2901: Security sweep In-Reply-To: <041.377b722040c42c8854d021c2a4e1edf2@osgeo.org> References: <041.377b722040c42c8854d021c2a4e1edf2@osgeo.org> Message-ID: <056.8749359401421b93feba7f775317440b@osgeo.org> #2901: Security sweep ----------------------+---------------------- Reporter: jng | Owner: jng Type: task | Status: closed Priority: high | Milestone: 4.0.1 Component: General | Version: Severity: critical | Resolution: fixed Keywords: | External ID: ----------------------+---------------------- Changes (by jng): * resolution: => fixed * status: assigned => closed Comment: In [changeset:"10288" 10288]: {{{#!CommitTicketReference repository="" revision="10288" #2901: Fix the buffer overflows and input-validation gaps a security sweep found A read-through of Common, Server, Web and Portable (no Oem, no third party code) found eleven defects - two critical, three high, four medium, two low - and a pattern behind most of them: sprintf into a fixed stack buffer, where the size of the destination and the length of the result were two unrelated facts maintained by hand at every call site. Make that pattern impossible to write at those call sites. MgUtil::FormatBuffer is a variadic template over char (&)[N]: the buffer's size is deduced from the argument, so a call cannot pass a size that is not the buffer's own and cannot be given a pointer at all, and it formats with vsnprintf, truncating and always NUL-terminating, returning the length the format would have produced. It carries __attribute__((format(printf, 2, 3))) on GCC and Clang, so -Wformat now checks every call. That check is not decoration: it is what found four further mismatches that were already there, listed below. 98 call sites in 26 files were rewritten: 62 to MgUtil::FormatBuffer, 28 to snprintf in the libraries that do not link Foundation (Common/MdfParser/IOUtil.cpp and the MG renderers DWFRenderer, KmlRenderer and ObservationMesh), and the two %lf tolerance fields in SpatialContextData to MgUtil::DoubleToString, where a 128-byte buffer could not hold the value being described in the first place. The findings: - External entity and DTD resolution was on for every document the server parses, so a map or symbol definition could make the server read a local file or fetch a URL on its behalf. setLoadExternalDTD(false) and setDisableDefaultEntityResolution(true) are now set by Common/Foundation/System/XmlUtil.cpp, Common/MdfParser/SAX2Parser.cpp, Common/MdfParser/FSDSAX2Parser.cpp and Portable/MgPortable/Services/ResourceService.cpp. - Common/Renderers/AGGImageIO.cpp sized two stack allocations from the image width and height and allocated them before checking anything. The row-pointer table and the per-row RGB buffer are `height` pointers and `width` pixels, so both are now bounded by MG_MAX_PNG_DIMENSION (65536, 512 KB and 192 KB respectively) and checked before either allocation. - Three services turned a client- or definition-supplied number into a size without asking whether it could be one. Server/src/Services/Kml/ServerKmlService.cpp rejects a DPI that is zero, negative, not finite or above 10000 (ValidateDpi), and GetScale rejects a viewport of zero area. Server/src/Services/Tile/ServerTileService.cpp rejects a metatile factor outside the range the providers' fixed arrays can express (ValidateMetaTileFactor), and TileCacheDefaultProvider.cpp and TileCacheXYZProvider.cpp clamp the loop bound they iterate to. Server/src/Services/Rendering/ ServerRenderingService.cpp applies the same check to both entry points that take the metatile factor the client sends. - Common/Foundation/Data/Byte.cpp copied numRead bytes without relating numRead to the length left in the destination; the copy, the position and the remaining length are now checked together. - The multipart request parser in Web/src/MapAgentCommon/MapAgentCommon.cpp scanned for the end of a part without bounding the scan to the request, and compared the end tag with a length that was not the tag's; the scan is bounded and the comparison is a memcmp. Web/src/IsapiAgent/ IsapiPostParser.cpp allocated its buffer with room for a terminator but only wrote one on some content-type paths, leaving the multipart parser to run past the request as a C string; it is now terminated for every content type. - Server/src/Common/Manager/LogManager.cpp took the two names RenameLog works with as file names inside the log directory and passed them to it unfiltered, so either could name a path elsewhere; a separator in either is rejected. - The PHP, ASP.NET and JSP viewers passed a help page name from the query string straight to the filesystem. Web/src/mapviewerphp/{common,gettingstarted}.php, Web/src/mapviewernet/{common,gettingstarted}.aspx and Web/src/mapviewerjava/{common,gettingstarted}.jsp now validate the name against a page-name pattern and confirm the resolved path stays inside the localized help directory. What the format attribute found, all of it pre-existing: - Web/src/ApacheAgent/ApacheResponseHandler.cpp and Web/src/IsapiAgent/IsapiResponseHandler.cpp formatted a size_t Content-Length with %d, so the header reported the low 32 bits; the three sites now cast to INT32 like the outLen handling beside them. - Common/PlatformBase/Data/Int32Property.cpp read an INT32 with "%li" on the Linux branch, which reads eight bytes from a four-byte argument; it is "%d" now. - Common/Foundation/System/Util.cpp formatted an INT64 with "%lli", which is a long on LP64; it is "%lld" after a (long long) cast. Two further defects the tests turned up rather than the review: - MgUtil::TrimEndingZeros (both overloads) treated an integer string as if it had a fractional part and dropped its last digit: "100" came back as "1". Both now only trim when there is a '.'. - MgUtil::SingleToString and DoubleToString are used for the identity properties' string form in Common/PlatformBase/MapLayer/SelectionBase.cpp instead of a fixed-buffer %f, which both truncates and is locale dependent - an identity value is compared and stored, so it must be neither. Tests: - Server/src/UnitTesting/TestMisc.cpp: FormatBuffer (bounds, truncation, terminator), ByteReadBounds, XmlExternalEntityRejected, IntegerToStringBounds, FloatingPointToStringBounds and StringToNumberBounds, the last three covering every MgUtil conversion at its boundaries (INT32/INT64 limits, the 2^53 integer precision limit of the double path, denormals, 1e308, and the TrimEndingZeros cases above). - Server/src/UnitTesting/TestLogManager.cpp: three RenameLog traversal assertions. - Server/src/UnitTesting/TestKmlService.cpp and TestTileService.cpp: GetLayerKmlRejectsInvalidDpi and InvalidMetaTileFactorRejected. - Server/src/UnitTesting/TestServerAdminService.cpp: GetDocument read a document only a later case creates, so it passed or failed by order; it now writes the document, reads it back and checks the content. - Server/src/UnitTesting/TestRenderingService.cpp: RenderAreaSymbolClipping asserted on the pixels of a symbol primitive, which the renderer drops entirely when the font engine resolves no font, so the case failed for a reason unrelated to clipping on a machine with no configured font directory. Its second primitive is a now. Verified in both configurations against this change set: Debug (ASan/LSan) `mgserver test all` passes 658 cases / 49,777 assertions with no leak records and no AddressSanitizer summary, and Release `mgserver test all` passes 659 cases / 49,782 assertions. The three suites carrying the new cases (Misc, LogManager, KmlService, TileService, ServerAdminService, RenderingService) were also run one process each, which is where exit-time races differ from the aggregate. Fixes #2901 }}} -- Ticket URL: MapGuide Open Source MapGuide Open Source Internals From trac_mapguide at osgeo.org Sun Nov 15 01:35:12 2026 From: trac_mapguide at osgeo.org (MapGuide Open Source) Date: Sun, 15 Nov 2026 09:35:12 -0000 Subject: [Mapguide-trac] [mapguide-trac] #2902: Bring Java devguide samples up to parity with PHP/.net Message-ID: <041.a3c39042ace14f24483a29fd1d504ced@osgeo.org> #2902: Bring Java devguide samples up to parity with PHP/.net -----------------------+---------------------- Reporter: jng | Owner: jng Type: task | Status: assigned Priority: low | Milestone: 4.0.1 Component: Samples | Version: Severity: trivial | Keywords: External ID: | -----------------------+---------------------- Easy win to throw AI tokens at -- Ticket URL: MapGuide Open Source MapGuide Open Source Internals From trac_mapguide at osgeo.org Sun Nov 15 01:37:26 2026 From: trac_mapguide at osgeo.org (MapGuide Open Source) Date: Sun, 15 Nov 2026 09:37:26 -0000 Subject: [Mapguide-trac] [mapguide-trac] #2903: Developer's Guide: Provide code samples in all 3 languages Message-ID: <041.2e7581538caee0e80606bf42bdd67715@osgeo.org> #2903: Developer's Guide: Provide code samples in all 3 languages -----------------------------+---------------------- Reporter: jng | Owner: jng Type: task | Status: assigned Priority: low | Milestone: 4.0.1 Component: Documentation | Version: Severity: trivial | Keywords: External ID: | -----------------------------+---------------------- Currently the code samples in the MapGuide Developer's Guide are biased towards PHP with .net and Java left to the author's imagination. Before we proceed, we need a usable way in sphinx-doc to present code samples in multiple languages in a clean manner. -- Ticket URL: MapGuide Open Source MapGuide Open Source Internals From trac_mapguide at osgeo.org Sun Nov 15 02:20:01 2026 From: trac_mapguide at osgeo.org (MapGuide Open Source) Date: Sun, 15 Nov 2026 10:20:01 -0000 Subject: [Mapguide-trac] [mapguide-trac] #2174: GDAL - MapImage with stripes In-Reply-To: <046.3e7516809de0afa6adab6e092494574d@osgeo.org> References: <046.3e7516809de0afa6adab6e092494574d@osgeo.org> Message-ID: <061.4251fd49ce5eb9598c2c5ff92f40fd7a@osgeo.org> #2174: GDAL - MapImage with stripes -------------------------------+---------------------- Reporter: zspitzer | Owner: (none) Type: defect | Status: closed Priority: high | Milestone: 4.0 Component: Rendering Service | Version: 2.4.0 Severity: major | Resolution: fixed Keywords: | External ID: -------------------------------+---------------------- Changes (by jng): * resolution: => fixed * status: new => closed Comment: Fixed r10232 -- Ticket URL: MapGuide Open Source MapGuide Open Source Internals