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

An empty update path is not valid #4

Open
peacekeeper opened this issue Jun 3, 2015 · 1 comment
Open

An empty update path is not valid #4

peacekeeper opened this issue Jun 3, 2015 · 1 comment
Labels

Comments

@peacekeeper
Copy link
Member

After upgrade of MongoDB from 2.4 to 2.6, empty "" indices seem to be no longer allowed in a collection, e.g.:

db.inventory.update(   { _id: ObjectId("556eb937d2c2ca09af5298e6") },   { $addToSet: { "": "accessories" } })
WriteResult({
    "nMatched" : 0,
    "nUpserted" : 0,
    "nModified" : 0,
    "writeError" : {
        "code" : 56,
        "errmsg" : "An empty update path is not valid."
    }
})

This is a problem, because the XDI address of a context node is used in the JSON objects stored in the MongoDB, and the XDI address of the common root node is the empty string.

Solution: Downgrade MongoDB to 2.4.x

Also see
https://github.com/projectdanube/xdi2-mongodb/wiki/Graph%20Factory%20Flags

@peacekeeper peacekeeper added the bug label Jun 3, 2015
@peacekeeper
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant