TopLogic - the automated application engine
  • Releases
  • Dokumentation
  • Github
  • Discord
  1. Home
  2. Releases
  3. TL_8.0.0-alpha10
  4. #29774

8.0.0-alpha10
TopLogic Release

2026-10-09

enhancement

major
#29651
TL Views: Container <accordion> mit einklappbaren Abschnitten
#29652
TL Views: Hinweisbox <alert> im Inhalt einer View
#29654
TL Views: Auswahlfeld als Radio-Gruppe für beliebig viele Optionen
#29661
TL Views: Prototyp "TopLogic UI on MUI" – Adaptermodul mit Material UI für die ersetzbaren Komponenten
#29692
TL Views: Formularfelder, Tabellenzellen und das Bearbeiten eines Formulars richten sich nach den Modell-Zugriffsrechten
#29693
TL Views: Große und mehrwertige Werte erscheinen in Tabellenzellen als einzeilige Vorschau mit einem Knopf, der den vollständigen Editor in einem Dialog öffnet
#29707
Reduce PR CI build time: parallel reactor build, sharded scripted tests, affected-module builds
#29730
React-Oberfläche: Kanban-Board als View-Element (Karten per Drag & Drop zwischen Spalten verschieben)
#29735
User menu: the application cannot say what the account is called
#29741
anonymous-Benutzer soll per Default nicht in Personenauswahlfeldern auftauchen
#29744
TL Views: Entwicklerwerkzeuge (Designer, Aufzeichnen, Untersuchen, Agentenzugriff) in einem eigenen Entwicklungsmenü der App-Leiste
#29752
React-UI: Kleine Verbesserungen der Oberfläche (Snackbar, Hover, Tooltips, Schieberegler, Abstände)
#29758
ModelAccessRights: Anlegerecht in Kompositionsattribut für Spezialisierung des Zieltyps prüfen
#29759
React-UI: Commit-Nachrichten für Änderungen aus Sichten (TL-Script-Aktionen, Transaktionen, Löschen) konfigurierbar, sinnvolle Standard-Nachrichten
#29760
Improve the React UI of the model-based security configuration; let a TL-Script function determine the access parent of a type
#29765
Engine developer docs (FAQ) are not discoverable when developing an application based on the engine
minor
#29513
Drag&Drop: Commit-Nachricht für Drop-Operationen konfigurierbar, sinnvolle Standard-Nachricht
#29747
Make the LDAP configuration ldapConf.xml configurable by system properties / environment variables
#29754
OpenAPI-Server: Variablenname für Request-Parameter, deren Name kein gültiger TL-Script-Bezeichner ist (z.B. Header X-Gitea-Event)

defect

major
#29581
TopLogicServlet: Vertrag dokumentieren - eine Anfrage hat nur im Fenster einen Benutzer
#29642
React dialog size memory: one key for every dialog, stored size beats the declared width and is never clamped to the window
#29646
TL Views: Der Build der React-Client-Module prüft die TypeScript-Typen nicht, in com.top_logic.layout.react sind dadurch 29 Typfehler aufgelaufen
#29697
HistoryQuery: Start- und Stop-Revision aus HistoryQueryArguments werden bei der Suche ignoriert.
#29701
TL Views: a form shown again after its sidebar section or tab was hidden keeps the values it had when hidden; a reload renders the stale values again
#29711
Setzen einer geordneten Liste (ListStorage) ist beim Einfügen vor bestehenden Elementen überquadratisch langsam; TestListStorage misst Wanduhrzeit und scheitert unter Last
#29712
Problem beim Zurücksetzen einer Selektion im Baum
#29716
Modellbasierte Leseprüfung: Rollen-Lookup kompiliert pro Objekt und Gruppe neue KB-Abfragen, Nicht-Admin wartet 70 s statt 9 s
#29723
Model editor class diagram fails with "Comparison method violates its general contract!"
#29724
PathNavigation: abstract attribute rejected by isDerived() check even though concrete overrides exist and are tracked
#29728
FlowChartComponent: Ein Neubau des Diagramms entfernt Objekte aus der Selektion, die im Diagramm nicht dargestellt werden
#29731
TL Views: <persist-transient> copies the draft's empty values over the creation defaults; a sequence number or creation date computed at commit is lost
#29732
TL Views: <create-transient container="…"> creates the draft without the container's context; option lists and context-dependent defaults of the draft see no container
#29734
View form: <store-form-state/> does not persist new rows of a <composition-table>, so saving a persistent owner fails
#29737
TL Views: a collapsing toolbar measures its commands only when its groups change; a command that shows itself later keeps a 0 px toolbar and draws over the panel title
#29740
Fehlender Schutz für den anonymous-Benutzer
#29745
Zugriff auf ein abstraktes Attribut meldet einen Fehler, der nicht sagt, dass das Attribut abstrakt ist: eigene Storage für abstrakte Attribute
#29746
FileManagerOverlay/FileManagerDelegate cannot read resources inside web-fragment WARs (tl_config overlay fails on engine configuration files)
#29773
PostgreSQL: Große SQL-Migrationen werden durch nicht freigegebene Autosave-Savepoints quadratisch langsam
minor
#29029
Incrementally deactivated drop-down select box can still be operated
#29514
Befehlsfreigabe und Berechtigung von Drag&Drop
#29696
Scheduler: Start- und Cluster-Verhalten von Tasks bereinigen – <on-startup/> pro Knotenstart, Tasks erst ab RUNNING, run-on-startup entfernen, kein Default für isNodeLocal()
#29699
TL-Script: htmlText(htmlSource($text), images) drops the images of a stored structured text, since it does not accept the "ref:" references it writes itself
#29700
TL Views: the open session of a deleted account keeps evaluating as that account; every model event logs "DeletedObjectAccess … was already deleted" from its observers
#29722
FlowDiagram: Fehlerhafte Baum-Layout-Berechnung
#29727
TL-Script Auswertungen mit Filtern können zu "null"-Literalen führen.
#29733
TL Views: a click on the padding of the React rich-text editor's content area does not focus the editor; the typed text is lost
#29736
Click-region menu opens flush on the window edge and under the trigger's tooltip
#29738
TL Views: the menu cliques of a toolbar are labelled in English in every language ("More", "View", "Export")
#29739
React tooltip stays open at the window's top-left corner when its anchor is removed under the pointer
#29743
React UI: Tooltip eines Menüeintrags erscheint hinter dem Menü
#29753
OpenAPI-Client: NullPointerException bei Antwort ohne Body (z.B. 204) mit Status ungleich 200
#29774
OpenAPI server: API key authentication cannot resolve an account — Person.byName called without an InteractionContext

task

major
#29725
CheckDependencies: npm-Abhängigkeiten werden nicht aktualisiert, transitive Maven-Abhängigkeiten mit bekannten Sicherheitslücken
#29726
WYSIWYG-Editor: Umstellung auf Tiptap 3 (Sicherheitslücke GHSA-cp6q-959q-f8rh)
defect

minor

#29774

OpenAPI server: API key authentication cannot resolve an account — Person.byName called without an InteractionContext

OpenAPI

Component: tl-service-openapi-server · Version: 8.0.0-alpha9 · Type: defect · Severity: blocker for any API-key-authenticated endpoint that must run as an account

Summary

APIKeyAuthenticator.checkKey calls Person.byName(userId) without wrapping it in TLContext.inSystemContext. Person.byName reads through the KnowledgeBase cache, which requires an InteractionContext — and none exists yet while a request is being authenticated. Any API key whose user-id names a real account therefore fails with

java.lang.IllegalStateException: KnowledgeBase operations require a valid InteractionContext

Effect

API key authentication is unusable whenever the request has to run as an account:

  • user-id empty (technical user) → returns null, works, but establishes no account
  • user-id naming a real account → throws, every request fails

Only the branch that resolves no account functions. This matters for tl-ai 2.x, which refuses any agent run that cannot name an authenticated principal ("An agent run acts as an authenticated user, and this run has none"), so an API-key-authenticated REST endpoint can never invoke an agent.

The code

com.top_logic.service.openapi.server.authentication.apikey.APIKeyAuthenticator#checkKey:

Person result = Person.byName(userName);        // no context wrapper

com.top_logic.service.openapi.server.authentication.http.basic.BasicUserAuthenticator does it correctly:

return TLContext.inSystemContext(BasicUserAuthenticator.class, () -> {
    Person person = Person.byName(login.getUser());
    ...
});

Reproduce

  1. Configure an OpenAPI server with <api-key-authentication domain="d" parameter-name="X-Key" position="header"/> and <api-key-server-secret domain="d" api-key="..." user-id="someAccount"/>, where someAccount exists.
  2. Require that authentication on an operation.
  3. Call the operation with a correct key.

Result: 500 / authentication failure, with the stack below. Expected: the request runs as someAccount.

Stack

java.lang.IllegalStateException: KnowledgeBase operations require a valid InteractionContext.
    at com.top_logic.knowledge.service.db2.DBKnowledgeBase.currentInteraction(DBKnowledgeBase.java:3468)
    at com.top_logic.knowledge.service.db2.DBKnowledgeBase.lookupDBContext(DBKnowledgeBase.java:2818)
    at com.top_logic.knowledge.service.db2.DBKnowledgeBase.getCurrentDBContext(DBKnowledgeBase.java:3106)
    at com.top_logic.knowledge.service.db2.KBCache.adaptToTransaction(KBCache.java:100)
    at com.top_logic.knowledge.service.db2.AbstractKBCache.getValue(AbstractKBCache.java:110)
    at com.top_logic.knowledge.util.ItemByNameCache.lookup(ItemByNameCache.java:264)
    at com.top_logic.knowledge.wrap.person.Person.fromCache(Person.java:714)
    at com.top_logic.knowledge.wrap.person.Person.byName(Person.java:693)
    at com.top_logic.service.openapi.server.authentication.apikey.APIKeyAuthenticator.checkKey(APIKeyAuthenticator.java:99)
    at com.top_logic.service.openapi.server.authentication.apikey.APIKeyAuthenticator.authenticate(APIKeyAuthenticator.java:87)
    at com.top_logic.service.openapi.server.PathHandler.handleRequest(PathHandler.java:64)
    at com.top_logic.service.openapi.server.OpenApiServer.process(OpenApiServer.java:573)

Suggested fix

Wrap the lookup as BasicUserAuthenticator does:

return TLContext.inSystemContext(APIKeyAuthenticator.class, () -> {
    Person result = Person.byName(userName);
    if (result == null) {
        throw new AuthenticationFailure(I18NConstants.ERROR_REQUEST_USER_DOES_NOT_EXIST__NAME.fill(userName));
    }
    return result;
});

Worth checking ClientCredentialsAuthenticator and TokenBasedAuthenticator for the same omission.

Second, probably separate issue

The <secrets> element is order-sensitive within <instance>. Declared *before* <paths> the keys are not picked up at all and every request is answered "Invalid API key" however the key is supplied; moved *after* <paths> they are found. No configuration error is logged either way. If that ordering is required it should be validated or documented; if not, it is a second defect.

Workaround

Use <basic-authentication in-user-context="true"/>, which resolves the account correctly. Unsuitable for a browser client, since it means shipping an account password to the client.

Lösung

  • Die API-Key-Authentifizierung des OpenAPI-Servers ermittelt den Account eines API-Keys (user-id) jetzt im System-Kontext (TLContext.inSystemContext), wie die Basic-Authentifizierung. Ein Request mit einem API-Key, dessen user-id einen existierenden Account benennt, läuft damit als dieser Account; ein nicht existierender Account wird weiterhin mit "Benutzer existiert nicht" abgewiesen.
  • Die OAuth-Authentifizierungen (TokenBasedAuthenticator, ClientCredentialsAuthenticator) waren nicht betroffen, sie lösen den Account bereits in einer System-Interaktion auf.
  • Reihenfolge von <secrets> und <paths>: nicht reproduzierbar. Die Konfiguration liefert in beiden Reihenfolgen dieselben Secrets, und der daraus erzeugte Authenticator akzeptiert den Key in beiden Fällen (Regressionstest TestAPIKeySecretsOrder). Die Meldung "Invalid API key" entsteht nur, wenn Secrets für die Domain vorhanden sind, der gesendete Key aber keinem davon entspricht; fehlen Secrets ganz, ist die Operation mit einer anderen Meldung nicht authentifizierbar. Die Ursache im gemeldeten Fall liegt daher vermutlich in der konkreten Konfiguration (z.B. Overlay mehrerer Konfigurationsdateien oder abweichender Key-Wert).
  • Get Started
  • Github
  • Discord
  • Das Unternehmen hinter TopLogic
  • Softwareentwicklung heute
  • Kontakt

© Copyright – Business Operation Systems GmbH

  • top-logic.com
  • Nutzungsbedingungen
  • Impressum
  • Rechtlicher Hinweis
  • Datenschutz
  • DE
  • Login