[Developers] Validity of "link" queries

Kurt Bollacker kurt at spaceship.com
Tue Mar 10 23:20:50 UTC 2009


I'm having trouble constraining the "valid" property in "link"
queries.  Consider the query:

{
  "*" : null,
  "limit" : 1,
  "type" : "/type/link",
  "valid" : null
}

Which returns (in queryeditor):

{
  "attribution" : "/user/root",
  "creator" : "/user/root",
  "master_property" : "/type/namespace/keys",
  "operation" : "insert",
  "reverse" : false,
  "source" : null,
  "target" : null,
  "target_value" : "boot",
  "timestamp" : "2006-10-22T07:34:24.0004Z",
  "type" : "/type/link",
  "valid" : true
}

If I try to constrain the "valid" property as true or false:

{
  "*" : null,
  "limit" : 1,
  "type" : "/type/link",
  "valid" : false
}

I get:

{
  "code" : "/api/status/ok",
  "q1" : {
    "code" : "/api/status/error",
    "messages" : [
      {
        "code" : "/api/status/error/mql/graph",
        "info" : {
          "detail" : "duplicate assignment to \"live\" flag",
          "subclass" : "SEMANTICS"
        },
        "message" : "error SEMANTICS: duplicate assignment to \"live\" flag"
      }
    ]
  },
  "status" : "200 OK",
  "transaction_id" : "cache;cache01.p01.sjc1:8101;2009-03-10T22:59:15Z;0003"
}

I assume this is bug, or am I missing something?

								Kurt :-)





More information about the Developers mailing list