{"action":"created","issue":{"url":"https://api.github.com/repos/orientechnologies/orientdb/issues/4984","labels_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/4984/labels{/name}","comments_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/4984/comments","events_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/4984/events","html_url":"https://github.com/orientechnologies/orientdb/issues/4984","id":107225016,"number":4984,"title":"Not_Null String property doesn't prevent insertion via studio command line or orientjs driver","user":{"login":"clint42","id":4037231,"avatar_url":"https://avatars.githubusercontent.com/u/4037231?v=3","gravatar_id":"","url":"https://api.github.com/users/clint42","html_url":"https://github.com/clint42","followers_url":"https://api.github.com/users/clint42/followers","following_url":"https://api.github.com/users/clint42/following{/other_user}","gists_url":"https://api.github.com/users/clint42/gists{/gist_id}","starred_url":"https://api.github.com/users/clint42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clint42/subscriptions","organizations_url":"https://api.github.com/users/clint42/orgs","repos_url":"https://api.github.com/users/clint42/repos","events_url":"https://api.github.com/users/clint42/events{/privacy}","received_events_url":"https://api.github.com/users/clint42/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/orientechnologies/orientdb/labels/bug","name":"bug","color":"ededed"}],"state":"closed","locked":false,"assignee":{"login":"lvca","id":312606,"avatar_url":"https://avatars.githubusercontent.com/u/312606?v=3","gravatar_id":"","url":"https://api.github.com/users/lvca","html_url":"https://github.com/lvca","followers_url":"https://api.github.com/users/lvca/followers","following_url":"https://api.github.com/users/lvca/following{/other_user}","gists_url":"https://api.github.com/users/lvca/gists{/gist_id}","starred_url":"https://api.github.com/users/lvca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lvca/subscriptions","organizations_url":"https://api.github.com/users/lvca/orgs","repos_url":"https://api.github.com/users/lvca/repos","events_url":"https://api.github.com/users/lvca/events{/privacy}","received_events_url":"https://api.github.com/users/lvca/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/orientechnologies/orientdb/milestones/64","html_url":"https://github.com/orientechnologies/orientdb/milestones/2.1.x%20(next%20hotfix)","labels_url":"https://api.github.com/repos/orientechnologies/orientdb/milestones/64/labels","id":1282180,"number":64,"title":"2.1.x (next hotfix)","description":"","creator":{"login":"lvca","id":312606,"avatar_url":"https://avatars.githubusercontent.com/u/312606?v=3","gravatar_id":"","url":"https://api.github.com/users/lvca","html_url":"https://github.com/lvca","followers_url":"https://api.github.com/users/lvca/followers","following_url":"https://api.github.com/users/lvca/following{/other_user}","gists_url":"https://api.github.com/users/lvca/gists{/gist_id}","starred_url":"https://api.github.com/users/lvca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lvca/subscriptions","organizations_url":"https://api.github.com/users/lvca/orgs","repos_url":"https://api.github.com/users/lvca/repos","events_url":"https://api.github.com/users/lvca/events{/privacy}","received_events_url":"https://api.github.com/users/lvca/received_events","type":"User","site_admin":false},"open_issues":53,"closed_issues":12,"state":"open","created_at":"2015-08-31T15:18:49Z","updated_at":"2015-09-18T16:17:02Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-09-18T15:33:32Z","updated_at":"2015-09-18T16:17:02Z","closed_at":"2015-09-18T16:17:02Z","body":"When a Class is created with Not_Null property, when you try to create a new record from orientdb studio (not via command line), if you not set the Not_Null property it doesn't work and the error message explain why.\r\nBut from the command line in studio or from orientjs driver, if I try the same thing (ie not setting a Not_Null property), the query is executed and the record is inserted, and the property that shouldn't be null is empty. I think it shouldn't, the query should return an error. Or this option in the schema is useless."},"comment":{"url":"https://api.github.com/repos/orientechnologies/orientdb/issues/comments/141496899","html_url":"https://github.com/orientechnologies/orientdb/issues/4984#issuecomment-141496899","issue_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/4984","id":141496899,"user":{"login":"clint42","id":4037231,"avatar_url":"https://avatars.githubusercontent.com/u/4037231?v=3","gravatar_id":"","url":"https://api.github.com/users/clint42","html_url":"https://github.com/clint42","followers_url":"https://api.github.com/users/clint42/followers","following_url":"https://api.github.com/users/clint42/following{/other_user}","gists_url":"https://api.github.com/users/clint42/gists{/gist_id}","starred_url":"https://api.github.com/users/clint42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clint42/subscriptions","organizations_url":"https://api.github.com/users/clint42/orgs","repos_url":"https://api.github.com/users/clint42/repos","events_url":"https://api.github.com/users/clint42/events{/privacy}","received_events_url":"https://api.github.com/users/clint42/received_events","type":"User","site_admin":false},"created_at":"2015-09-18T16:17:02Z","updated_at":"2015-09-18T16:17:02Z","body":"Just a misunderstanding of mandatory / not_null property. \r\nI'm really confused... Sorry."}}