This looks like a duplicate of another question, but we are having a different issue.
When I go to link to a confluence page from a JIRA issue, I get "Search returned no results" and it also doesn't list any of my spaces. When I looked into the logs (both Confluence and JIRA), I saw no errors. When I searched the apache logs, I found the request:
/jira/rest/confluenceIssueLink/1/confluence/search?query=test&appId=our-app-id&spaceKey=&maxResults=10&_=1450195846167
However, when I make this request against our server, I get the following, no matter what the query is:
{"result":[]}We have it set up as recommended, using 2-legged OAuth. We can search for JIRA issues from Confluence with no issues. It is just when we try to search for a Confluence page through the issue link feature that we are experiencing this failure. Please let me know if you need more information.