Major
Nice to have
Bugfix
Major
Major
#23435
Create GUI for attributes of subject object types allows invalid attribute names
If you create a new attribute for a subject object type via the system GUI Administration > Basic Administration > Attributes, the interface allows you to enter an invalid ID (technical attribute name).
This is especially fatal for entries ending with a dot (e.g. ext-no.). In this case, the attachment is performed, but all GUIs that try to display this attribute display error messages because they try to resolve a ResKey that ends with a dot.
Solution
When attributes are created (both via the GUI and directly in the backend), the attribute ID (i.e. the technical name) should be checked for formal correctness.
Data migration
Attributes must conform to the pattern [a-zA-Z_][a-zA-Z_0-9]*. If attributes were created in the past that do not correspond to this pattern, they must be cleaned up.
Test
- /com.top_logic.demo/src/test/com/top_logic/demo/scripted/model/attribute/TestPreventAttributeWithInvalidName.script.xml