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

Node delete ends with 500 sometimes #37

Open
jwadolowski opened this issue Dec 30, 2016 · 0 comments
Open

Node delete ends with 500 sometimes #37

jwadolowski opened this issue Dec 30, 2016 · 0 comments

Comments

@jwadolowski
Copy link
Owner

Under certain circumstances JCR node delete attempt can end with 500 error and the following message in error log:

22.12.2016 14:30:40.617 *WARN* [127.0.0.1 [1482413440442] POST /content/xxx/yyy-com/en_gb/home/preview-form HTTP/1.1] org.apache.sling.jcr.resource.internal.helper.jcr.JcrResourceProvider Can't get parent for JcrNodeResource, type=cq:Page, superType=null, path=/content/xxx/yyy-com/en_gb/home/preview-form
javax.jcr.InvalidItemStateException: Item is stale /content/xxx/yyy-com/en_gb/home/preview-form

Most likely given path was processed by some other thread at the same time. Should cq_jcr take care of that automatically? If so, is it possible to determine whether JCR path is taken/locked by some other process? What's more - is it possible to lock given path for the sake of processing over Sling API?

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

No branches or pull requests

1 participant