Integrated: 2451: Skara bot fails to transition bug to Resolved due to empty response from api

Zhao Song zsong at openjdk.org
Mon Mar 3 20:56:07 UTC 2025


On Mon, 3 Mar 2025 17:50:10 GMT, Zhao Song <zsong at openjdk.org> wrote:

> 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.

This pull request has now been integrated.

Changeset: 7d8b2229
Author:    Zhao Song <zsong at openjdk.org>
URL:       https://git.openjdk.org/skara/commit/7d8b22290f8bbb24c84b34ba2c670e1ddc051c4e
Stats:     5 lines in 1 file changed: 5 ins; 0 del; 0 mod

2451: Skara bot fails to transition bug to Resolved due to empty response from api

Reviewed-by: erikj

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

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


More information about the skara-dev mailing list