Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-29833

ISearch can't handle author parameters - Problems with the new ConfluenceUser Class?

    XMLWordPrintable

Details

    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?

      Attachments

        Activity

          People

            pcurren Paul Curren
            899018603b05 Emil Sjödin [Refined]
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: