Skip to content

Commit

Permalink
Fix endless loop when fetching branch by filterText from Bitbucket Se…
Browse files Browse the repository at this point in the history
…rver API (#737)

* fix endless loop when fetching branch by filterText from Bitbucket Server API

* fix endless loop when fetching tag by filterText from Bitbucket Server API

---------

Co-authored-by: Günter Grodotzki <[email protected]>
  • Loading branch information
Seros and lifeofguenter authored Jul 11, 2023
1 parent 6710d1c commit 30be8c1
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,9 @@ public class BitbucketServerAPIClient implements BitbucketApi {
private static final String API_REPOSITORY_PATH = API_BASE_PATH + "/projects/{owner}/repos/{repo}";
private static final String API_DEFAULT_BRANCH_PATH = API_REPOSITORY_PATH + "/branches/default";
private static final String API_BRANCHES_PATH = API_REPOSITORY_PATH + "/branches{?start,limit}";
private static final String API_BRANCHES_FILTERED_PATH = API_REPOSITORY_PATH + "/branches{?filterText}";
private static final String API_BRANCHES_FILTERED_PATH = API_REPOSITORY_PATH + "/branches{?filterText,start,limit}";
private static final String API_TAGS_PATH = API_REPOSITORY_PATH + "/tags{?start,limit}";
private static final String API_TAGS_FILTERED_PATH = API_REPOSITORY_PATH + "/tags{?filterText}";
private static final String API_TAGS_FILTERED_PATH = API_REPOSITORY_PATH + "/tags{?filterText,start,limit}";
private static final String API_PULL_REQUESTS_PATH = API_REPOSITORY_PATH + "/pull-requests{?start,limit,at,direction,state}";
private static final String API_PULL_REQUEST_PATH = API_REPOSITORY_PATH + "/pull-requests/{id}";
private static final String API_PULL_REQUEST_MERGE_PATH = API_REPOSITORY_PATH + "/pull-requests/{id}/merge";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"size": 1,
"limit": 25,
"limit": 200,
"isLastPage": true,
"values": [
{
Expand All @@ -11,5 +11,6 @@
"latestChangeset": "046d9a3c1532acf4cf08fe93235c00e4d673c1d2",
"hash": "c7208aca6fa205f115585be56a817f0cf2a43e62"
}
]
],
"start": 0
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"size": 1,
"limit": 25,
"limit": 200,
"isLastPage": true,
"values": [
{
Expand Down

0 comments on commit 30be8c1

Please sign in to comment.