Details
-
Improvement
-
Resolution: Fixed
-
Minor
-
2.3.2
-
None
-
Unknown
-
Description
Reproduction
- Create a new workflow and set
- Contributors group
- Moderators group
- Publishers group
- leave Viewers group empty
- leave Commenters group empty
- leave "Skip draft rights update on workflow transition" to No
- Create a new page. Set it to be a terminal page. Save it.
- Start the workflow on this page (you'll have to display the Workflow Panel first, to be able to click the "Start workflow" button)
- Open the page's objects and see:
- one XWikiRights object for the groups set for Contributors, Moderators, Publishers
- one XWikiRights object with no group set, for granting view rights (corresponding to the Viewers group)
- one XWikiRights object with no group set, for granting comment rights (corresponding to the Commenters group)
Note: if not a terminal page, rights will be handled by the WebPreferences page, thus not having the issue
Expectations
There should be no empty XWikiRights objects set
The code which sets the rules without checking if a group is set in the workflow is DefaultPublicationWorkflow.java