orientechnologies / orientdb

OrientDB is the most versatile DBMS supporting Graph, Document, Reactive, Full-Text and Geospatial models in one Multi-Model product. OrientDB can run distributed (Multi-Master), supports SQL, ACID Transactions, Full-Text indexing and Reactive Queries.
https://orientdb.dev
Apache License 2.0
4.75k stars 871 forks source link

Adding property to a class with name containing invalid character #10343

Open Afler opened 1 month ago

Afler commented 1 month ago

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"

tglman commented 1 month ago

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.

Afler commented 4 weeks ago

@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?