failing test for calling same with empty string#662
Conversation
|
looking at http://www.day.com/specs/jcr/2.0/6_Query.html i am not exactly sure what we do. is this the same node thing? then the selector for the target node is not optional. i think what needs to be improved:
semantically it makes no sense to filter for a node to be the same as nothing. |
|
from the spec: "The query is invalid if: So lets check if the empty string is a valid path? |
|
So lets check if the empty string is a valid path?
empty string is not a valid path.
|
|
so it seems like we should add some validation logic for this to ensure that we fail with a sensible exception message |
this simple tests fails when using jackrabbit - not sure what the expected behaviour is, let's have a look at the spec?