You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the method SearchPages, the GET query gets suffixed with &maxResults=50 (by default). This works fine on my standalone Jira server, but not on our load-balanced datacenter edition (multi-node) in which case simply no issues are returned even though the query would normally return several issues.
I tracked the issue down to the Search method, where the &maxResults=50 is added unescaped. By changing the call to: ...&maxResults=50 I could solve the issue (and this keeps working on my single-node instance).
A second, related issue is that when no Jira Issues are returned by the query, the SearchPages method ends in a endless loop.
The text was updated successfully, but these errors were encountered:
When used with a load balanced Jira, the SearchPages method would end
up in an endless loop. This was caused by a bug where Jira would not
handle the MaxResults=50 that is sent by defaul properly, thus retur-
ning no issues. The SearchPages method didn't check for empty results
and ended up in an endless loop.
Fixed this by
1. Pre-escaping '&maxResults' to '&MaxResults'.
2. Adding a check in SearchPages to see if the issues array is empty
before going into the endless 'for'.
Also fixed the appropriate tests.
Fixes issue #260.
When using the method
SearchPages
, the GET query gets suffixed with&maxResults=50
(by default). This works fine on my standalone Jira server, but not on our load-balanced datacenter edition (multi-node) in which case simply no issues are returned even though the query would normally return several issues.I tracked the issue down to the
Search
method, where the&maxResults=50
is added unescaped. By changing the call to:...&maxResults=50
I could solve the issue (and this keeps working on my single-node instance).A second, related issue is that when no Jira Issues are returned by the query, the
SearchPages
method ends in a endless loop.The text was updated successfully, but these errors were encountered: