Repository navigation
ebx-layout-designer 1.23.3
Includes every change since 1.23.0.
1.23.3 (2026-10-24, robustness audit lots E, F and G)
Geocoding (lot E)
- "Locate now" no longer holds a server thread (audit L2-10):
/geocodeanswers at once, 200 from the cache, otherwise 202
{"pending":true}after queueing the address for ONE daemon thread that calls the service at its pace (one request a second);
the page asks again every 2 s (60 times at most). The queue is bounded (500): beyond it the answer is 429LDG-429with a
message telling to retry in a few minutes. No wait inside the HTTP request any more. Not done: a per-user quota and a
ticket tied to the addresses of the form (the ticket still lasts 4 hours); the bounded queue limits the damage. - The geocoding cache keeps no address text (L2-11): key = SHA-256 of the normalised address, file lines are
hash, latitude, longitude, date; the file is created readable by its owner only, entries older than 90 days
(-Debx.layout.geocoder.cacheDays=N) are dropped when it is read and when it is compacted (every 5,000 additions), and a file
of the old format (address in clear) is rewritten by hash at the first start.
Operations, languages, tests (lot G)
- Italian in the explorer and the layouts home (audit L2-21):
explorer.jsandhome.jsnow carry French, English and Italian (any other language reads English, as before); the validation messages of a FormLayout row are written in the locales the instance declares as well as EN/FR/IT. - The runtime's own words are a bundle:
RuntimeTextreadsRuntimeText.properties(English),RuntimeText_fr.properties,RuntimeText_it.propertiesfrom the runtime jar instead of a table in the code; a language with no file, or a key missing from one, reads English.RuntimeTextTestkeeps the three files on the same keys, checks every key the code asks for exists, and refuses a new visible literal (tag text, title/aria-label/placeholder/alt, accented literal) in the runtime sources. Not done:title="map"of the map's iframe is still inLayoutPane; an external folder where an administrator drops a fourth language is not offered. docs/OPERATIONS.md(L2-22): every-Dproperty of the module, the administrators' explorer options (explain,route=sql,parallel=0, load test), thekernel.loglines and their levels, the codes (LD-*,LDD-,LDX-,LDG-429, MCP codes), the files written (geocache,.bak, lock), threads and caches, the jar upgrade.INSTALL.mdpoints to it;LAYOUT-API.mdis reduced to a pointer toMCP.md;LAYOUT-FORMAT.mddocumentsusedBy.maxandworkflowTasks.pub.tools/test.shruns three more checks:RuntimeTextTest,GeoTicketTest(forged, altered, expired and malformed tickets refused, a good one accepted) andEscapingTest(escof the runtime blocks and of every page script,Sql.lit,Sql.like,XPath.lit,Model.quoteon a hostile set). The four checkstools/package.shruns at packaging are untouched.
Designer, storage and activation (lot F)
- The designer checks a layout before saving it (audit L2-13): the same size, nesting, shape, block id/type and reference checks as the MCP tool
layout_put. A layout with no tabs, a block withoutid, an unknown field or table is refused with a coded message (LD-INVALID,LD-INVALID-JSON,LD-TOO-LARGE,LD-TOO-DEEP,LD-EMPTY) listing the first errors; nothing is written and the draft stays on the page. Warnings still save. - Activation no longer rewrites the XSD blindly (L2-14): it runs under a lock (this module's monitor plus a lock file
<xsd>.layout-designer.locknext to the XSD; a second administrator is told to retry,LD-BUSY), keeps a time-stamped.bak-...-layout-designercopy, checks that the new text is well-formed XML before replacing anything (otherwise the file is left as it was andLD-MALFORMEDorLD-XSD-INVALIDsays so, the copy is kept) and writes a temporary file moved over the XSD in one step. The confirmation shows the absolute path of the file changed and warns when other folders of the server declare the same module. The lock file is not removed (zero bytes, harmless). - Layout lookup by key (L2-15):
LayoutStore.findRowasks for the row of a (model, table) with a predicate and keeps its key until the FormLayout table's modification date changes (a negative answer too), instead of scanning the table at each form display and each opening of an Actions menu ("Arrange my form" permission rule included). - Cache-busting follows the build (L2-19):
?v=on the designer, home, personalization and explorer pages is the version the build stamps (ModuleVersion.version(), fromVERSIONand git); a build with no stamp uses the server start time.tools/package.shrefuses a literalASSET_VERSIONin the source. - No exception text in the designer pages (L2-12, designer, layouts home, personalization): users see "unexpected error (code LDD-...)" in EN, FR and IT; the exception and its stack are in
kernel.logunder the same code.deniednow says what to do, with codeLD-DENIED.
1.23.2 (2026-10-24, robustness audit lots C and D)
Explorer (lot D)
- No more OR between a sub-query and another condition (audit L2-09): a search over a
lookupvalue, a flag or a tile that
combines a count, a "same value" or suspects with another field is written as ONEt."$pk" IN (SELECT ... UNION SELECT ...)
(each member one branch), never(IN (SELECT ...)) OR LIKE ..., which EBX evaluates record by record (17 minutes on one core,
not cancellable). The LIKE keeps no CAST on a text field and gets ESCAPE only when the text holds%,_or\. The
check refuses (error) ananythat mixes a Match and Merge state with such a sub-query: write two flags. The search leaves
such a metadataset source out when a lookup is searched too. - Favorites read by key (L2-16): one predicate on user, explorer, dataspace and dataset instead of a sweep of the whole table,
and a short cache retired by the table's modification date. - Explorer pool stopped at shutdown (L2-18):
handleRepositoryShutdownstops it; pages then run their statements one after
the other. The administrator load test is off unless the server runs with-Debx.layoutDesigner.loadTest=true. - No exception text in the explorer (L2-12, explorer and its designer): users see "unexpected error (code LDX-...)" in EN, FR
and IT; the exception and its stack are inkernel.logunder the same code.
Form rendering (lot C)
- Association cards apply field permissions (L2-03): a field the user may not read is no longer drawn in a
gridblock incardsstyle (same rule as every other block). - Associations are opened once per display (L2-05): rows and counts are read with the user's own session on the request (EBX leaves out what they may not see, no permission per row), shared by every block and tab, and a count stops at 1000 (
-Debx.layoutDesigner.countCap): tabs and panels show "1000+". Alazygrid counts with the same bound. - "Used by" is bounded (L2-06): at most
maxreferring rows are looked at (default 1000, per block, new keymax), "1000+" beyond. The referring records are the ones EBX already returns for the relation: no extra XPath scan (a non-key predicate scans the table). - Hierarchy chart index (L2-07): built by one thread at a time (others use the previous index or wait for the first), at most 500 000 links (
-Debx.layoutDesigner.orgChart.maxIndexLinks, a partial index is announced by the chart's "large group" note andkernel.log), eight indexes at most; entities the user may not see no longer count towards the 2000-node cap. - Workflow conditions (L2-08): the designer asks for the publication of a
runningcondition (it is the only way to ask the engine about one publication); without it a publication that does not declare the variable is remembered for a minute and not asked again, and the first failing value shape ends the loop. The Workflows in progress block also readspub. - One style sheet per form (L2-17): style and scripts are written by the first tab only (about 40 KB less per extra tab).
- Perspective colours (L2-20): the form takes the theme's main and focus colours (
--ldf-main,--ldf-focus), the ON EBX purple stays as fallback; donut and org chart use the main colour first. Not done: explorer.js and personalize.js (not in this lot). - Behaviour configuration tables (L2-24): cached until the configuration or family table changes (and renewed every ten minutes), shared by all users.
- No blank form on a rendering failure (L2-25): an exception while the form is built writes
LDF-RENDERinkernel.logand shows EBX's standard form; a tab that fails shows the "layout could not be read" text. A tab, row, block or field written as something other than an object is ignored. - For measuring (audit section 5): with the kernel logger at DEBUG,
kernel.loglists every block, tab and form that took more than 200 ms ("[layout-designer] block grid of tab 2 … 340 ms").
1.23.1 (2026-10-24)
- Workflow buttons are re-tested when launched (audit L2-01): the
LayoutActionservice now checks againcond,wfand
sessionof the button, as the form did when it drew it, besides the right to see the block and to launch the publication.
A button hidden on this record can no longer be launched by typing the service's address: message "no longer available for
this record", nothing launched. - Session conditions documented as display only (L2-02): they protect nothing; EBX's web component accepts a
trackingInfo
parameter (possible, not measured yet), so prefer a session attribute. Guide, format reference and the designer's hint say so. - No more 8-second wait after a launch (L2-23): the first task is looked for once after about a second; if it is not there
the user goes to the inbox with the message "Launched. The work will appear in your inbox." - No exception text shown (L2-12, this service only): a failed launch says "could not be launched, ask an administrator to
look at the server log"; the detail stays inkernel.log. - MCP endpoint bounded (L2-04): the administrator test now comes before the body is read; the body is capped at 2 MB (413)
and its nesting at 64 levels (400), also for a layout passed as a JSON string, a batch at 50 requests. Each refusal names its
setting:-Debx.layoutDesigner.mcp.maxBodyBytes,-Debx.layoutDesigner.mcp.maxDepth(read at each call).layout_putand
explorer_putrefuse a document larger than the body cap, besides the existing checks. - MCP tools show no exception text (L2-12, MCP part): a failing tool answers code
FAILEDand says to readkernel.log;
a JSON parse error no longer echoes the parser's message.
The help pages inside the war of this archive are the ones committed at the tag, a few edits behind its Markdown documents; the docs/ folder of the archive is current.