Skip to content

Nima: 'Accept-Encoding' header parse error #6352

Closed
@ukarim

Description

Environment Details

  • Helidon Version: 4.0.0-ALPHA5
  • Helidon SE

Problem Description

Nima webserver fails to parse Accept-Encoding if header contains list of codings separated by only commas.
For example, this value gzip;q=1.0,deflate;q=0.6,identity;q=0.3 leads to NumberFormatException inside io.helidon.nima.http.encoding.ContentEncodingSupportImpl$EncodingWithQ.parse method.

Current parser uses comma+space as delimiter, but it seems that accoring to rfc that space is optional.
Actually I discovered this issue doing http requests to nima server using ruby's standard http client.

Steps to reproduce

Do following request to Nima webserver

curl -H 'Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3' http://localhost:8080

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

4.xVersion 4.xNímaHelidon Níma

Type

No type

Projects

  • Status

    Closed

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions