major
nice-to-have
defect
major
major
#23435
Create GUI for attributes of subject object types allows invalid attribute names
If you create a new attribute for a business object type via the system GUI under Administration > Basic Administration > Attributes, the interface allows you to enter an invalid ID (technical attribute name).
This is particularly problematic for entries that end with a period (e.g., ext-no.). In this case, the creation is completed, but all GUIs that attempt to display this attribute will show error messages because they are trying to resolve a ResKey that ends with a period.
Solution
When creating attributes (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 conform to this pattern, they must be corrected.
Test
- /com.top_logic.demo/src/test/com/top_logic/demo/scripted/model/attribute/TestPreventAttributeWithInvalidName.script.xml