Hi there!
I've come across an issue that (to me at least) is pretty bizarre, and I was wondering if anyone here had some input?
First off, for context, this is a large site, that has existed for quite a while, and has been migrated from Plone 4 to 5 (and to Castle). However, the item in question has only existed since the site was moved to Castle.
I have a document, lets call it "doc".
Doc lives at /path/to/doc
If you navigate to /path/to/doc, it shows up, as expected.
If you enter a debug console, and do something like "Plone['path']['to']['doc']", you get the document back, as expected.
However, if you run "Plone['path']['to'].contentItems()", doc isn't listed. (or .items() or .objectIds() )
If you navigate the browser to /path/to/folder_contents, doc does not show up in the content listing.
If you attempt to go to /path/to/doc/manage, OR /path/to/manage, you get a "Index out of range" error.
If you browse the indexes in portal_catalog, you can find doc, listed as /path/to/doc
Doing a simple catalog query, like catalog(path={'query': '/path/to/'}) returns doc, along with the other folder contents.
Since this issue seems potentially catalog related, I did a site-wide catalog rebuild, and everything shows up exactly the same.
Theories? Options to try next?
Thanks in advance!