You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using version 2.1.2. Due to a variety of security related concerns, our schema is defined in the strict mode = true. There's a specific case where I cannot delete edges. Here's how to repro:
create class V1 extends V
create class V2 extends V
alter class V1 strictmode true
alter class V2 strictmode true
create class V1ToV2 extends E
alter class V1ToV2 strictmode true
create property V1ToV2.out LINK V1
create property V1ToV2.in LINK V2
create property V1.out_V1ToV2 LINKLIST V1ToV2
create property V2.in_V1ToV2 LINKLIST V1ToV2
create vertex V1
create vertex V2
create edge V1ToV2 from (select from V1) to (select from V2)
create vertex V1
create edge V1ToV2 from #42:1 to (select from V2)
delete edge V1ToV2 from #42:1 to (select from V2)
Error: com.orientechnologies.orient.core.exception.OValidationException: The field 'V2.in_V1ToV2' has been declared as LINKLIST but an incompatible type is used. Value: [V1ToV2#44:0{out:#42:0,in:#43:0} v1]
I believe this repros if two vertices have an outgoing edge to a third vertex, and if you try to delete one of those edges.
I have been struggling with this for a bit, and see a related issue #3534, which was closed as invalid. But it's clearly the case for me. Any help in fixing this is greatly appreciated!
The text was updated successfully, but these errors were encountered:
Found the problem: on edge removal the setting graph.isAutoScaleEdgeType() is not considered, and a collection is transformed on single value. Fixed in 2.1.3.
I am using version 2.1.2. Due to a variety of security related concerns, our schema is defined in the strict mode = true. There's a specific case where I cannot delete edges. Here's how to repro:
create class V1 extends V
create class V2 extends V
alter class V1 strictmode true
alter class V2 strictmode true
create class V1ToV2 extends E
alter class V1ToV2 strictmode true
create property V1ToV2.out LINK V1
create property V1ToV2.in LINK V2
create property V1.out_V1ToV2 LINKLIST V1ToV2
create property V2.in_V1ToV2 LINKLIST V1ToV2
create vertex V1
create vertex V2
create edge V1ToV2 from (select from V1) to (select from V2)
create vertex V1
create edge V1ToV2 from #42:1 to (select from V2)
delete edge V1ToV2 from #42:1 to (select from V2)
Error: com.orientechnologies.orient.core.exception.OValidationException: The field 'V2.in_V1ToV2' has been declared as LINKLIST but an incompatible type is used. Value: [V1ToV2#44:0{out:#42:0,in:#43:0} v1]
I believe this repros if two vertices have an outgoing edge to a third vertex, and if you try to delete one of those edges.
I have been struggling with this for a bit, and see a related issue #3534, which was closed as invalid. But it's clearly the case for me. Any help in fixing this is greatly appreciated!
The text was updated successfully, but these errors were encountered: