Karl,

The jira documentation states:  Username - the username filter, no users returned if left blank
So, I have run a couple of tests against my JIRA server, and it looks like single quotes are required in the request, e.g. username=’’ (username=%27%27)

Here are the results of my tests...
Request 1 (Returns nothing)
http://jira/rest/api/latest/user/viewissue/search?username=&issueKey=REQ-9999&maxResults=1000&startAt=0
Response 1
[]

Request 2 (Returns only the username matching the request)
http://jira/rest/api/latest/user/viewissue/search?username=FredFlintstone&issueKey=REQ-9999&maxResults=1000&startAt=0
Response 2
[{"self":"http://jira.apac.linkgroup.corp/rest/api/2/user?username=FredFlintstone","key":"FredFlintstone","name":"FredFlintstone","emailAddress":"[EMAIL PROTECTED]","avatarUrls":{"48x48":"http://jira.apac.linkgroup.corp/secure/useravatar?ownerId=FredFlintstone&avatarId=14201","24x24":"http://jira.apac.linkgroup.corp/secure/useravatar?size=small&ownerId=FredFlintstone&avatarId=14201","16x16":"http://jira.apac.linkgroup.corp/secure/useravatar?size=xsmall&ownerId=FredFlintstone&avatarId=14201","32x32":"http://jira.apac.linkgroup.corp/secure/useravatar?size=medium&ownerId=FredFlintstone&avatarId=14201"},"displayName":"Fred Flintstone","active":true,"timeZone":"Australia/Sydney","locale":"en_AU"}]

Request 3 (Returns all usernames)
http://jira/rest/api/latest/user/viewissue/search?username=%27%27&issueKey=REQ-1174&maxResults=1000&startAt=0
Response 3
[{"self":"http://jira.apac.linkgroup.corp/rest/api/2/user?username=FredFlintstone","key":"FredFlintstone","name":"FredFlintstone","emailAddress":"[EMAIL PROTECTED]","avatarUrls":{"48x48":"http://jira.apac.linkgroup.corp/secure/useravatar?ownerId=FredFlintstone&avatarId=14201","24x24":"http://jira.apac.linkgroup.corp/secure/useravatar?size=small&ownerId=FredFlintstone&avatarId=14201","16x16":"http://jira.apac.linkgroup.corp/secure/useravatar?size=xsmall&ownerId=FredFlintstone&avatarId=14201","32x32":"http://jira.apac.linkgroup.corp/secure/useravatar?size=medium&ownerId=FredFlintstone&avatarId=14201"},"displayName":"Fred Flintstone","active":true,"timeZone":"Australia/Sydney","locale":"en_AU"},{"self":"http://jira.apac.linkgroup.corp/rest/api/2/user?username=WillmaFlintstone","key":"WillmaFlintstone","name":"WillmaFlintstone","emailAddress":"[EMAIL PROTECTED]","avatarUrls":{"48x48":"http://jira.apac.linkgroup.corp/secure/useravatar?ownerId=WillmaFlintstone&avatarId=14201","24x24":"http://jira.apac.linkgroup.corp/secure/useravatar?size=small&ownerId=WillmaFlintstone&avatarId=14201","16x16":"http://jira.apac.linkgroup.corp/secure/useravatar?size=xsmall&ownerId=WillmaFlintstone&avatarId=14201","32x32":"http://jira.apac.linkgroup.corp/secure/useravatar?size=medium&ownerId=WillmaFlintstone&avatarId=14201"},"displayName":"Willma Flintstone","active":true,"timeZone":"Australia/Sydney","locale":"en_AU"},{"self":"http://jira.apac.linkgroup.corp/rest/api/2/user?username=BarneyRubble","key":"BarneyRubble","name":"BarneyRubble","emailAddress":"[EMAIL PROTECTED]","avatarUrls":{"48x48":"http://jira.apac.linkgroup.corp/secure/useravatar?ownerId=BarneyRubble&avatarId=14201","24x24":"http://jira.apac.linkgroup.corp/secure/useravatar?size=small&ownerId=BarneyRubble&avatarId=14201","16x16":"http://jira.apac.linkgroup.corp/secure/useravatar?size=xsmall&ownerId=BarneyRubble&avatarId=14201","32x32":"http://jira.apac.linkgroup.corp/secure/useravatar?size=medium&ownerId=BarneyRubble&avatarId=14201"},"displayName":"Barney Rubble","active":true,"timeZone":"Australia/Sydney","locale":"en_AU"},{"self":"http://jira.apac.linkgroup.corp/rest/api/2/user?username=BettyRubble","key":"BettyRubble","name":"BettyRubble","emailAddress":"[EMAIL PROTECTED]","avatarUrls":{"48x48":"http://jira.apac.linkgroup.corp/secure/useravatar?ownerId=BettyRubble&avatarId=14201","24x24":"http://jira.apac.linkgroup.corp/secure/useravatar?size=small&ownerId=BettyRubble&avatarId=14201","16x16":"http://jira.apac.linkgroup.corp/secure/useravatar?size=xsmall&ownerId=BettyRubble&avatarId=14201","32x32":"http://jira.apac.linkgroup.corp/secure/useravatar?size=medium&ownerId=BettyRubble&avatarId=14201"},"displayName":"Betty Rubble","active":true,"timeZone":"Australia/Sydney","locale":"en_AU"}]

Regards
Damien Collis
Team Leader – Systems Integration
Link Group

•   Level 4, 1A Homebush Bay Drive, Rhodes NSW 2138
• Email: [EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>
• Ph: +61 2 8571 5616

From: Karl Wright [mailto:[EMAIL PROTECTED]]
Sent: Monday, 5 February 2018 10:27 AM
To: [EMAIL PROTECTED]
Subject: Re: How to extract JIRA authorities

The code that fetches the user IDs is here:

  /**
  * Get the list of users that can see the specified issue.
  */
  public List<String> getUsers(String issueKey)
    throws IOException, ResponseException, ManifoldCFException {
    List<String> rval = new ArrayList<String>();
    long startAt = 0L;
    long setSize = 800L;
    while (true) {
      JiraUserQueryResults qr = new JiraUserQueryResults();
      getRest("user/viewissue/search?username=&issueKey="+URLEncoder.encode(issueKey)+"&maxResults=" + setSize + "&startAt=" + startAt, qr);
      qr.getNames(rval);
      startAt += setSize;
      if (rval.size() < startAt)
        break;
    }
    return rval;
  }
<<<<<<

This is sent using Basic Auth.  Offhand I can see a potential problem, which is that this seemingly assumes that the Jira query is allowed .  No user is sent.

Could you try this query directly aganst your JIRA server and let me know what you get back?

Karl
On Sun, Feb 4, 2018 at 5:59 PM, Karl Wright <[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>> wrote:
Are both repository connections in the same authority group?

Karl
On Sun, Feb 4, 2018 at 5:55 PM, Fred Flintstone <[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>> wrote:
Karl,

The following is reported in my solr logs (with some sanitisation of data).
Th
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB