-
Notifications
You must be signed in to change notification settings - Fork 577
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
Bug with relations for siblings in online project not updated (2) #806
Comments
I don't know specifically about OpenCms 14, but this is the intended behavior. The problem was that originally /en/investors/index.html showed up as published after modifying and publishing the German sibling. But it was not actually published. It had in fact unpublished changes: The relations from /en/investors/index.html to the new content elements. The change makes this fact visible. You have to publish the English sibling. |
Hmm, no. That's the issue (as mentioned in #802 as well). After the fix, if "Include siblings" is not checked, OpenCms now does
|
No. It is not already published automatically. That's the whole problem (and why the relations are missing in the Online project). The resource state you can see in the explorer (or get from a CmsResource object) is actually a mixture of two states: The structure state ( Previously, when writing an XML content, only the If you now published one of the siblings and not the others, it would transfer its data from the Offline project to the Online project, and set the RESOURCE_STATE back to unchanged. This would cause the other siblings to show up as black in the Explorer, despite the fact that they had never gone through the publish process, and thus their relations had never been published. The fix makes it so the |
I did a cherry pick and patched the classes from commit 76c7006 accordingly in OpenCms 14, but looks like the problem still exists.
And depending how editors use the publish dialog might be even more confusing now.
Steps to reproduce:
I add a content to /de/investoren/index.html
And then publish this page with its content resource:
The sibling /en/investors/index.html still be published anyway and is not in publish list (even if "Publish silbings" is unchecked - see my comment here #802 (comment))
And it /en/investors/index.html does not exist in relations:
The fix for #805 now sets state of /en/investors/index.html to "changed", but it already was published before - see version 13 in history here:
So /en/investors/index.html was published (version 13), but now still has state "changed" (Offline version).
Editors might get confused as there are no changes to be published:
I'd guess the fixes are not applied for demo server yet to check the behaviour there?
Or is there something else that changed regarding siblings from OpenCms 14 to 17?
So the applied patches won't work for version 14?
BR, Tobias
The text was updated successfully, but these errors were encountered: