TheHive-Project / TheHive-Project/Cortex

Play Framework does not support "Header folding" (RFC 822) used in multipart/form-data POST request

Open
#339 0 comments 0 reactions 1 assignee View on GitHub

@To-om is already working on this.

Since Feb 10, 2021.

Dominant language
Scala
Stars
1.6k
Forks
264
PR merge metrics
No merged PRs in 30d

Description

In some cases, POST queries can use multipart/form-data with muli lines headers. In this case, Cortex generate an error like:

        {
            "name": "dataType",
            "type": "MissingAttributeError",
            "message": "Attribute dataType is missing"
        },
        {
            "name": "data/attachment",
            "type": "MissingAttributeError",
            "message": "Attribute data/attachment is missing"
        }

After investigation from @To-om, current version of Play framework does not support "Header folding" defined in the RFC 822 https://tools.ietf.org/html/rfc822#section-3.1.1.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.