orientdb icon indicating copy to clipboard operation
orientdb copied to clipboard

Adding property to a class with name containing invalid character

Open Afler opened this issue 1 year ago • 2 comments

OrientDB Version: 3.2.34

Java Version: 17.0.8

OS: Windows 10

Expected behavior

I am trying to add LINKLIST property to a class with property name containing ":" character by Oclass#createProperty(String iPropertyName, OType iType) method

Actual behavior

Got the following exception: image And property shown like it's added to a class: image

Steps to reproduce

SQL command example from StackTrace "create property `security:User`.`security:testLink` LinkList"

Afler avatar Oct 22 '24 12:10 Afler

Hi,

Thank you do report this, I think for now we cannot allow the character : in the properties names, but that means it should not either create the property, I will double check that the validation are coherent.

Maybe in future we may allow that.

tglman avatar Oct 22 '24 17:10 tglman

@tglman Hi, thanks for the response. I hope that it is/would be allowed to use some symbols except letters for property/class names. Is there any information about restricted characters for names?

Afler avatar Oct 25 '24 08:10 Afler