Skip to content

Conversation

@mdeboer
Copy link
Contributor

@mdeboer mdeboer commented Jul 9, 2019

Q A
Branch? v2.0 / v2.1
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
License MIT

The JWE serialiser crashes when attempting to decode invalid data or even a valid JWS. The JSON serialiser returns null but checkData does not accept a null value and throws an exception as it's typehinted with array.

The v1.3 branch had a is_array check here which was removed in v2.0 but this also prevented null values.

The JWE serialiser crashes when attempting to decode invalid data or even a JWS. The serialiser returns null but checkData does not accept a null value and throws an exception.
@coveralls
Copy link

Coverage Status

Coverage remained the same at 0.0% when pulling 51371f3 on Cloudstek:hotfix/serializer into 44e3330 on web-token:v2.0.

@mdeboer mdeboer changed the title [Bugfix] Fix JWE serialiser crashing by invalid typehint :warning [Bugfix] Fix JWE serialiser crashing by invalid typehint ⚠️ Jul 9, 2019
@mdeboer mdeboer changed the title [Bugfix] Fix JWE serialiser crashing by invalid typehint ⚠️ [Bugfix] Fix JWE serialiser crashing by invalid typehint Jul 9, 2019
@mdeboer mdeboer changed the title [Bugfix] Fix JWE serialiser crashing by invalid typehint [Bugfix] Fix JWE serialiser crashing by invalid typehint ⚠️ Jul 9, 2019
@Spomky Spomky merged commit a658f4d into web-token:v2.0 Jul 10, 2019
@Spomky
Copy link
Member

Spomky commented Jul 10, 2019

Sorry. My mistake.

@mdeboer
Copy link
Contributor Author

mdeboer commented Jul 10, 2019

No worries, thanks for merging! 👍

@mdeboer mdeboer deleted the hotfix/serializer branch July 10, 2019 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants