{"action":"closed","issue":{"url":"https://api.github.com/repos/eXist-db/exist/issues/1301","repository_url":"https://api.github.com/repos/eXist-db/exist","labels_url":"https://api.github.com/repos/eXist-db/exist/issues/1301/labels{/name}","comments_url":"https://api.github.com/repos/eXist-db/exist/issues/1301/comments","events_url":"https://api.github.com/repos/eXist-db/exist/issues/1301/events","html_url":"https://github.com/eXist-db/exist/issues/1301","id":210785641,"node_id":"MDU6SXNzdWUyMTA3ODU2NDE=","number":1301,"title":"Non-standard behavior in sibling axes","user":{"login":"opax","id":2310795,"node_id":"MDQ6VXNlcjIzMTA3OTU=","avatar_url":"https://avatars0.githubusercontent.com/u/2310795?v=4","gravatar_id":"","url":"https://api.github.com/users/opax","html_url":"https://github.com/opax","followers_url":"https://api.github.com/users/opax/followers","following_url":"https://api.github.com/users/opax/following{/other_user}","gists_url":"https://api.github.com/users/opax/gists{/gist_id}","starred_url":"https://api.github.com/users/opax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opax/subscriptions","organizations_url":"https://api.github.com/users/opax/orgs","repos_url":"https://api.github.com/users/opax/repos","events_url":"https://api.github.com/users/opax/events{/privacy}","received_events_url":"https://api.github.com/users/opax/received_events","type":"User","site_admin":false},"labels":[{"id":49540768,"node_id":"MDU6TGFiZWw0OTU0MDc2OA==","url":"https://api.github.com/repos/eXist-db/exist/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"closed","locked":false,"assignee":{"login":"adamretter","id":1264057,"node_id":"MDQ6VXNlcjEyNjQwNTc=","avatar_url":"https://avatars1.githubusercontent.com/u/1264057?v=4","gravatar_id":"","url":"https://api.github.com/users/adamretter","html_url":"https://github.com/adamretter","followers_url":"https://api.github.com/users/adamretter/followers","following_url":"https://api.github.com/users/adamretter/following{/other_user}","gists_url":"https://api.github.com/users/adamretter/gists{/gist_id}","starred_url":"https://api.github.com/users/adamretter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamretter/subscriptions","organizations_url":"https://api.github.com/users/adamretter/orgs","repos_url":"https://api.github.com/users/adamretter/repos","events_url":"https://api.github.com/users/adamretter/events{/privacy}","received_events_url":"https://api.github.com/users/adamretter/received_events","type":"User","site_admin":false},"assignees":[{"login":"adamretter","id":1264057,"node_id":"MDQ6VXNlcjEyNjQwNTc=","avatar_url":"https://avatars1.githubusercontent.com/u/1264057?v=4","gravatar_id":"","url":"https://api.github.com/users/adamretter","html_url":"https://github.com/adamretter","followers_url":"https://api.github.com/users/adamretter/followers","following_url":"https://api.github.com/users/adamretter/following{/other_user}","gists_url":"https://api.github.com/users/adamretter/gists{/gist_id}","starred_url":"https://api.github.com/users/adamretter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamretter/subscriptions","organizations_url":"https://api.github.com/users/adamretter/orgs","repos_url":"https://api.github.com/users/adamretter/repos","events_url":"https://api.github.com/users/adamretter/events{/privacy}","received_events_url":"https://api.github.com/users/adamretter/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/eXist-db/exist/milestones/31","html_url":"https://github.com/eXist-db/exist/milestone/31","labels_url":"https://api.github.com/repos/eXist-db/exist/milestones/31/labels","id":3520276,"node_id":"MDk6TWlsZXN0b25lMzUyMDI3Ng==","number":31,"title":"eXist-4.3.2","description":"Next hotfix release milestone","creator":{"login":"adamretter","id":1264057,"node_id":"MDQ6VXNlcjEyNjQwNTc=","avatar_url":"https://avatars1.githubusercontent.com/u/1264057?v=4","gravatar_id":"","url":"https://api.github.com/users/adamretter","html_url":"https://github.com/adamretter","followers_url":"https://api.github.com/users/adamretter/followers","following_url":"https://api.github.com/users/adamretter/following{/other_user}","gists_url":"https://api.github.com/users/adamretter/gists{/gist_id}","starred_url":"https://api.github.com/users/adamretter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamretter/subscriptions","organizations_url":"https://api.github.com/users/adamretter/orgs","repos_url":"https://api.github.com/users/adamretter/repos","events_url":"https://api.github.com/users/adamretter/events{/privacy}","received_events_url":"https://api.github.com/users/adamretter/received_events","type":"User","site_admin":false},"open_issues":62,"closed_issues":11,"state":"open","created_at":"2018-07-24T16:23:09Z","updated_at":"2018-08-16T19:28:09Z","due_on":"2018-09-06T07:00:00Z","closed_at":null},"comments":1,"created_at":"2017-02-28T13:24:53Z","updated_at":"2018-08-16T19:28:09Z","closed_at":"2018-08-16T19:28:09Z","author_association":"CONTRIBUTOR","body":"### What is the problem\r\n\r\nThe axes `preceding-sibling` and `following-sibling` should be empty on an attribute nodes. Instead, an array index out of bounds exception is thrown:\r\n\r\n```xquery\r\nlet $d := <a b=\"c\"/>\r\nreturn empty($d/@b/preceding-sibling::*)\r\n```\r\n\r\n### What did you expect\r\n\r\n`true` should be returned (see https://www.w3.org/TR/xpath/#axes). Instead, the following exception is thrown:\r\n\r\n<pre>\r\njava.lang.ArrayIndexOutOfBoundsException: -1\r\n\tat org.exist.dom.memtree.DocumentImpl.getFirstChildFor(DocumentImpl.java:630) ~[exist.jar:?]\r\n\tat org.exist.dom.memtree.NodeImpl.selectPrecedingSiblings(NodeImpl.java:787) ~[exist.jar:?]\r\n\tat org.exist.xquery.value.ValueSequence.getPrecedingSiblings(ValueSequence.java:630) ~[exist.jar:?]\r\n\tat org.exist.xquery.LocationStep.getSiblings(LocationStep.java:875) ~[exist.jar:?]\r\n\tat org.exist.xquery.LocationStep.eval(LocationStep.java:450) ~[exist.jar:?]\r\n\tat org.exist.xquery.PathExpr.eval(PathExpr.java:269) ~[exist.jar:?]\r\n\tat org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:58) ~[exist.jar:?]\r\n\tat org.exist.xquery.LetExpr.eval(LetExpr.java:111) ~[exist.jar:?]\r\n\tat org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71) ~[exist.jar:?]\r\n\tat org.exist.xquery.PathExpr.eval(PathExpr.java:276) ~[exist.jar:?]\r\n\tat org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:71) ~[exist.jar:?]\r\n\tat org.exist.xquery.XQuery.execute(XQuery.java:253) ~[exist.jar:?]\r\n\tat org.exist.xquery.XQuery.execute(XQuery.java:185) ~[exist.jar:?]\r\n\tat org.exist.http.servlets.XQueryServlet.process(XQueryServlet.java:470) [exist-optional.jar:?]\r\n\tat org.exist.http.servlets.XQueryServlet.doPost(XQueryServlet.java:191) [exist-optional.jar:?]\r\n...\r\n</pre>\r\n\r\n### Describe how to reproduce or add a test\r\n\r\nExecute the query in eXide\r\n\r\n### Context information\r\n\r\n- eXist-db version 3.0 / develop-acd0c14\r\n- java version \"1.8.0_91\"\r\n- MacOs\r\n- 64 bit\r\n- No custom changes\r\n"}}
{"actor":{"display_login":"dizzzz"}}