Skip Menu |

This queue is for tickets about the Plack-Middleware-Auth-JWT CPAN distribution.

Report information
The Basics
Id: 127893
Status: resolved
Priority: 0/
Queue: Plack-Middleware-Auth-JWT

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc: MIK [...] cpan.org
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.903
Fixed in: (no value)



CC: MIK [...] cpan.org
Subject: Cannot decode JWT: JWS: invalid signature
The test suite started to fail: ... # Failed test 'cannot decode' # at t/decode_args.t line 183. # 'Cannot decode JWT: JWS: invalid signature at /tmpfs/.cpan-build-cpansand/2018120320/Plack-Middleware-Auth-JWT-0.903-0/blib/lib/Plack/Middleware/Auth/JWT.pm line 76. # ' # doesn't match '(?^:decode failed)' # Looks like you failed 1 test of 2. # Failed test 'bad secret' # at t/decode_args.t line 184. # Looks like you failed 1 test of 3. # Failed test 'some bad tokens' # at t/decode_args.t line 213. # Looks like you failed 1 test of 5. t/decode_args.t ...... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/5 subtests ... Statistical analysis suggests that this happens with Crypt::JWT 0.023: **************************************************************** Regression 'mod:Crypt::JWT' **************************************************************** Name Theta StdErr T-stat [0='const'] 1.0000 0.0000 33708104586676236.00 [1='eq_0.021'] 0.0000 0.0000 3.00 [2='eq_0.022'] -0.0000 0.0000 -4.43 [3='eq_0.023'] -1.0000 0.0000 -25379292429082768.00 R^2= 1.000, N= 172, K= 4 ****************************************************************
On Mon Dec 03 15:11:37 2018, SREZIC wrote:
Show quoted text
> The test suite started to fail:
>
> ...
> # Failed test 'cannot decode'
> # at t/decode_args.t line 183.
> # 'Cannot decode JWT: JWS: invalid signature
> at /tmpfs/.cpan-build-cpansand/2018120320/Plack-Middleware-Auth-JWT-
> 0.903-0/blib/lib/Plack/Middleware/Auth/JWT.pm line 76.
> # '
> # doesn't match '(?^:decode failed)'
> # Looks like you failed 1 test of 2.
>
> # Failed test 'bad secret'
> # at t/decode_args.t line 184.
> # Looks like you failed 1 test of 3.
>
> # Failed test 'some bad tokens'
> # at t/decode_args.t line 213.
> # Looks like you failed 1 test of 5.
> t/decode_args.t ......
> Dubious, test returned 1 (wstat 256, 0x100)
> Failed 1/5 subtests
> ...
>
>
> Statistical analysis suggests that this happens with Crypt::JWT 0.023:
>
> ****************************************************************
> Regression 'mod:Crypt::JWT'
> ****************************************************************
> Name Theta StdErr T-stat
> [0='const'] 1.0000 0.0000 33708104586676236.00
> [1='eq_0.021'] 0.0000 0.0000 3.00
> [2='eq_0.022'] -0.0000 0.0000 -4.43
> [3='eq_0.023'] -1.0000 0.0000 -25379292429082768.00
>
> R^2= 1.000, N= 172, K= 4
> ****************************************************************

In Crypt::JWT the text of the error when failing to decode changed, changing the test to check for either decode failed or cannot decode causes it to succeed on both versions
Fixed, new release on it's way to CPAN see also https://github.com/domm/Plack-Middleware-Auth-JWT/pull/1