Details
-
Bug
-
Resolution: Won't Fix
-
Medium
-
None
-
5.2
Description
Hi,
We get an error when we do a recently updated search with given usernames(authorsParam). Our code look like this:
RecentUpdateQueryParameters queryParams = new RecentUpdateQueryParameters(
authorsParam, labelsParam, spacesParam,
getContentTypeFilter(types));
...
ISearch search = searchBuilder.buildRecentUpdateSearch(queryParams,
startIndex, maxResults);
...
The error we get is:
java.lang.ClassCastException: java.lang.String cannot be cast to com.atlassian.confluence.user.ConfluenceUser
Please see the attached file for the full stacktrace.
The authorParam is a Set of Strings (usernames). The API is trying to convert them to ConfluenceUsers.
Is this a bug?