You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After removing the AliasPart from a content type, the indexed content items are still queried by the alias handle
Orchard Core version
1.8.3
To Reproduce
Steps to reproduce the behavior:
Create a Content Type with an Alias Part.
Create a Content Item of this type and give it an alias.
Create a Controller method that gets an alias as a parameter and a view that calls the GetContentItemByAliasAsync (which queries the AliasPartIndex) for the passed alias.
Navigate to this page and pass the alias of the Content Item created on step 2. The Content Item will be displayed on the page.
Remove the Alias Part from the Content Type.
Navigate again to the page of step 4. The Content Items still gets displayed.
Expected behavior
After removing the Alias Part from the Content Type, the page should not display the Content Item, since the Content Type doesn't contain an Alias Part anymore.
The text was updated successfully, but these errors were encountered:
Thank you for submitting your first issue, awesome! 🚀 We're thrilled to receive your input. If you haven't completed the template yet, please take a moment to do so. This ensures that we fully understand your feature request or bug report. On what happens next, see the docs.
While this bug is about Alias Part, the same would happen with any part. In general, if you remove a content part from a content type, its data for previously created items are not deleted. So, both data in the content items' documents and corresponding rows in index tables remain.
When publishing these items the next time, the data should be removed, however (or shouldn't be retained for the new version).
So, if you want to fix this issue right now, a workaround is to (programmatically) republish all affected content items. The longer-term solution is #8316. I don't think anything is needed for Alias Part, specifically, and this issue can be closed. But thank you for taking the time to detail your inquiry!
We triaged this issue and set the milestone according to the priority we think is appropriate (see the docs on how we triage and prioritize issues).
This indicates when the core team may start working on it. However, if you'd like to contribute, we'd warmly welcome you to do that anytime. See our guide on contributions here.
Describe the bug
After removing the AliasPart from a content type, the indexed content items are still queried by the alias handle
Orchard Core version
1.8.3
To Reproduce
Steps to reproduce the behavior:
Expected behavior
After removing the Alias Part from the Content Type, the page should not display the Content Item, since the Content Type doesn't contain an Alias Part anymore.
The text was updated successfully, but these errors were encountered: