https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37286

Magnus Enger <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #4 from Magnus Enger <[email protected]> ---
Initially, I had the same problem as David (in KTD), but I got around it by
replacing :8080 with :8083 in the test plan. Here is what I got: 

=== Server ===
$ bin/intranet daemon -l http://*:8083
[2025-01-15 10:28:23.65073] [11469] [info] Listening at "http://*:8083";
Web application available at http://127.0.0.1:8083

=== Client === 
$ curl -i -d{} http://127.0.0.1:8083/api/v1/oauth/token
HTTP/1.1 401 Unauthorized
Server: Mojolicious (Perl)
Date: Wed, 15 Jan 2025 10:29:10 GMT
Content-Type: application/json; charset=utf8
Content-Length: 35
{"error":"Authentication failure."}

=== Server ===
[2025-01-15 10:29:10.88254] [11469] [trace] [smrnH4W71gxh] POST
"/api/api/v1/oauth/token"
[2025-01-15 10:29:10.88285] [11469] [trace] [smrnH4W71gxh] Routing to
application "Koha::REST::V1"
[2025-01-15 10:29:10.88386] [11469] [trace] [smrnH4W71gxh] POST
"/api/api/v1/oauth/token"
[2025-01-15 10:29:10.88987] [11469] [trace] [smrnH4W71gxh] Routing to
controller "Koha::REST::V1::Auth" and action "under"
[2025-01-15 10:29:10.89101] [11469] [trace] [smrnH4W71gxh] 401 Unauthorized
(0.007137s, 140.115/s)

Applied the patch and restarted all the things.

=== Server ===
$ bin/intranet daemon -l http://*:8083
[2025-01-15 10:30:57.89162] [12106] [info] Listening at "http://*:8083";
Web application available at http://127.0.0.1:8083

=== Client ===
$ curl -i -d{} http://127.0.0.1:8083/api/v1/oauth/token
HTTP/1.1 400 Bad Request
Server: Mojolicious (Perl)
Content-Length: 79
Content-Type: application/json;charset=UTF-8
Date: Wed, 15 Jan 2025 10:31:04 GMT
{"errors":[{"message":"Missing property.","path":"\/grant_type"}],"status":400}

=== Server ===
[2025-01-15 10:31:04.33156] [12106] [trace] [QQTeoJ7i-Vbe] POST
"/api/v1/oauth/token"
[2025-01-15 10:31:04.33186] [12106] [trace] [QQTeoJ7i-Vbe] Routing to
application "Koha::REST::V1"
[2025-01-15 10:31:04.33434] [12106] [trace] [QQTeoJ7i-Vbe] POST
"/api/v1/oauth/token"
[2025-01-15 10:31:04.34088] [12106] [trace] [QQTeoJ7i-Vbe] Routing to
controller "Koha::REST::V1::Auth" and action "under"
[2025-01-15 10:31:04.34195] [12106] [trace] [QQTeoJ7i-Vbe] Routing to
controller "Koha::REST::V1::OAuth" and action "token"
[2025-01-15 10:31:04.34253] [12106] [trace] [QQTeoJ7i-Vbe] 400 Bad Request
(0.008181s, 122.234/s)

So I have verified this works according to the tese plan, but it will
definitely need a more thorough review of the code. :-)

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to