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

ISDESCENDANTNODE does not work with path containing a dot #305

Open
danrot opened this issue Oct 20, 2015 · 9 comments
Open

ISDESCENDANTNODE does not work with path containing a dot #305

danrot opened this issue Oct 20, 2015 · 9 comments

Comments

@danrot
Copy link
Contributor

danrot commented Oct 20, 2015

Somebody has encountered an issue in combination with Sulu: sulu/sulu-standard#536 (comment)

I could track down the problem to the fact that this ISDESCENDANTNODE function does not work correctly, when the path contains a dot. So the following query returns nothing, although the node at the given path has child nodes:

SELECT * FROM [nt:unstructured] AS page WHERE ISDESCENDANTNODE(page, '/cmf/htl.do/contents');

I guess this should be working, since the dot doesn't have any special meaning (at least none that I am aware of), and this query works like a charm when used with jackrabbit.

@dbu
Copy link
Member

dbu commented Oct 29, 2015 via email

@danrot
Copy link
Contributor Author

danrot commented Nov 2, 2015

Not sure what the best way to do this is... Tried to find it in the logs, the only thing that made sense was this one:

[2015-11-02 23:06:12] doctrine.DEBUG:                SELECT * FROM phpcr_nodes               WHERE path = :path                 AND workspace_name = :workspace               ORDER BY depth, sort_order ASC {":path":"/cmf/sulu.io",":pathd":"/cmf/sulu.io/%",":workspace":"default"} []

@dbu
Copy link
Member

dbu commented Nov 3, 2015 via email

@dbu
Copy link
Member

dbu commented Nov 10, 2015

btw, could this be related to phpcr/phpcr-utils#104 ?

i never wrapped this up. there was some weird regression that i did not figure out. maybe check if that is the reason for this problem and if so, look into it.

@danrot
Copy link
Contributor Author

danrot commented Nov 18, 2016

Seems like I have messed something up back then... I just realized that this is an error in Sulu. Should be fixed with sulu/sulu#3039, so this issue can be closed.

@danrot danrot closed this as completed Nov 18, 2016
@danrot
Copy link
Contributor Author

danrot commented Nov 18, 2016

I am afraid I was too fast, mixed that up with another issue we've had 🙈
Sorry, was a tough week.

@dbu
Copy link
Member

dbu commented Apr 7, 2017

is this because of phpcr/phpcr-utils#104 or something else?

@danrot
Copy link
Contributor Author

danrot commented Apr 10, 2017

I don't know... Tried to test it, but when I check out the other branch and execute the query I get the following error:

  [Symfony\Component\Debug\Exception\FatalThrowableError]
  [] operator not supported for strings

Maybe because I am already using a newer version?

@dbu
Copy link
Member

dbu commented Apr 17, 2017

odd. would you see where this exception is thrown? the utils branch is very old and probably won't work with current jackalope. i never got around to dig through the confusion there. if you have time to rebase the branch and figure out what is going wrong it would be great.

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

No branches or pull requests

2 participants