CREATE EDGE Posted FROM #13:280 to (SELECT FROM User WHERE 
objectId="M3Rq8Uj2l7")
yields
java.lang.ArrayIndexOutOfBoundsException 


*Steps to reproduce*

Create the schema
CREATE CLASS PumpUpE ABSTRACT EXTENDS E
CREATE CLASS Posted EXTENDS PumpUpE
CREATE CLASS PumpUpV ABSTRACT EXTENDS V
CREATE PROPERTY PumpUpV.objectId STRING
CREATE CLASS User EXTENDS PumpUpV
CREATE CLASS Post EXTENDS PumpUpV
CREATE PROPERTY Post.user EMBEDDEDMAP
CREATE INDEX Post.user NOTUNIQUE


Insert into User with the following:
            "settings": {
                "__type": "Pointer",
                "className": "Settings",
                "objectId": "G2SAZFv1Ry"
            },
            "acceptedTerms": true,
            "activitiesCount": 18,
            "appFirstUseDate": {
                "iso": "2013-07-04T06:36:26.209Z",
                "__type": "Date"
            },
            "birthday": {
                "iso": "1947-03-27T00:00:00.000Z",
                "__type": "Date"
            },
            "email": "[email protected]",
            "emailVerified": false,
            "equipment": {
                "1": [
                    6
                ]
            },
            "facebookID": "100001200607810",
            "fb_email": "[email protected]",
            "feedFindFriendsHidden": true,
            "feedOption": 3,
            "first_name": "Kennedy",
            "followerCount": 0,
            "followingCount": 0,
            "gender": 2,
            "goal": 4,
            "height_unit": 1,
            "height_val1": 5,
            "height_val2": 6,
            "homeEquipment": [
                6
            ],
            "kitchenSinkBadgesSeen": [
                15
            ],
            "lastRatePrompt": {
                "iso": "2014-03-14T03:22:26.677Z",
                "__type": "Date"
            },
            "lastVersionUsed": "3.0.0",
            "last_name": "Huntley",
            "level": 2,
            "newFeedLastReadAt": {
                "iso": "2014-06-30T23:03:57.570Z",
                "__type": "Date"
            },
            "numReferrals": 0,
            "platform": 1,
            "popularFeedLastReadAt": {
                "iso": "2014-05-25T03:38:15.778Z",
                "__type": "Date"
            },
            "postCount": 16,
            "seenHamburgerInstructions": true,
            "seenInvitePrompt": true,
            "seenRatePrompt": true,
            "stream": "default",
            "timezone": "America/Denver",
            "unsubscribedFromWorkoutEmails": true,
            "username": "fdsafdsafdas",
            "weight": 140,
            "weight_unit": 1,
            "createdAt": "2013-07-04T06:36:38.604Z",
            "updatedAt": "2014-06-30T23:16:14.792Z",
            "objectId": "M3Rq8Uj2l7",
            "ACL": {
                "M3Rq8Uj2l7": {
                    "read": true,
                    "write": true
                },
                "*": {
                    "read": true
                }
            },
            "sessionToken": "sadfsafsafdsafsad",
            "authData": {
                "facebook": {
                    "access_token": "asdfsafsafsa",
                    "id": "100001200607810",
                    "expiration_date": "4001-01-01T00:00:00.000Z"
                }
            }

Insert into Post with the following
            "user": {
                "__type": "Pointer",
                "className": "_User",
                "objectId": "M3Rq8Uj2l7"
            },
            "workout": {
                "__type": "Pointer",
                "className": "Workout",
                "objectId": "YHHJ5dcK6B"
            },
            "actionId": 200,
            "commentCount": 0,
            "details": "Elite Core Trainer",
            "hashtagsProcessed": true,
            "likeCount": 0,
            "relatedId": "YHHJ5dcK6B",
            "relatedIdMigrated": true,
            "createdAt": "2013-07-04T06:37:17.381Z",
            "updatedAt": "2014-02-28T18:26:19.206Z",
            "objectId": "ROdwrGR4gA",
            "ACL": {
                "M3Rq8Uj2l7": {
                    "write": true
                },
                "*": {
                    "read": true
                }
            }

And run the following
CREATE EDGE Posted FROM #13:280 to (SELECT FROM User WHERE 
objectId="M3Rq8Uj2l7")


-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to