RFR: 2451: Skara bot fails to transition bug to Resolved due to empty response from api [v2]

Zhao Song zsong at openjdk.org
Mon Mar 3 18:56:35 UTC 2025


> A user reported that one backport issue was not automatically resolved by the Skara bot. From the logs, Erik found that the bot didn't actually send the request to transition the bug to resolved and he noticed that around that time, the bot was renewing the access token for jbs.
> 
> When updating the state of an issue, the Skara bot first attempts to fetch the available transitions for that issue by calling this API:
> https://bugs.openjdk.org/rest/api/2/issue/issue_id/transitions.
> 
> I called the API without authentication, I was expecting a 401 Unauthorized response. However, I received an empty response:
> `{"expand":"transitions","transitions":[]}.`
> 
> Due to this empty response, the Skara bot did not attempt to transition the bug to any state.
> 
> In my opinion, availableTransitions would be empty only when requesting the API without authentication,  so skara bot would throw an exception in this case.

Zhao Song has updated the pull request incrementally with one additional commit since the last revision:

  Update issuetracker/src/main/java/org/openjdk/skara/issuetracker/jira/JiraIssue.java
  
  Co-authored-by: Erik Joelsson <37597443+erikj79 at users.noreply.github.com>

-------------

Changes:
  - all: https://git.openjdk.org/skara/pull/1706/files
  - new: https://git.openjdk.org/skara/pull/1706/files/51fbf716..4a6b183a

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=skara&pr=1706&range=01
 - incr: https://webrevs.openjdk.org/?repo=skara&pr=1706&range=00-01

  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/skara/pull/1706.diff
  Fetch: git fetch https://git.openjdk.org/skara.git pull/1706/head:pull/1706

PR: https://git.openjdk.org/skara/pull/1706


More information about the skara-dev mailing list