TopLogic - the automated application engine
  • Releases
  • Dokumentation
  • Github
  • Discord
  1. Home
  2. Releases
  3. TL_7.5.0-M8
  4. #27204

7.5.0-M8
TopLogic Release

2023-03-20

Enhancement

Critical
#25645
OpenAPI server
#26207
REST calls via TL script to external APIs according to OpenAPI specification
Major
#27196
DeepL: Use glossaries for translations
#27214
TL-Script unversioned object comparison
#27215
Historical to-n references
#27234
Include ChartJS and OpenAPI in BPE Standard Configuration
Detail
#26835
Perform instanceof checks unversioned
#26935
Make Close dialog configurable by Create
#27225
Bulk Dependency Update
#27236
Model definition for revision
#27251
TLModelUtil: Replace declared ConfigurationException with TopLogicException

Bugfix

Critical
#27205
TL-Sync transmitter stops on association update
Major
#27139
Button menu in button bar does not open
#27207
Search suggestions of SelectFields and popups of the breadcrumb are placed incorrectly
#27228
Missing display of Flex data for historical objects
#27241
OpenAPI: Error although query successful
Detail
#26797
Transaction with user input: invisible properties of the form model cannot be assigned values (initialized)
#26921
ClassCastException when evaluating security rules that refer to (non-structuredElement) singletons of a module.
#27096
Tree does not scroll the selected node into the viewport on (external) selection
#27167
Normalizing JSPs leads to wrong indentation for if-else blocks
#27203
Application tests with chart.js report on home page fail
#27204
PersistentEnumeration.tValue(...) leads to ClassCastException
#27218
Grid tables: Calculated column: Single-Value SelectField requires list value.
#27227
User time zone and thus SubSession time zone can be zero
#27231
Incremental modification of a set-valued attribute not possible.
#27239
Typo in database configurations at "password template
#27240
OpenAPI: Missing content type for JSON request content
#27249
TLScript suggestions are always displayed in the same language
#27250
Missing Maven profile "ide" in Eclipse
Bugfix

Detail

#27204

PersistentEnumeration.tValue(...) leads to ClassCastException

Data migrationMetaModelTLModel

The following call leads to an error in the demo: {{#!java TLModelUtil.resolveQualifiedName("tl5.enum:tl.beacon.three")

.tValueByName("annotations")

}}}

The cause is probably PersistentEnumeration.tValue(TLStructuredTypePart). There PersistentObjectImpl.getValue(this, part) is called. This ultimately leads to PrimitiveStorage.getAttributeValue(TLObject, TLStructuredTypePart). There, for the case attribute.isMultiple(), the storageValue is cast to String unchecked, but is a Config interface(PersistentModelPart$AnnotationConfigs).

Possibly the problem affects other classes and methods of the persistent model.

Noticed in the inspector: In the administration inspect the table of TLEnumerations. There tableData -> tableModel -> inner -> expand rows. Expanding rows fails and this error message appears in the log.

Stacktrace

java.lang.ClassCastException: class com.sun.proxy.$Proxy1285 cannot be cast to class java.lang.String (com.sun.proxy.$Proxy1285 is in unnamed module of loader org.eclipse.jetty.webapp.WebAppClassLoader @39c11e6c; java.lang.String is in module java.base of loader 'bootstrap') at com.top_logic.element.meta.kbbased.storage.PrimitiveStorage.getAttributeValue(PrimitiveStorage.java:132) at com.top_logic.element.meta.AttributeOperations.getAttributeValue(AttributeOperations.java:223) at com.top_logic.element.meta.kbbased.PersistentObjectImpl.getValue(PersistentObjectImpl.java:152) at com.top_logic.element.meta.kbbased.PersistentEnumeration.tValue(PersistentEnumeration.java:57) at com.top_logic.element.meta.kbbased.storage.PrimitiveStorage.getAttributeValue(PrimitiveStorage.java:132) at com.top_logic.element.meta.AttributeOperations.getAttributeValue(AttributeOperations.java:223) at com.top_logic.element.meta.kbbased.PersistentObjectImpl.getValue(PersistentObjectImpl.java:152) at com.top_logic.element.meta.kbbased.PersistentEnumeration.tValue(PersistentEnumeration.java:57) at com.top_logic.layout.inspector.model.nodes.InspectorTLObjectNode.makeChildren(InspectorTLObjectNode.java:57) at com.top_logic.layout.inspector.model.InspectorTreeBuilder.createChildList(InspectorTreeBuilder.java:46) [...]

Data Migration

Automatic data migration: Ticket_27204_Update_annotations_storage.migration.xml

Test

test.com.top_logic.element.meta.TestTLMetaModel

  • 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