Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default property doesn't work with roles orientdb-community-2.1-SNAPSHOT #3910

Closed
Bretto opened this issue Apr 10, 2015 · 1 comment
Closed
Assignees
Milestone

Comments

@Bretto
Copy link

Bretto commented Apr 10, 2015

Setup

CREATE CLASS User extends OUser
CREATE PROPERTY User.created datetime    
ALTER PROPERTY User.created default sysdate() readonly
ALTER PROPERTY User.roles default [#4:2] readonly

POST Request

http://localhost:2480/document/test

content
{
@class: "User"
name: "Brett"
password: "root"
status: "ACTIVE"
}

Error
com.orientechnologies.orient.core.exception.OValidationException: The field 'OUser.roles' has been declared as LINKSET but an incompatible type is used. Value: [#4:2].field( readonly)

the 'created' property works as expected

@tglman tglman self-assigned this Apr 10, 2015
@lvca lvca added this to the 2.1-rc2 milestone Apr 14, 2015
@tglman
Copy link
Member

tglman commented Apr 20, 2015

fixed with the refactor of validation closing

@tglman tglman closed this as completed Apr 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants