Skip to content

[http_client_conformance_tests] server headers invalid headers values CR on FireFox #1741

Closed
@Zekfad

Description

@Zekfad

In process of testing fetch_client I've found that FireFox doesn't populate invalid header with carriage return, which causes failure of following test in FF:

server headers invalid headers values CR

'1 2', // RFC-specified behavior
// Common client behavior (Cronet, Apple URL Loading System).
'1',
'1\r2', // Common client behavior (Java).

I've got following errors:

01:36 +452 ~72 -1: [Firefox, Dart2Js] test\client_conformance_test.dart: client conformance tests server headers invalid headers values CR [E]
  Expected: ('1 2' or '1' or '1\r2')
    Actual: <null>

02:30 +547 ~108 -2: [Firefox, Dart2Wasm] test\client_conformance_test.dart: client conformance tests server headers invalid headers values CR [E]
  Expected: ('1 2' or '1' or '1\r2')
    Actual: <null>

03:38 +607 ~116 -3: [Firefox, Dart2Js] test\client_conformance_test.dart: client conformance tests with probe mode server headers invalid headers values CR [E]
  Expected: ('1 2' or '1' or '1\r2')
    Actual: <null>

05:52 +719 ~141 -4: [Firefox, Dart2Js] test\client_conformance_test.dart: client conformance tests with probeHead mode server headers invalid headers values CR [E]
  Expected: ('1 2' or '1' or '1\r2')
    Actual: <null>

06:10 +729 ~141 -5: [Firefox, Dart2Wasm] test\client_conformance_test.dart: client conformance tests with probe mode server headers invalid headers values CR [E]
  Expected: ('1 2' or '1' or '1\r2')
    Actual: <null>

09:49 +816 ~168 -6: [Firefox, Dart2Wasm] test\client_conformance_test.dart: client conformance tests with probeHead mode server headers invalid headers values CR [E]
  Expected: ('1 2' or '1' or '1\r2')
    Actual: <null>

Not sure what to do here. The only possible way I see is to add null as a valid behavior, since it's impossible to get the raw data from response on web.

Metadata

Metadata

Assignees

No one assigned

    Labels

    package:httptype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions