{"issue":{"state":"open","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"milestone":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/bd38a9050cb3bca0c4f9d03b75d98598?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"bd38a9050cb3bca0c4f9d03b75d98598","url":"https://api.github.com/users/LeoWoerteler","login":"LeoWoerteler","id":545684},"assignee":null,"updated_at":"2011-11-16T14:01:34Z","labels":[{"name":"bug","color":"CC3333","url":"https://api.github.com/repos/BaseXdb/basex/labels/bug"},{"name":"XQuery","color":"008800","url":"https://api.github.com/repos/BaseXdb/basex/labels/XQuery"}],"closed_at":null,"comments":1,"url":"https://api.github.com/repos/BaseXdb/basex/issues/266","body":"If an exception is thrown during query execution, some language constructs that change the context don't reset it. This leads to context items escaping their scope.\r\n\r\nQuery:\r\n--------\r\n\r\n```xquery\r\ntry {\r\n  <x>{42[error()]}</x>\r\n} catch * {\r\n  .\r\n}\r\n```\r\n\r\nResult:\r\n----------\r\n```xquery\r\n42\r\n```","html_url":"https://github.com/BaseXdb/basex/issues/266","title":"Try/Catch Circumvents Reset of Context","number":266,"id":2223835,"created_at":"2011-11-13T23:23:13Z"},"action":"reopened"}