Details
-
Bug
-
Status: Closed
-
Resolution: Fixed
-
7.4.3.58 CE GA58
Description
Reproduction steps:
1/ Create a new site with this name:
The very important site that deals with very complex stuff no one has a clue about but we don't want to think about no more in the upcoming weeks
2/ Try to enable local staging => Failure with a vague message "Error:Your request failed to complete."
3/ Rename the site to:
The very important site that deals with very complex stuff no one has a clue about but we don't want to think about no more
4/ Try to enable local staging => Success
Analysis:
The length of that name is 146 characters which is below the limit of the group key size (150 characters).
However, during staging activation, a new Group entry will be created and its group key will be the original live group key + something like "staging" behind.
So this error will only happen with some very specific site names.
The exception is thrown here: https://github.com/liferay/liferay-portal/blob/7.3.x/portal-impl/src/com/liferay/portal/service/impl/GroupLocalServiceImpl.java#L4907
There are two issues here:
1/ We don't provide an error message which makes it possible for the site administrator to understand what's wrong.
2/ We need a safeguard: maybe adjusting the size of the groupKey column in order to have some spare characters to append "staging" and add a rule to prevent administrators from creating sites with a name that would eat up those spare characters.