-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Major
-
Component/s: ownership-plugin
-
None
The code for list creation is broken. Instead of the user list "user1,user2,user3" we get ",user1user2user3"
Code:
@Deprecated
public static @Nonnull String getCoOwnerIDs(@Nonnull OwnershipDescription descr) {
StringBuilder coowners= new StringBuilder();
for (String userId : getSecondaryOwnerIds(descr, true)) {
//TODO: Bug? Should it be != ?
if (coowners.length() == 0) {
coowners.append(",");
}
coowners.append(userId);
}
return coowners.toString();
}