mkalus / segrada

Segrada - Semantic Graph Database
http://www.segrada.org/
Other
68 stars 14 forks source link

Support for non latin characters #55

Closed dubmassacre closed 3 years ago

dubmassacre commented 5 years ago

It would be nice if segrada could support data entry in non-latin characters for entities.

Whenever user types a non-latin character string, save fails and receives a message:

ERROR org.segrada.service.repository.orientdb.base.AbstractOrientDbRepository  - Exception thrown while saving entity.
com.google.common.util.concurrent.UncheckedExecutionException: java.lang.StringIndexOutOfBoundsException: String index out of range: 0

System configuration: MacOS 10.14.6 Segrada 0.2.8

mkalus commented 3 years ago

@dubmassacre : I cannot reproduce this behaviour any more in the current version? Do you still have this problem?

dubmassacre commented 3 years ago

Tested 0.5.4 version on macos Catalina 10.15.7. Trying to create a new node with greek characters i get a 'SAVE FAILED' message and the following in terminal window.

92140 [qtp572746191-23] DEBUG org.segrada.servlet.SegradaMessageBodyReader  - Loaded new entity for creation: {Node}*, 
92140 [qtp572746191-23] DEBUG org.segrada.servlet.SegradaMessageBodyReader  - Updated data of entity: {Node}*, Ελληνικά
92144 [qtp572746191-23] INFO  org.hibernate.validator.internal.xml.ValidationXmlParser  - HV000007: META-INF/validation.xml found. Parsing XML based configuration.
92188 [qtp572746191-23] ERROR org.segrada.service.repository.orientdb.base.AbstractOrientDbRepository  - Exception thrown while saving entity.
com.google.common.util.concurrent.UncheckedExecutionException: java.lang.StringIndexOutOfBoundsException: String index out of range: 0
mkalus commented 3 years ago

Thanks for the hint. There was a bug in the old sluggify solution. I added a solution which will fix this issue. The update is scheduled for the next release (v0.5.5).

dubmassacre commented 3 years ago

Tested v0.5.5. No any issues.